This page is specific to Ubuntu versions 8.04, 10.04 and 12.04 Interim releases unknown.

If you find this information applicable to additional versions/releases, please edit this page and modify this header to reflect that. Please also include any necessary modifications for this information to apply to the additional versions.


This page is dedicated to LTSP autologin/guest login features. There are currently two scenarios:

1) You want to be able to turn on a thin-client and have it boot directly to a desktop, with no user intervention (Autologin)

2) You want to be able to turn on a thin-client and have it boot to a login screen, with the click-able option to login as a guest (Guest login)

Note: you may be interested also in: UbuntuLTSP/LDM_AUTOLOGINwithSSH

We will describe how to accomplish these tasks below.


1) Autologin

  • Create/Edit your lts.conf file with specific thin-client sections (IP/MAC/Hostname) and the following options, shown below as an example. Please note that you must modify the example to fit your specific network and server/user settings. Obviously, make sure the users and passwords listed exist on the server.

lts.conf:

[Default]
LDM_AUTOLOGIN = True

[192.168.1.101]
LDM_USERNAME = user1
LDM_PASSWORD = password1

[192.168.1.102]
LDM_USERNAME = user2
LDM_PASSWORD = password2

...

NOTE: If no "LDM_USERNAME" / "LDM_PASSWORD" is given per thin-client, it defaults to the hostname of the thin-client.

2) Guest Login

  • Create/Edit your lts.conf file with specific thin-client sections (IP/MAC/Hostname) and the following options, shown below as an example. Please note that you must modify the example to fit your specific network and server/user settings. Obviously, make sure the users and passwords listed exist on the server.

lts.conf:

[Default]
LDM_ALLOW_GUEST = True

[192.168.1.101]
LDM_USERNAME = user1
LDM_PASSWORD = password1

[192.168.1.102]
LDM_USERNAME = user2
LDM_PASSWORD = password2

...
  1. If you want ALL terminals to have a guest login button without specifying a username / password for EVERY terminal in the lts.conf file, simply enable guest login (example bellow is for 12.04) and set a hostname base for the terminal computers. Every computer will have a guest login name and password of the 'base hostname' + last oct of the IPv4 address. Example, IP of computer is 192.168.0.22 and a base host is ltspComp, then both the username and password would be 'ltspComp22'. Create users with the same name and password for your whole DHCP range, example: ltspComp1, ltspComp2, ltspComp3, etc, etc.

[Default]
LDM_GUESTLOGIN = True
HOSTNAME_BASE = ltspComp

...

NOTE: If no "LDM_USERNAME" / "LDM_PASSWORD" is given per thin-client, it defaults to the hostname of the thin-client.


This should be all you need to get autologin/guest login features going under Ubuntu LTSP.

NOTE: It is said that "LDM_ALLOW_GUEST" is superceded by "LDM_GUESTLOGIN", although my testing shows that "LDM_GUESTLOGIN" doesn't work in Ubuntu 8.04.1 (as of 2008/10/21). This might change in the future, so if "LDM_ALLOW_GUEST" doesn't work, try "LDM_GUESTLOGIN" instead.

Note2: Use "LDM_GUESTLOGIN=TRUE" in Ubuntu 12.04.


ADDITIONAL NOTE by Bambang P:

In ubuntu 12.04 (not sure with the previous versions), if you enable this AUTOLOGIN feature the client cannot be brought down. Everytime you down it, it will keep alive again.

My workaround for this problem is to send "halt" command to the underlying client o/s. Below are the steps needed, do in the server:

1. Chroot to the client environment:

$sudo chroot /opt/ltsp/i386

2. Define root password:

#passwd

3. Install openssh server and exit from chroot:

#apt-get install openssh-server
#exit

4. Update the client image:

$sudo ltsp-update-image

5. Create the down script:

 #!/bin/bash
my_ip=`printenv|grep SSH_CONNECTION|sed 's/\(SSH_CONNECTION=\)\([0-9]*\.[0-9]*\.[0-9]*\.[0-9]*\)\(.*\)/\2/'`
ssh root@$my_ip halt

6. Place a launcher on client's desktop referring to the above script.

3) Lock Screen

You may also want to look at disabling the lock screen so that users don't get locked out of the computer due to not knowing the guest password. UbuntuLTSP/DisableScreenLock

UbuntuLTSP/AutoLoginFeatures (last edited 2013-07-19 06:20:02 by chad.ermacora)