Guide to Installing LTSP (Linux Terminal Server Project)

Overview:

This Guide will show you how to install and configure LTSP on an Ubuntu/Debian System. There different methods for different distributions/distros to use and the number of interfaces suitable to run disk-less workstations. 

Information

The configuration described below can for all Ubuntu/Debian gnome desktops with either a single or dual Lan cards (10/100/1000). For an LTSP system with dual lan cards, the primary interface acts as the static/DHCP gateway server and the other sub-interface will provide DHCP services for the clients .

Things to avoid!

On a server running a single LAN card some disk-less workstations will periodically freeze with some of the screens going blank.

In a GIGABYTE LAN; Avoid! connecting your LTSP network to multiple DHCP agents allocated with the same subnet address (these can be routers, wireless access points and/or peripherals)

Using vim Open a terminal or a Putty session and type or paste the command:

sudo nano /etc/network/interfaces:

The network interface config file will look like this

# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
auto eth0
iface eth0 inet dhcp

You can edit the last two lines and add one more interface. Use the settings the settings that suit your environment!

# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
#auto eth0
#iface eth0 inet dhcp
auto eth0
iface eth0 inet static
address 192.168.0.254
netmask 255.255.255.0
network 192.168.0.0
broadcast 192.168.1.255
gateway 192.168.0.1
dns-nameservers 192.168.0.1
dns-search home

Install LTSP

Though it does not guarantee that all packages will generally function as before an upgrade or update installing LTSP and make sure your system is fully updated and upgraded. To update and upgrade open a terminal and type the commands:

sudo su

apt-get dist-upgrade && apt-get update

apt-get dselect-upgrade

exit

Then you can proceed installing a few packages necessary for system building

sudo apt-get install build-essential libtool libusb-dev libpam0g-dev pkg-config libdaemon0 avahi-daemon autoconf automake libtool flex bison git

Then you can go ahead with installing LTSP by issuing the following command:

sudo apt-get install dhcp3-server ltsp-server-standalone ltsp-client-core tftpd-hpa ltspfs ldm-server syslinux nfs-kernel-server initramfs-tools openssh-server open-ssl

Configuring the dhcpd.conf file

This is the config file that you need to accurately configure, because the settings contained in this file will either ensure that the LTSP system will boot successful or will not.

sudo nano /etc/ltsp/dhcpd.conf

Which will by default resemble the config file below:

# Default LTSP dhcpd.conf config file.
#

authoritative;

subnet 192.168.0.0 netmask 255.255.255.0 {
range 192.168.0.20 192.168.0.250;
option domain-name “example.com”;
option domain-name-servers 192.168.0.1;
option <a class=”zem_slink”
Read more of this post

Advertisements
%d bloggers like this: