Environment Variables
From: Tom Allison (tallison_at_tacocat.net)
Date: 02/27/05
- Previous message: Gordon Jackson: "ide drive /dev/hda does not mount after SCSI /dev/sda during boot"
- Next in thread: Maximiliano Combina: "Re: Environment Variables"
- Reply: Maximiliano Combina: "Re: Environment Variables"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Sun, 27 Feb 2005 13:08:48 -0500 To: Debian User List <debian-user@lists.debian.org>
I'm trying to get a clear picture on how to set up the Environment
Variables on my workstation.
Currently, I have something in my /etc/profile like this:
if [ "`id -u`" -eq 0 ]; then
PATH="$HOME/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/
usr/bin/X11"
else
PATH="$HOME/bin:/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/games"
fi
Unfortunately, when I am in a term window and type 'echo $PATH'
I get:
/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/games
Which is almost consistent with the second entry (I'm not root).
But I don't have the PATH variable defined... No $HOME/bin/ directory
Now on another Debian box, I do have my /home/username/bin included in
the $PATH, but I can't find anything that appears to be different in
/etc/profile, ~/.bashrc, ~/.bash_profile
What's the right answer for allowing x-window login scripts (wdm, xdm,
kdm) and xterm windows to have a consistent $PATH?
-- To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
- Previous message: Gordon Jackson: "ide drive /dev/hda does not mount after SCSI /dev/sda during boot"
- Next in thread: Maximiliano Combina: "Re: Environment Variables"
- Reply: Maximiliano Combina: "Re: Environment Variables"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|