Find the answer to your Linux question:
Results 1 to 3 of 3
When in console mode (x-window-system is not loaded), root@myserver:~#echo $PATH /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/bin/X11 However, when I'm in the window manager (fluxbox) and I open a xterm window, my $PATH has a different ...
  1. #1
    Just Joined!
    Join Date
    Mar 2006
    Posts
    18

    Why is the value of $PATH in console mode different from the $PATH in xterm emulator?

    When in console mode (x-window-system is not loaded),

    root@myserver:~#echo $PATH

    /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/bin/X11

    However, when I'm in the window manager (fluxbox) and I open a xterm window, my $PATH has a different value.

    root@myserver:~#echo $PATH

    /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/ sbin:/bin:/usr/bin/X11

    The difference is the additional space between the slash (/) and sbin. That causes /sbin to be missing from my PATH.

    So any attempt to install package will give the error

    dpkg: ldconfig not found on PATH
    dpkg: start-stop-daemon not found on PATH

    What is causing the additional space between the slash (/) and sbin in the PATH only when in xterm emulator?

    Any advice would be greatly appreciated.

    Thanks.
    PS. Happens on both machines I installed x-window-system, fluxbox, xterm.

  2. #2
    Just Joined! praka123's Avatar
    Join Date
    Jan 2006
    Location
    Kerala,India
    Posts
    35
    you can try simply set $PATH variables in xterm as in terminal and see.

  3. #3
    Just Joined!
    Join Date
    Mar 2006
    Posts
    18
    For testing purpose, I installed rxvt and eterm. rxvt has the same error but eterm displays the correct $PATH value ( no extra space ).

    In short, $PATH shows the correct value in eterm, but incorrect in rxvt and xterm on both machines.

    Thanks !

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •