How to configure LTSP (Linux Terminal Server Project) on Ubuntu Server
In the How to Install LTSP guide we covered how to install LTSP and build the basic client image. We'll now cover how to configure it by firstly installing a full-blown Ubuntu Gnome desktop.
Configure the LTSP environment
The first thing we want to do is expand the list of available package sources from the default list since they are quite limited and secondly to bring our LTSP environment up to date. So issue the following command to copy the source list from the host machine (our server) to the LTSP environment:
Now we have installed the Ubuntu desktop we need to set up an admin user. This is because the existing admin user on our host machine does not get transferred across to this LTSP environment. I used the same credentials for this admin user as on the one on my main server but it's not compulsory, just easier to remember!:
useradd -m adminusername -G sudo
replacing adminusername with the required name of your admin user
Now set the password for this account and type the password when prompted:
replacing adminusername with the required name of your admin user. Now add this new user to sudoers file:
Press the [Insert] key once and insert a blank line after the "%sudo ALL=(ALL) ALL" line and paste the following:
adminusername ALL=(ALL) ALL
replacing adminusername with the required name of your admin user.
When you're done editing the file press the [Esc] key once and type the following:
This should save the changes and bring you back to the command line. If you make a mistake then issue :q! instead of :wq to abort your changes.
Now exit out of chroot:
And unmount the proc filesystem
sudo umount /opt/ltsp/i386/proc
Whenever you make any changes to your LTSP environment it's always a good idea to run the following commands:
sudo ltsp-update-image --arch i386
The first one MUST be run whenever you change any IP settings. The second one updates the kernel if required and the last one rebuilds the LTSP client image to take account of any packages you've updated.
You should now be able to launch a thin client and once logged on be presented with a full-blown Gnome desktop environment. Enjoy!
Still stuck? Not what you were looking for? Then head over to the Discussion Forum