Ubuntu 8.04 you will notice that it is very easy to get going in LTSP 5. Most of the configuration is automatically done for you. Install the Ubuntu 8.04 Desktop CD. You must have a graphical interface running on the server to be provided for the clients. Once you have installed the Desktop, be sure your network is set to operate on a static IP Address. Next you will need to install several programs required for the ltsp setup.
First you must install ltsp-server
$ sudo apt-get install ltsp-server-standalone openssh-server
Create your Thin Client environment on the server with this command:
$ sudo ltsp-build-client
Update the Desktop System
$ sudo apt-get update
$ sudo apt-get upgrade
Configure DHCP
You will supply IP Addresses to the thin clients using DHCP. The file you want to edit is /etc/ltsp/dhcpd.conf. Note this is not the normal dhcpd.conf file that you would edit, this is a special file for LTSP only.
Here is a partial example file. The first line ensures that clients will use this DHCP server:
authoritative;
The subnet is declared with the network and netmask:
subnet 192.168.0.0 netmask 255.255.255.0 {
The next line which is indented is the range that your DHCP server will supply. So on this network example you could have static IP Addresses from 192.168.0.1-192.168.0.200 and then the range will define what dynamic IPs will be supplied by the DHCP server.
range 192.168.0.1 192.168.0.200;
Define the broadcast address:
option broadcast-address 192.168.0.255;
The optional router will also be the gateway for your network:
option routers 192.168.0.254;
Now you can set up individual diskless workstations. In these examples the hostname for the workstation is declared:
host ws001 {
Because you want to declare these hosts it is important that you modify your /etc/hosts file so the workstation is listed there. Here the workstation number is tied to the IP Address on the network so that it is easy to trouble shoot as you know right where to go to fix either a network problem or a hardware issue.
The hardware MAC address for each network card is listed so that you can tie the IP to a specific diskless workstation.
Example :
hardware ethernet 00:13:90:00:D7:8F;
Fixed-address 192.168.7.205;
Finally a location to get the image for the diskless workstation is provided.
filename "/ltsp/i386/pxelinux.0";
Summary that's dhcp configuration is :
#
# Default LTSP dhcpd.conf config file.
#
authoritative;
subnet 192.168.0.0 netmask 255.255.255.0 {
range 192.168.0.1 192.168.0.200;
option broadcast-address 192.168.0.255;
option routers 192.168.0.254;
host ws001 {
hardware ethernet 00:13:90:00:D7:8F (example);
fixed-address 192.168.0.1;
filename "/ltsp/i386/pxelinux.0";
}
host ws247 {
hardware ethernet 00:13:90:00:67:AF (example);
fixed-address 192.168.0.2;
filename "/ltsp/i386/pxelinux.0";
When you have finished restart the server. Run these commands to update your ssh keys.
$ sudo ltsp-update-sshkeys
$ sudo ltsp-update-image
Be sure to do it in that order.
read more...
First you must install ltsp-server
$ sudo apt-get install ltsp-server-standalone openssh-server
Create your Thin Client environment on the server with this command:
$ sudo ltsp-build-client
Update the Desktop System
$ sudo apt-get update
$ sudo apt-get upgrade
Configure DHCP
You will supply IP Addresses to the thin clients using DHCP. The file you want to edit is /etc/ltsp/dhcpd.conf. Note this is not the normal dhcpd.conf file that you would edit, this is a special file for LTSP only.
Here is a partial example file. The first line ensures that clients will use this DHCP server:
authoritative;
The subnet is declared with the network and netmask:
subnet 192.168.0.0 netmask 255.255.255.0 {
The next line which is indented is the range that your DHCP server will supply. So on this network example you could have static IP Addresses from 192.168.0.1-192.168.0.200 and then the range will define what dynamic IPs will be supplied by the DHCP server.
range 192.168.0.1 192.168.0.200;
Define the broadcast address:
option broadcast-address 192.168.0.255;
The optional router will also be the gateway for your network:
option routers 192.168.0.254;
Now you can set up individual diskless workstations. In these examples the hostname for the workstation is declared:
host ws001 {
Because you want to declare these hosts it is important that you modify your /etc/hosts file so the workstation is listed there. Here the workstation number is tied to the IP Address on the network so that it is easy to trouble shoot as you know right where to go to fix either a network problem or a hardware issue.
The hardware MAC address for each network card is listed so that you can tie the IP to a specific diskless workstation.
Example :
hardware ethernet 00:13:90:00:D7:8F;
Fixed-address 192.168.7.205;
Finally a location to get the image for the diskless workstation is provided.
filename "/ltsp/i386/pxelinux.0";
Summary that's dhcp configuration is :
#
# Default LTSP dhcpd.conf config file.
#
authoritative;
subnet 192.168.0.0 netmask 255.255.255.0 {
range 192.168.0.1 192.168.0.200;
option broadcast-address 192.168.0.255;
option routers 192.168.0.254;
host ws001 {
hardware ethernet 00:13:90:00:D7:8F (example);
fixed-address 192.168.0.1;
filename "/ltsp/i386/pxelinux.0";
}
host ws247 {
hardware ethernet 00:13:90:00:67:AF (example);
fixed-address 192.168.0.2;
filename "/ltsp/i386/pxelinux.0";
When you have finished restart the server. Run these commands to update your ssh keys.
$ sudo ltsp-update-sshkeys
$ sudo ltsp-update-image
Be sure to do it in that order.