Installation manual

6
Manual System Configuration
6. 1. Environment
We find it amazing howbroken the default setup is. Depending on howwelogin, we end up with a completely
different environment. The PATHvariable, for example, is unnecessarily set (or modified) by init, login and al-
most every shell profile. It’snot too complicated to harmonise things a little bit.
/etc/environment:
#/etc/environment: default environment sourced by
#−login sh/bash using ’. /etc/environmnt’
#−login csh/tcsh using ’eval ‘/usr/local/bin/readenv /etc/environment‘’
#−/etc/X11/Xsession.d/10−source−environment using ’. /etc/environment’
#set default locale
export LANG=C
#set path
export PATH="/bin:/usr/bin:/usr/X11R6/bin:/usr/local/bin"
#xprint
export XPSERVERLIST="‘/etc/init.d/xprint get_xpserverlist‘"
export XPRINTER=lp0
$HOME/.environment:
#$HOME/.environment: local environment sourced by
#−login sh/bash using ’. $HOME/.environmnt’
#−login csh/tcsh using ’eval /usr/local/bin/readenv $HOME/.environment’
#−$HOME/.Xsession using ’. $HOME/.environment’
#add $HOME/bin to the path
export PATH="$HOME/bin:$PATH"
49