个人工具

UbuntuHelp:UbuntuLTSP/AutoLoginFeatures

来自Ubuntu中文

跳转至: 导航, 搜索
This page is specific to Ubuntu versions 8.04

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

...

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.