[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [cobalt-users] Environmental Variables



Troy Arnold wrote:

> Anyone have a short walkthrough on how to add a path to the Environmental
> Variables. Is there a file that contains all of the variables that I can
> simply edit?

I'd try putting the commands into rc.local.  I'm not sure if it'll work
or not, because I'm not sure if bash will inherit them (perhaps someone
else knows) but I'd try that first; it makes the most sense to me that
stuff on your local machine should be in rc.local.

> I think I need this based globally rather then using an
> individual .bashrc file for individual users.

The global bashrc file is at /etc/bashrc.

However, right at the top of the file it says:

# System wide functions and aliases
# Environment stuff goes in /etc/profile

So they're recommending putting it into /etc/profile.

So you can put them there.  If you do, put them at the bottom.

Note that if you put them in manually (for example by calling a bash
script file), they'll disappear the moment the file exits, so you'll
never see them.

Jeff
-- 
Jeff Lasman, nobaloney.net, P. O. Box 52672, Riverside, CA  92517 US
Internet & Unix/Linux/Sun/Cobalt Consulting +1 909 778-9980
Our jblists address used on lists is for list email only
To contact us offlist: "http://www.nobaloney.net/contactus.html";