Ubuntu 11.10 LTSP
December 1, 2011 at 6:05 pm 4 comments
For funsies I wanted to find out how to set up an Ubuntu 11.10 LTSP. The instructions below are what I put together after searching websites, emailing for answers, reading forum posts and trial and error. This works for me on a fresh install of Ubuntu and I hope it works for you if you give it a try.
Please note the following items:
I wanted the thin clients to have Unity 2D, so that is why the lts.conf/LDM instructions are in there. My second network card for the internal LTSP network is eth1 – yours might be different, so change the related entries in /etc/default/isc-dhcp-server and /etc/network/interfaces if needed.
I used 192.168.22.X for my internal LTSP network, but you can have something else entirely like 10.10.22.X for example. If you decide to go with something different please remember to update the /etc/network/interfaces address and /etc/ltsp/dhcpd.conf accordingly.
INSTALL LTSP IN UBUNTU
Open terminal window
- sudo bash & enter password
- apt-get update && apt-get upgrade -y
- apt-get install ltsp-server-standalone openssh-server
- gedit /etc/default/isc-dhcp-server
add eth1 as follows:
INTERFACES=”eth1″
save and exit
- gedit /etc/network/interfaces
add the following under the existing auto lo entry
auto eth1
iface eth1 inet static
address 192.168.22.1
netmask 255.255.255.0
save and exit
- ifup eth1
- gedit /etc/ltsp/dhcpd.conf
change all 192.168.0.X to 192.168.22.X
I use gedit’s replace function: 168.0 > 168.22
save and exit
- /etc/init.d/isc-dhcp-server restart
- ltsp-update-sshkeys
- ltsp-build-client –-arch i386
- /etc/init.d/nbd-server restart
- /etc/init.d/isc-dhcp-server status
- gedit /var/lib/tftpboot/ltsp/i386/lts.conf
add the following:
[default]
LDM_DIRECTX=True
LDM_SESSION=”gnome-session –session=ubuntu-2d”
save and exit
- Reboot system for good measure
Click user icon/name top right of ubuntu desktop
- click user accounts
- click unlock (top right of window)
- enter password and authenticate
- click + sign (bottom left) to add new user account
- account type = standard
- full name = tc1 (for thinclient1 – use whatever you want)
- click create
- click account disabled to right of password
- add password and retype to confirm
- click lock (top right of window)
Hook up thin clients, select network boot, and login
If you can’t login because client says ‘response from server, restarting…’ try the following:
Open terminal window
- sudo bash & enter password
- ltsp-update-sshkeys
- sudo ltsp-update-image
- /etc/init.d/nbd-server restart
- reboot clients and try to log in
1.
Chris | December 19, 2011 at 3:02 pm
Awesome tutorial… thanks.
followed it to the letter and now have a perfect LTSP server / clients running.
2.
Hannes | February 13, 2012 at 2:18 pm
Awesome! Thanks. The best guide to set up n LTSP server. Thanks again.
3.
Naijeru Jōji | February 14, 2012 at 12:08 am
Hi, excellent tutorial, I’ve ran these and I think I am 90% of the way but I can’t boot into X. I’m a little confused.
/var/lib/tftpboot/ltsp/i386/lts.conf <– This didn't exist, so I created it with your [default]'s listed.
My virtual machines/laptop find TFTP, they report trying to load pxelinux.cfg/default
An Ubuntu 11.10 loading screens comes up (with the 4 .'s progressing)… then I'm dropped to a BusyBox 1.18.4 command prompt.
Any idea what I have done wrong? Or what logs to check?
thanks
4.
mojotechblog | February 29, 2012 at 6:41 pm
I haven’t run into that before. I’m not an Ubuntu guru by any means (disclaimer), but off the top of my head it seems like the lts.conf file should have been created during the initial Ubuntu install or the ltsp-build-client process. I would try the ltsp build process again and see if that corrects the issue. I believe you have to delete the old build image before doing this though. Good luck and let me know how it goes.