Installation manual

50 6. Manual System Configuration
/etc/profile:
#/etc/profile: system−wide shell profile for
#−interactive login bash
#−all sh
#source the default environment
if [ −f /etc/environment ]; then
./etc/environment
#find out, whether we are a BASH or interactive SH
#BASH: source /etc/bash.bashrc
#interactive SH: set prompt
case $BASH in
*bash*)
if [ −f /etc/bash.bashrc ]; then
./etc/bash.bashrc
;;
*)
case "$−" in
*i*)
if [ "‘id −u‘" −eq 0 ]; then
PS1=’# ’
else
PS1=’$ ’
export PS1
;;
*)
;;
esac
;;
esac
#set default file permissions
umask 022
/etc/bash.bashrc:
#/etc/bash.bashrc: system wide shell profile for
#−interactive non−login bash
#set default prompt depending on UID and TERM
if [ "‘id −u‘" −eq 0 ]; then
DELIM="# "
else
DELIM="$ "
if [ "$TERM" == "linux" ]; then
PS1="\[\033[4m\]\h:\[\033[0m\] \w"$DELIM
else
PS1="\[\033[4m\]\h:\[\033[0m\] "$DELIM
export PS1
#set shell option "check−window−size"
shopt −s checkwinsize
$HOME/.profile:
#$HOME/.profile: local shell profile for
#−interactive login bash
#−all sh
#source the local environment
if [ −f $HOME/.environment ]; then
.$HOME/.environment
#find out, whether we are called as BASH
#BASH: source $HOME/.bashrc
case $BASH in
*bash*)