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”

title=”Broadcast address” href=”http://en.wikipedia.org/wiki/Broadcast_address&#8221; rel=”wikipedia” target=”_blank”>broadcast-address 192.168.0.255;
option routers 192.168.0.1;
#      next-server 192.168.0.1;
#      get-lease-hostnames true;
option subnet-mask 255.255.255.0;
option root-path “/opt/ltsp/i386”;
if substring( option vendor-class-identifier, 0, 9 ) = “PXEClient” {
filename “/ltsp/i386/pxelinux.0”;
} else {
filename “/ltsp/i386/nbi.img”;
}
}

Just below the authoritative term Change the first three sets of numbers of the subnet to match your IP address. You can use different subnets values above and you have to set the range outside the DHCP range configured within your router. Depending on your favored subnet you can leave the setting by default or change them to suit your desired subnet. But the changes have to affect all other options like option broadcast-address, option routers and next-server.

NB: the subnet 192.168.0.0 is used all along

#
# Default LTSP dhcpd.conf config file.
#

authoritative;

subnet 192.168.1.0 netmask 255.255.255.0 {
range 192.168.1.202 192.168.1.250;
option domain-name “example.com”;
option domain-name-servers 192.168.1.254;
option broadcast-address 192.168.1.255;
option routers 192.168.1.254;
#        next-server 192.168.0.1;
#        get-lease-hostnames true;
option subnet-mask 255.255.255.0;
option root-path “/opt/ltsp/i386”;
if substring( option vendor-class-identifier, 0, 9 ) = “PXEClient” {
filename “/ltsp/i386/pxelinux.0”;
} else {
filename “/ltsp/i386/nbi.img”;
}
}

When you’re done editing the file press the Cntrl and x key once to exit the nano editor

Restarting the DHCP server

 Restart the dhcp server using the following command to effect changes in the config file

sudo /etc/init.d/isc-dhcp-server restart

Build the LTSP environment and the client image

You can now build the LTSP environment and client image by typing the following command in a terminal. The process might take time but it will eventually finish by issuing the message info: LTSP client installation completed successfully after completion.

 

for a 64bit system, omit the “–arch i386” from the next command:

sudo ltsp-build-client –arch i386

After the successful completion of building the image it is proper you reboot the system

sudo reboot

Configure the LTSP environment

Booting up the thin Clients;

Booting up the thin clients for the first time will assume that you have created all the users to get access to the disk-less workstations on the server. Once you have rebooted the LTSP server and it is up and running you can get access to the thin client through the user login details you created on the server.

Related articles

Advertisements

Comments are closed.

%d bloggers like this: