if you're using SSH shell to linux, you should see a .bash_profile file in your home directory.
set the environment variables there and it will load each time you log in
for example, my bash file:
# User specific environment and startup programs
JAVA_HOME=/home/efurrer/jdk1.5.0_11 export JAVA_HOME
PATH=$PATH:$HOME/bin:$JAVA_HOME:$JAVA_HOME/bin:$HOME/appia-3.3-bin/bin:$MAVEN_HOME/bin
export PATH
|