Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place! |
| Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
01-22-2002, 08:14 AM
|
#1
|
|
Member
Registered: Oct 2001
Location: the Netherlands
Distribution: Bear Linux (LFS 3.3)
Posts: 171
Rep:
|
environment variables
How can I set environment variables?
for example for my locale settings, or if i need to set a path for something?
|
|
|
|
01-22-2002, 08:30 AM
|
#2
|
|
Moderator
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 42,677
|
LANG=en
LANGUAGE=en_GB:en
LC_COLLATE=en_GB
LC_CTYPE=en_GB
LC_MESSAGES=en_GB
LC_MONETARY=en_GB
LC_NUMERIC=en_GB
LC_TIME=en_GB
you mean that kinda stuff? set a variable with
VARIABLE=value on a command line or in a script file like /etc/rc.local, you must export all set veriables in a script file tho for them to be kept...
export VARIABLE
|
|
|
|
01-22-2002, 08:50 AM
|
#3
|
|
Member
Registered: Oct 2001
Location: the Netherlands
Distribution: Bear Linux (LFS 3.3)
Posts: 171
Original Poster
Rep:
|
so in rc.local i would add these variables, and then under the variables (still in the rc.local file) i would export each variable i added?did i understand correctly? thanx...
|
|
|
|
01-22-2002, 09:36 AM
|
#4
|
|
Moderator
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 42,677
|
yeah, there are example in /etc/rc.local and /etc/profile and a few others.
|
|
|
|
01-22-2002, 09:24 PM
|
#5
|
|
Member
Registered: Jun 2001
Location: Fairfax, California
Distribution: RH 9.0, RH 7.3, Mandrake 8.0
Posts: 986
Rep:
|
Quote:
Originally posted by da Perp
...i would export each variable i added?...
|
As you might see from the examples acid_kewpie pointed to, each varialbe does have to be exported, but they can all be specified on a single line:
export VARIABLE1 VARIABLE2 VARIABLE3...
|
|
|
|
01-23-2002, 09:34 AM
|
#6
|
|
Member
Registered: Oct 2001
Location: the Netherlands
Distribution: Bear Linux (LFS 3.3)
Posts: 171
Original Poster
Rep:
|
yeah, i did all this stuff in my rc.local but it didnt help jackshit...
can i try it in my bashrc file?
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 02:17 AM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|