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

Re: Environment setting before gdm start



Joachim Trinkwitz <jtr@uni-bonn.de> writes:

> "Eric G . Miller" <egm2@jps.net> writes:
> 
> > /etc/profile is for Bash. I don't think gdm cares about that. But, in
> > /etc/gdm/gdm.conf there is this parameter (which I have set to english):
> > 
> > DefaultLocale=english
> 
> Yes, I know (mine is set to german, but this one only set the locales
> for the GNOME applications, not for gdm itself).
> 
> OK, I see, when logged in as root, bash sets the locale, then when I
> restart gdm, gdm gets the locale too.
> 
> But the problem remains: how to set the locale before the login
> process starts gdm initially?
> 
> Thanks anyway,
> joachim
> 
Use PAM:
In /etc/environment:
 MOZILLA_HOME=/usr/local/netscape405/
 MuPAD_ROOT_PATH=/usr/local/MuPAD
 CVSROOT=/usr/local/cvsroot
 XNLSPATH=/usr/X11R6/lib/X11/nls         
 LC_ALL=de_DE
 LANG=de_DE

And modify /etc/pam.d/gdm :
 #%PAM-1.0
 auth     required       pam_unix_auth.so
 auth     required       pam_env.so            <============
 account  required       pam_unix_acct.so
 password required       pam_unix_passwd.so shadow
 session  required       pam_unix_session.so

For Bash in /etc/profile:
 set -a
 . /etc/environment
 set +a

Ramin


Reply to: