It looks like Ubuntu uses ~/.bashrc
, ~/.bash_profile
, ~/.pam_profile
, /etc/environment
, and /etc/profile
in very
Step 1 :
Set all variables in /etc/environment
like this
JAVA_HOME=/usr/lib/jvm/java-6-sun
ANT_HOME=/usr/....
set path="/usr/bin::$JAVA_HOME/bin:$ANT_HOME/bin"
Step 2 :
Add this line at the end of ~/.bashrc
of each user
source /etc/environment
Step 3 :
Execute the following command to make the changes.
source ~/.bashrc
Hope it helps..!!