Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
environment variables...
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
zambizzi
Guru
Guru


Joined: 28 Aug 2004
Posts: 581
Location: Boise Idaho

PostPosted: Wed Oct 27, 2004 10:43 am    Post subject: environment variables... Reply with quote

I cannot find a very simple answer to a very simple question:

How do I permanently set an environment variable?????

I know I can export but that's temporary.....

I've had people point me to my local hiddne bash file but I do NOT have one.....

how is this done????
Back to top
View user's profile Send private message
CaT
n00b
n00b


Joined: 18 Oct 2004
Posts: 30

PostPosted: Wed Oct 27, 2004 11:07 am    Post subject: Reply with quote

hi

it is a bit different if you wan't to set a variable permanent for all users you can set it in /etc/profile
or if you wan't to set it for s specific user you can add the variable in the users home directory. and there you need to know his shell so (sounds like you have bash isntalled) then you have to put it in .bashrc oder .bash_profile.

bash_profile will be read if you have logged in on a shell (e.g. via ssh oder over a virtual console)

.bashrc will be read if you just open a bash (e.g. on your X)
Back to top
View user's profile Send private message
bfkeats
Apprentice
Apprentice


Joined: 20 Feb 2004
Posts: 268

PostPosted: Wed Oct 27, 2004 4:55 pm    Post subject: Reply with quote

There's a cleaner way to do it in the handbook.

http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?part=2&chap=5
Back to top
View user's profile Send private message
pjp
Administrator
Administrator


Joined: 16 Apr 2002
Posts: 20067

PostPosted: Wed Oct 27, 2004 5:07 pm    Post subject: Reply with quote

Moved from Networking & Security.
_________________
Quis separabit? Quo animo?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum