September 18, 2006

Ubuntu Environment variables

On Ubuntu, to set a global environment variable, edit /etc/environment and follow the form:

<Name>=<Value>
For the setting to be local to your login you can edit ~/.profile but you will need to use export <Name>=<Value>


I've used this for the JAVA_HOME, TOMCAT_HOME and ORACLE_HOME environment variables.

No comments: