D&C GLug - Home Page

[ Date Index ] [ Thread Index ] [ <= Previous by date / thread ] [ Next by date / thread => ]

Re: [LUG] Ubuntu and Environment Variables

 

Yep am looking to upgrade to Dapper very shortly, I just wanted to get everything sorted out under Breezy to start with.  Surely sudo $JAVA_HOME=n will just set it for the current session.  I want to set it automatically everytime I start ubuntu so it's available for all users, in the past on Centos I've edited /etc/.bashrc and added it in there via export.

Cheers,
Jon.

On 11/15/06, Ben Goodger <goodgerster@xxxxxxxxx> wrote:
On 15/11/06, Jon <jonathan.holloway@xxxxxxxxx> wrote:
I've been looking at Ubuntu (specifically 5.10 - Breezy) for a while now. 

You should upgrade to Dapper. Breezy is long-since obsolete.

I want to setup a bunch of environment variables that are available to
services (Tomcat, JBoss) when I boot Ubuntu.  My naive
understanding is that anything placed in .bashrc or /etc/profile will be
available on a per user basis.  That's fine but I want to set an environment
variable for all users, e.g. JAVA_HOME.  Any ideas how I do this?

I think that "sudo $JAVA_HOME=n" may do it.

--
Ben Goodger
#391382
---------------------

Mi admiras religiajn; ili estas fine ebliĝinta solvi la maljunegan demandon "kiel oni povas vivi sencerbe?".
It is well-known that I am blunt and unsophisticated. It's largely your fault if you object to this.

--
The Mailing List for the Devon & Cornwall LUG
http://mailman.dclug.org.uk/listinfo/list
FAQ: http://www.dcglug.org.uk/linux_adm/list-faq.html





--
#wEb: http://www.audiomonkey.co.uk
#eMaIl: jonathan.holloway@xxxxxxxxx
#pHoNe: 07968 902140
-- 
The Mailing List for the Devon & Cornwall LUG
http://mailman.dclug.org.uk/listinfo/list
FAQ: http://www.dcglug.org.uk/linux_adm/list-faq.html