[Pkg-ltsp-devel] ldm 2:2.0.1-1: localization and autologin

vagrant at freegeek.org vagrant at freegeek.org
Fri Apr 11 16:28:49 UTC 2008


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.

> 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

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..

> 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?

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. 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.
 
> 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! :)

live well,
  vagrant



More information about the Pkg-ltsp-devel mailing list