Re: GDM in sid does not read /etc/environment anymore

2003-09-01 Thread Daniel Ruoso
There is a patch posted to this bug that grep /etc/environment looking
for LANG=*, and then export just the LANG...

Em Dom, 2003-08-31 às 10:47, Petter Reinholdtsen escreveu:
> [Daniel Ruoso]
> > I've actually sent him an email but got no answer. I've posted in
> > debian-devel few days ago and nobody complained that GDM could source
> > /etc/environment in the init script. That's an one-line patch (already
> > tagged as patch in bts for more than a year)... 
> 
> Remember that the file /etc/environment is not a shell script, it is a
> data file for the pam_env module.  The format happen to look like a
> shell script, but it is not.
> 
> See for example http://linux.oreillynet.com/lpt/a/1263> for a
> description of the format.
> 
> If you want to pass the values on to forked program, this might be
> enough:
> 
>   for i in `cat /etc/environment`; do export $i; done
> 
> It will probably not handle space in the content.




Re: GDM in sid does not read /etc/environment anymore

2003-08-31 Thread Petter Reinholdtsen
[Daniel Ruoso]
> I've actually sent him an email but got no answer. I've posted in
> debian-devel few days ago and nobody complained that GDM could source
> /etc/environment in the init script. That's an one-line patch (already
> tagged as patch in bts for more than a year)... 

Remember that the file /etc/environment is not a shell script, it is a
data file for the pam_env module.  The format happen to look like a
shell script, but it is not.

See for example http://linux.oreillynet.com/lpt/a/1263> for a
description of the format.

If you want to pass the values on to forked program, this might be
enough:

  for i in `cat /etc/environment`; do export $i; done

It will probably not handle space in the content.




Re: GDM in sid does not read /etc/environment anymore

2003-08-31 Thread Andreas Rottmann
Daniel Ruoso <[EMAIL PROTECTED]> writes:

> But this doesn't solve the problem that the login screen appears
> without locales... I already have pam_env.so in /etc/pam.d/gdm, but
> this only take effect (maybe I'm wrong) after the user logs in. The
> greeter will still appear without locales. (and that's the bug
> reported in bts).
>
Funny enough, I encountered this too, just a few hours ago. I resorted
to setting the LANG variable in /etc/init.d/gdm.

Regards, 
 Andy

PS: Please do prober quoting
-- 
Andreas Rottmann | [EMAIL PROTECTED]  | [EMAIL PROTECTED] | [EMAIL 
PROTECTED]
http://www.8ung.at/rotty | GnuPG Key: http://www.8ung.at/rotty/gpg.asc
Fingerprint  | DFB4 4EB4 78A4 5EEE 6219  F228 F92F CFC5 01FD 5B62

Packages should build-depend on what they should build-depend.




Re: GDM in sid does not read /etc/environment anymore

2003-08-30 Thread Gustavo Noronha Silva
Em Sat, 30 Aug 2003 14:31:32 -0300, Daniel Ruoso <[EMAIL PROTECTED]> escreveu:

> But this doesn't solve the problem that the login screen appears without
> locales... I already have pam_env.so in /etc/pam.d/gdm, but this only
> take effect (maybe I'm wrong) after the user logs in. The greeter will
> still appear without locales. (and that's the bug reported in bts).

Indeed, but the problem is gdm is not reading /etc/environment anymore
when the user logs in. So that also needs to be fixed. I agree with
trying to find LANG in /etc/environment.

[]s!

-- 
[EMAIL PROTECTED]: Gustavo Noronha 
Debian:   *  
Dúvidas sobre o Debian? Visite o Rau-Tu: http://rautu.cipsga.org.br




Re: GDM in sid does not read /etc/environment anymore

2003-08-30 Thread Gustavo Noronha Silva
Em Fri, 29 Aug 2003 16:38:16 -0300, Daniel Ruoso <[EMAIL PROTECTED]> escreveu:

> I've actually sent him an email but got no answer. I've posted in
> debian-devel few days ago and nobody complained that GDM could source
> /etc/environment in the init script. That's an one-line patch (already
> tagged as patch in bts for more than a year)... 
> 
> I think that if the maintainer doesn't take that, a NMU will be
> neecessary.

I don't think that's right. The Right Thing is adding this:

auth   required   pam_env.so

to /etc/pam.d/gdm

My /etc/pam.d/gdm is like this after my own fix:

[EMAIL PROTECTED] $ cat /etc/pam.d/gdm
#%PAM-1.0
 
# This module parses /etc/environment (the standard for setting
# environ vars) and also allows you to use an extended config
# file /etc/security/pam_env.conf.
# (Replaces the `ENVIRON_FILE' setting from login.defs)
auth   required   pam_env.so
 
@include common-auth
@include common-account
@include common-session


-- 
[EMAIL PROTECTED]: Gustavo Noronha 
Debian:   *  
Dúvidas sobre o Debian? Visite o Rau-Tu: http://rautu.cipsga.org.br




Re: GDM in sid does not read /etc/environment anymore

2003-08-30 Thread Daniel Ruoso
But this doesn't solve the problem that the login screen appears without
locales... I already have pam_env.so in /etc/pam.d/gdm, but this only
take effect (maybe I'm wrong) after the user logs in. The greeter will
still appear without locales. (and that's the bug reported in bts).

Em Sáb, 2003-08-30 às 14:20, Gustavo Noronha Silva escreveu:
> Em Fri, 29 Aug 2003 16:38:16 -0300, Daniel Ruoso <[EMAIL PROTECTED]> escreveu:
> 
> > I've actually sent him an email but got no answer. I've posted in
> > debian-devel few days ago and nobody complained that GDM could source
> > /etc/environment in the init script. That's an one-line patch (already
> > tagged as patch in bts for more than a year)... 
> > 
> > I think that if the maintainer doesn't take that, a NMU will be
> > neecessary.
> 
> I don't think that's right. The Right Thing is adding this:
> 
> auth   required   pam_env.so
> 
> to /etc/pam.d/gdm
> 
> My /etc/pam.d/gdm is like this after my own fix:
> 
> [EMAIL PROTECTED] $ cat /etc/pam.d/gdm
> #%PAM-1.0
>  
> # This module parses /etc/environment (the standard for setting
> # environ vars) and also allows you to use an extended config
> # file /etc/security/pam_env.conf.
> # (Replaces the `ENVIRON_FILE' setting from login.defs)
> auth   required   pam_env.so
>  
> @include common-auth
> @include common-account
> @include common-session
-- 
Atenciosamente,

Daniel Ruoso
Desenvolvimento de Sistemas
[EMAIL PROTECTED]
Oktiva Telecomunicaes e Informtica




Re: GDM in sid does not read /etc/environment anymore

2003-08-29 Thread Daniel Ruoso
I've actually sent him an email but got no answer. I've posted in
debian-devel few days ago and nobody complained that GDM could source
/etc/environment in the init script. That's an one-line patch (already
tagged as patch in bts for more than a year)... 

I think that if the maintainer doesn't take that, a NMU will be
neecessary.

Em Sex, 2003-08-29 às 14:33, Javier Fernández-Sanguino Peña escreveu:
> On Fri, Aug 29, 2003 at 05:01:54PM +0200, Petter Reinholdtsen wrote:
> > [Fabio Rafael da Rosa]
> > > I upgraded sid two days ago, and starting X via gdm does not set the
> > > environment variable I've set in /etc/environment.  Anyone has the
> > > same problem ..?
> > 
> > It is probably a PAM configuration problem.  You need the following
> > line in the /etc/pam.d/ file used by gdm:
> 
> Not really, I believe it's  bug #133578 and  #147091 and  #192143. Feel 
> free to pester the maintainer, let's hope this gets fixed
> (i.e. before sarge gets "frozen")
> 
> Regards
> 
> Javi




Re: GDM in sid does not read /etc/environment anymore

2003-08-29 Thread Javier Fernández-Sanguino Peña
On Fri, Aug 29, 2003 at 05:01:54PM +0200, Petter Reinholdtsen wrote:
> [Fabio Rafael da Rosa]
> > I upgraded sid two days ago, and starting X via gdm does not set the
> > environment variable I've set in /etc/environment.  Anyone has the
> > same problem ..?
> 
> It is probably a PAM configuration problem.  You need the following
> line in the /etc/pam.d/ file used by gdm:

Not really, I believe it's  bug #133578 and  #147091 and  #192143. Feel 
free to pester the maintainer, let's hope this gets fixed
(i.e. before sarge gets "frozen")

Regards

Javi


pgp5JZLSYL0pG.pgp
Description: PGP signature


Re: GDM in sid does not read /etc/environment anymore

2003-08-29 Thread Petter Reinholdtsen
[Fabio Rafael da Rosa]
> I upgraded sid two days ago, and starting X via gdm does not set the
> environment variable I've set in /etc/environment.  Anyone has the
> same problem ..?

It is probably a PAM configuration problem.  You need the following
line in the /etc/pam.d/ file used by gdm:

  auth   required pam_env.so

For kdm in Woody, the file is called 'kde'.  I'm not sure which file
gdm is using.




GDM in sid does not read /etc/environment anymore

2003-08-29 Thread Fabio Rafael da Rosa
I upgraded sid two days ago, and starting X via gdm does not
set the environment variable I've set in /etc/environment.
Anyone has the same problem ..?

-- 
Fabio Rafael da Rosa - f 2 r
<[EMAIL PROTECTED]>
Debian- http://debian.org
Debian-BR - http://debian-br.org
Debian-SP - http://sp.debian-br.org

"Let the programmers be many and the managers few
 then all will be productive."