[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Setting global environment correctly



On Tors, November 17, 2005 22:56, Roberto C. Sanchez wrote:
> On Thu, Nov 17, 2005 at 10:42:48PM +0100, Allan Jensen wrote:
>> Hello,
>>
>> what is considered the "correct" way of setting global and exported
>> environment variables in debian? Specifically I want to set ORACLE_HOME
>> and other oracle-related variables in a way that works in both console
>> and X.
>>
>> I would also like to add $ORACLE_HOME/bin to the global PATH.
>>
>
> For global settings, check /etc/environment, /etc/login.defs and
> /etc/gdm/gdm.conf (or /etc/kdm/kdm.conf).

I have tried /etc/environment, but the variables set in that file are not
exported and therefore only known to the first generation shell. Variables
set in /etc/profile do not make into X.

I will look into login.defs and gdm.conf.

--
Regards,
Allan



Reply to: