Last time I blogged about LTSP I was using on edubuntu. Now I did a fresh install of Ubuntu and installed LTSP on there. Here goes the how-to partially inspired by the Ubuntu wiki.
To install LTSP and the thin client manager on Ubuntu, do the following in a terminal:
sudo apt-get install ltsp-server-standalone openssh-server thin-client-manager-gnome
Now create your LTSP environment on the server with: (Takes about 45min@55kbps, 100MB dowload)
sudo ltsp-build-client
Edit the /etc/ltsp/dhcpd.conf file to set the server’s IP values:
gksudo “gedit /etc/ltsp/dhcpd.conf”
Make sure the lines for domain-name-servers and routers match your network setup if you want to give the thin clients Internet access and restart the dhcp server with:
sudo /etc/init.d/dhcp3-server restart
then do the following to update the SSH server:
sudo ltsp-update-sshkeys
After that, you will be able to boot your first thin client.
Server Maintenance
If the thin clients seem to be having trouble, remove the whole thin client setup with:
sudo rm -rf /opt/ltsp/*
and then install it again with:
sudo ltsp-build-client
Use this if the above doesn’t work http://ubuntuforums.org/showthread.php?t=195956
Thin client configuration
Fine-tuning thin client configuration. More details and options here http://doc.ubuntu.com/edubuntu/handbook/C/ltsp-client.html
Usually, thin clients on an ubuntu thin client network should work fine out of the box. Occasionally, you would want to fine-tune settings on a client, or alter the settings slightly, either to increase performance, compatibility, or to enable or disable certain features.
Thin client configuration settings are stored in a file called “lts.conf”. It has a strange location, since it has to be accessable to the clients while they boot up. This file is located at “/opt/ltsp/i386/etc/lts.conf”. Edit it with:
gksudo “gedit /opt/ltsp/i386/etc/lts.conf”
and add or modify the entries there. Here you can find additional options to add to this file. Here for USB printers on a thin client.
Booting PXE
If you don’t have bootable Network cards, you can make floppy’s that boot off the server.
Step 1
First identify what network interface card you have in your system.
This can easily be done by booting an Ubuntu live cd on the client and running in a terminal. (low memory machines will need to either open the case and read the chip details on the nic, or try to pause the boot display (use the pause key) and read what the pci device ids are for your network card)
lspci | grep Ethernet
I get the following output from various system I have:
kroekerhome@Kroekerhome:~$ lspci | grep Ethernet
00:12.0 Ethernet controller: VIA Technologies, Inc. VT6102 [Rhine-II] (rev 7c)
Your output will look similar.
If you want to use a floppy to boot your clients continue, to boot from the hdd or a cdrom, go to https://help.ubuntu.com/community/UbuntuLTSP/LTSPBootingClientsWithoutPxe
Step 2
Now we need to go to http://www.rom-o-matic.net/5.4.1/ to generate a boot image for the network interface.
For a boot floppy disk image select .zdsk, (To make a boot floppy)
You will now need to select the correct network driver. i.e.:
for Realtek 8139 = rtl8139: rtl8139
Next select configure.
Make sure PXELOADER_KEEP_ALL is ticked, and it is a good idea to also tick POWERSAVE, ALLMULTI, MULTICAST_LEVEL1, MULTICAST_LEVEL2, and DOWNLOAD_PROTO_TFTM
When done, click get rom
The .zdsk file is a raw floppy image - on Linux you can copy it to a floppy like this:
cat eb-5.4.2-****.zdsk > /dev/fd0