[Pkg-ltsp-devel] ldm 2:2.0.1-1: localization and autologin
José L. Redrejo Rodríguez
jredrejo at edu.juntaextremadura.net
Fri Apr 11 19:19:41 UTC 2008
El vie, 11-04-2008 a las 09:28 -0700, vagrant at freegeek.org escribió:
> On Fri, Apr 11, 2008 at 01:45:42PM +0200, José L. Redrejo Rodríguez wrote:
> > Hi, Vagrant, I need your help (too soon, maybe)
>
> gladly given :)
>
> note that i CCed pkg-ltsp-devel as well, as i think it's good to have
> these discussions in a public forum. no need to CC me if you post there.
It's perfect for me. I'm not subscribed to that list, so please cc me in
case of future answers to this topic
>
> > I'm having two problems with ldm:
> > - autologin does not work
> > - internationalization does not work either.
> > Obviously, I'm using the ldm package uploaded to experimental.
>
> thanks for testing it! :)
>
> > For the first point, I've tried it adding to /etc/lts.conf in the
> > client:
> > [00:01:80:57:4a:d9]
> > LDM_USERNAME=pepe
> > LDM_PASSWORD=pepe
> > where "pepe" is the login name and password of an user of the ltsp
> > server machine.
>
> you'll also need:
>
> LDM_AUTOLOGIN=true
>
Tested and works perfectly now. After sending my email, I discovered
such option taking a look at the sources, but wasn't able to find it in
any documentation or readme. Next time, I'll try to look better before
asking ;-)
> in fact, if you configure your hostnames to match the username and
> password, you don't need to specify LDM_USERNAME and LDM_PASSWORD at
> all.
>
> you can also set up ssh keys instead of using passwords.
>
> > For the second point, I've noticed that:
> > - When starting the client, it is in english
>
> yes, i noticed this as well.
>
> i've been setting LANG in lts.conf to enable it, but thanks for the
> reminder to look into it..
>
Ok, I tried it setting LDM_LANGUAGE=es_ES.UTF-8 in lts.conf and didn't
work. I wasn't aware of the LANG use in lts.conf.
> > and does not allow me changing the language (even if es_ES.UTF-8
> > appears as an option in ldmgreeter)
>
> well, the language selection menu currently only changes the session for
> login, not for the LDM greeter. just to be clear, does it actually work
> for the login session?
It works perfectly (now that I know it)
>
> we've still got some improvements to make to get i18n/l10n working
> properly.
>
> > - killing ldm and restarting it in the client, it appears in spanish.
>
> ah, this is new to me :)
>
> > So, I've added this code:
> >
> > if [ -r /etc/default/locale ]; then
> > . /etc/default/locale
> > export LANG LANGUAGE
> > fi
> >
> > at the beginning of the /usr/share/ltsp/screen.d/ldm file, and now it
> > starts perfectly in spanish at the first ldm start. Locales in my
> > clients are set by default to es_ES.UTF-8. So, this seems to be a needed
> > patch.
>
> ok, good to know.
>
> i don't understand why the default locale isn't being used.
It seems logical to me, after checking that restarting it, it worked.
It's the same behaviour you get when starting daemons at /etc/init.d/
when the computer is starting: they start before the LANG environment is
set, so the daemon does not know it and does not use it. If you restart
it later, the settings are already done and it works perfectly.
The code I've added to /usr/share/ltsp/screen.d/ldm is the same (or
very similar) other daemons add when need to use the locale at starting,
like gdm, cron, etc...
> might be
> better to put the code to get default locale in the ltsp-client-* init
> scripts, which is where the ldm screen script gets launched from.
Yes, it seems much more coherent with the way other daemons work. I've
tested adding it to ltsp-client-core (right before loading the lsb
headers) and works perfectly.
>
> > Please, can you check that autologin works for you. I'd like to know if
> > it's a bug or a misconfiguration. I've tested it using nfs instead of
> > nbd as well.
>
> it works for me when i set LDM_AUTOLOGIN=true in lts.conf.
>
> there's also LDM_GUESTLOGIN=true, which behaves similarly to
> LDM_AUTOLOGIN, only it displays the greeter with a button for the guest
> login rather than automatically logging in.
>
> hope that helps, and thanks for the report! :)
Sure it helped, thanks for your fast answer.
Cheers
José L.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Esta parte del mensaje =?ISO-8859-1?Q?est=E1?= firmada
digitalmente
Url : http://lists.alioth.debian.org/pipermail/pkg-ltsp-devel/attachments/20080411/0940e24c/attachment.pgp
More information about the Pkg-ltsp-devel
mailing list