LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 11-25-2005, 11:37 PM   #1
slinky2004
Member
 
Registered: Oct 2004
Posts: 309

Rep: Reputation: 30
environment variables


i just installed kde using binary packages and i was a little worried because the install instructions said to make sure that i set an environment variable called KDEDIR. well, i know how to set variables with export, but they go away when i restart. i looked into ways to set environment variables permenantly, like at startup, etc. only to find that the packages i installed made it so that KDEDIR is set at startup. what i'm trying to figure out now is how it does it. can anybody tell me where this environment variable comes from every time?
 
Old 11-25-2005, 11:40 PM   #2
trickykid
Guru
 
Registered: Jan 2001
Posts: 24,133

Rep: Reputation: 199Reputation: 199
/etc/profile is the global file to use
~/.bashrc or ~/.bash_profile are the ones for individual environments for your user.

These are the basics when using the bash shell.
 
Old 11-25-2005, 11:52 PM   #3
slinky2004
Member
 
Registered: Oct 2004
Posts: 309

Original Poster
Rep: Reputation: 30
oh, slackware puts it out in /etc/profile.d. why dont i have any .bashrc or .bash_profile for setting this stuff individually tho?

Last edited by slinky2004; 11-25-2005 at 11:57 PM.
 
Old 11-26-2005, 02:54 AM   #4
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
I think that's just because Slackware is quite minimal and just doesn't come with those files (I think I remember Tinkster telling me that). You can of course create them yourself.

Last edited by Nylex; 11-26-2005 at 02:56 AM.
 
Old 11-26-2005, 09:59 AM   #5
trickykid
Guru
 
Registered: Jan 2001
Posts: 24,133

Rep: Reputation: 199Reputation: 199
Quote:
Originally posted by Nylex
I think that's just because Slackware is quite minimal and just doesn't come with those files (I think I remember Tinkster telling me that). You can of course create them yourself.
That is true, by default, Slackware doesn't create any basic files for any user in their home directories.. just create it or use the /etc/profile file as a template.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Environment Variables - where do they go!?! iansoundz Linux - General 7 11-17-2005 02:27 AM
environment variables in c++ s3b0 Programming 6 08-27-2004 09:19 AM
when to use environment variables? mark_2811 Programming 2 02-23-2004 06:09 PM
environment variables kakridge Linux - Newbie 1 07-14-2003 06:25 PM
environment variables aethereal Linux - Newbie 7 12-19-2001 09:34 AM


All times are GMT -5. The time now is 03:35 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration