Monday 11 August 2014

Ubuntu LTSP Server with Thin Client



[Ubuntu LTSP Server with Thin Client ]
Systems Administration Manual
[Cloud Ubuntu Server]
Executive Sponsor – [Jijeesh]
Business Owner - [Jijeesh]
Project Manager – [Jijeesh]
Original Plan Date: [2014-04-20]
Revision Date: [Insert Date, Spelled Out]
Revision: [01]

About this Document -System Administration Manual

This guide is based on the comprehensive LTSP documentation done by the Ubuntu Community Ubuntu Community Documentation - UbuntuLTSP
This guide is intended as a relatively easy step by step mostly graphical (GUI) guide to:
  • Set up a basic Ubuntu LTSP server on Ubuntu 11.04, 11.10 and 12.04
  • Configure Ubuntu 32bit thin- and fat clients with internet access.





Revision History

Revision Number
Date
Comment
1.0
04/22/14
Ubuntu server with thin client










Introduction

A System Administration Manual serves the purpose of an Operations Manual in distributed (client/server) applications.

Introduction and Purpose

This section introduces and describes the purpose of the Systems Administration Manual, the name of the system to which it applies, and the type of computer operation

Project References

This section lists, at a minimum, the User Manual, Maintenance Manual, and other pertinent available systems documentation.



SYSTEMS ADMINISTRATION

This section introduces the responsibilities of the System Administrator, as discussed in the subsequent sections.

User and Group Accounts

This section introduces topics related to system users.

Adding/Deleting Users

This section describes procedures to create/delete user logins and password accounts.

Setting User Permissions

This section describes procedures to give users/restrict access to certain files.

Adding/Deleting User Groups

This section contains procedures to create/delete user groups.

Setting User Roles/Responsibilities

This section describes the roles that are granted to each group or individual user(s).

Server Administration

This section describes procedures to setup servers, including naming conventions and standards.

Change your available network adaptor IP to a fixed entry


Most local network already use the 192.168.0.xx range of IP addresses, but the default install of LTSP relies on this range being available. In this tutorial we will set up the LTSP network on the 192.168.1.xx range.
  • You also need a separate network adaptor with internet access during the install process.
  • The LTSP server install wants to install it's own DHCP server, so if you have a router with it's own DHCP server it could cause conflicts if in the same network IP range.
  • So what to do is change your unused LAN port's IP address to a fixed IP in another IP range. For example my setup has a router with a DHCP server running on 192.168.0.1, and provides the Internet access on the system.  I changed my other LAN adaptor's IP to 192.168.1.1 , this will be used for the LTSP network.
  • NOTE: For some reason the DHCP server does not want to start correctly on system startup if the network adaptor's IP is not set in the network interfaces config file. (see 1d. below)

Install the LTSP server

Open the Terminal Window and enter :
apt-get install ltsp-server-standalone openssh-server

Edit the DHCP configuration for your LTSP server to match your chosen IP range

In this case I am planning static dhcp to avoid dhcpd server conflict gedit /etc/ltsp/dhcpd.conf
Open the Terminal Window and enter :
Vim gedit /etc/ltsp/dhcpd.conf


authoritative;






subnet 192.168.11.0 netmask 255.255.255.0 {


# range 192.168.11.20 192.168.11.250;


option domain-name "example.com";


option domain-name-servers 192.168.11.1;


option broadcast-address 192.168.11.255;


option routers 192.168.11.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";


}






host jijeesh16 {


hardware ethernet 00:16:76:87:45:01;


fixed-address 192.168.11.16;


}


host bins62 {


hardware ethernet 00:16:76:49:01:3e;


fixed-address 192.168.11.62;


}


host biji63 {


hardware ethernet 00:80:48:48:d3:59;


fixed-address 192.168.11.63;


}






}


Select the network interface/s for the DHCP server

Add the network devices you would like the DHCP server to run on. In this case we changed the value of INTERFACES to include eth0
Open the Terminal Window and enter :
vim /etc/default/isc-dhcp-server


INTERFACES="eth0"



Restart the DHCP server

Open the Terminal Window and enter :
/etc/init.d/isc-dhcp-server restart

Build the i386 (32bit) LTSP Thin/Fat Client

This step builds the 32bit Thin Client Ubuntu 11.04 image needed to boot the thin clients on the network.
This step downloads and installs all the 32bit Ubuntu client elements. Could take a while.
Open the Terminal Window and enter :
ltsp-build-client --arch i386

Reboot your new LTSP server to complete LTSP server install

  • At this point your Ubuntu LTSP server should be up and running.
  • You should be able to boot a Thin Client via the network.


Tip: After reboot make sure that the DHCP is running correctly. Open a Terminal Window and enter:
/etc/init.d/isc-dhcp-server status








Install the JDK package


update-alternatives --install "/usr/bin/java" "java" "/usr/java/jdk1.7.0_55/bin/java" 1


update-alternatives --install "/usr/bin/javac" "javac" "/usr/java/jdk1.7.0_55/bin/javac" 1


update-alternatives --install "/usr/bin/javaws" "javaws" "/usr/java/jdk1.7.0_55/bin/javaws" 1



No comments:

Post a Comment