Table des matières

Impilo specific modifications to the base system

Base Installation

// If you have not install the LAMP Server meta-package
% sudo apt-get -y --no-install-recommends install apache2 php5 mysql-client
 
// If you have install the LAMP Server package, only PHP is necessary.
% sudo apt-get -y --no-install-recommends install php5

File system tree structure used by Impilo

Because I wanted not to be too “unique”, I decided to put all the Impilo-specific content under /opt/bio. Inside this folder, you will find:

Modifications of specific files of the base system

Modification to /etc/skel/.bashrc

#force_color_prompt=yes

becomes

force_color_prompt=yes
if [ "$color_prompt" = yes ]; then
    PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '
else
    PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w\$ '
fi

becomes

if [ "$color_prompt" = yes ]; then
    PS1='${debian_chroot:+($debian_chroot)}\u@\h:\[\033[01;34m\]\W\[\033[00m\]\$'
else
    PS1='${debian_chroot:+($debian_chroot)}\u@\h:\W\$ '
fi
#alias grep='grep --color=auto'

becomes

alias grep='grep --color=auto'

Creating the /etc/profile.d/impilo.sh file

As a user logs onti an Ubuntu server, the script that creates the session for this user reads the files located under /etc/profile.d to set various parameters for the sessions. This is where wu will put a file specific to Impilo, /etc/profile.d/impilo.sh, which will specify the environment variables specific to Impilo:

% sudo touch /etc/profile.d/impilo.sh