Environment Variables

From: Tom Allison (tallison_at_tacocat.net)
Date: 02/27/05

  • Next message: Guy Marcenac: "Re: Konqueror and Firefox both loading when clicking links"
    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
    

  • Next message: Guy Marcenac: "Re: Konqueror and Firefox both loading when clicking links"

    Relevant Pages

    • Re: vba vs VB dotnet
      ... going to use to be developing with (such as ms-access). ... once again you're going to be using the.net environment. ... in many cases get a more consistent looking application when you develop ... In fact that advanced skill level ...
      (microsoft.public.access.formscoding)
    • Re: vba vs VB dotnet
      ... going to use to be developing with (such as ms-access). ... once again you're going to be using the.net environment. ... in many cases get a more consistent looking application when you develop ... In fact that advanced skill level ...
      (microsoft.public.access.formscoding)
    • ENV VAR addresses
      ... The two common ways of accessing the environment directly on ... program you're executing. ... and pass that as the final argument to execle() or execve. ... also use a consistent argvlength in those exec* calls. ...
      (comp.lang.c)
    • Re: GPS Locator for Your Dog -- An Idea Whose Time Has Come.
      ... I don't begrudge a nickel that I spend on my pets. ... Consistency from the enviro wacko croud seems we would hear a lot ... Us environmental wackos are interested in saving the environment ... So be consistent and collect credibility. ...
      (soc.retirement)
    • Re: Slow download from server
      ... Uploading from workstation to server is pretty fast, ... downloading from the server is extremely slow. ... are fairly consistent during business hours and after business hours. ...
      (microsoft.public.backoffice.smallbiz2000)