On Sunday 08 July 2001 20:46, Sridhar Dhanapalan wrote:
> Does anybody know how to get environment variables (like "export...")
> working system-wide, that is, on the command line (BASH for me), in the
> log screens (e.g. on Ctrl-Alt-F12), and in X?
>
> I prefer to have X automatically load at startup (since it frees-up a
> console), but this means that I cannot take advantage of BASH's
> environment variables (configurable in ~/.bashrc and /etc/bashrc). I
> know I can load apps from a terminal, but I'd prefer to have something
> available throughout all of my X environment (for panel applets, etc.).
> I have placed my lines in /etc/X11/Xsession, but this doesn't appear to
> work anymore since I installed KDE 2.2 beta 1 (I use GNOME, though).
>
> Environment variables don't seem to work on the log screens (e.g. when
> you press Ctrl-Alt-F12) or for system processes (daemons, etc.), either.
> My system clock is set to UTC (i.e. Greenwich Mean TIme), and I use
> environment variables to enter my time zone settings so that the
> displayed time is correct (that way I can set my system time from an NTP
> server with ntpdate). It works fine in BASH, and as I mentioned above it
> used to work in X. Cron is always ten hours behind my local time (since
> I'm UTC +10h), and it can become annoying when it begins maintenence
> tasks during the day when I'm using the computer.
>
> Alternatively, is there a better solution to my setup?
>
> Any help would be much appreciated.

/etc/profile is your friend
-- 
                         Peter Ruskin, Wrexham, Wales.
        Registered Linux User No. 219434 ( see http://counter.li.org/ )
                Linux Mandrake release 8.0 (Traktopel) for i586
             Linux 2.4.3-20mdk-win4lin-pnr,  KDE: 2.1.2,  Qt: 2.3.1
                           Uptime 2 hours 19 minutes

Reply via email to