Hello world.
I wanted the JAVA_HOME environment variable and the JAVA_HOME/bin set for all users in my system (Debian 3.1), so I changed the "/etc/profile" file.
Here's a stract.
Code:
if [ "`id -u`" -eq 0 ]; then
PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/bin/X11"
else
PATH="/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/games"
fi
if [ "$PS1" ]; then
if [ "$BASH" ]; then
PS1='\u@\h:\w\$ '
else
if [ "`id -u`" -eq 0 ]; then
PS1='# '
else
PS1='$ '
fi
fi
fi
ANT_HOME="/usr/local/apache-ant-1.6.5"
export ANT_HOME
JAVA_HOME="/usr/java/jdk1.5.0_06"
export JAVA_HOME
PATH=$ANT_HOME/bin:$JAVA_HOME/bin:$PATH
export PATH
umask 022
I go to tty1 and echoing $JAVA_HOME works.
But, with GNOME terminal it doesn't work.
I even restarted my computer.
The strange thing is that I did the same for my Fedora Core 4 and everything goes well.
Please some help, I really need to get rid of this.