How To Linux Terminal Server Project (LTSP)
How To Linux Terminal Server Project (LTSP)
}
Now restart xined service
#service xinetd restart
Step3 :
Configure nfs for ltsp server
Open the file #vim /etc/exports and enter following lines in it.
/opt/ltsp 192.168.0.0/255.255.255.0(ro,no_root_squash,sync)
/var/opt/ltsp/swapfiles
192.168.0.0/255.255.255.0(rw,no_root_squash,async)
Now restart nfs service
#service nfs restart
#chkconfig nfs on (for service start automatically on every bootup)
Step4 :
Configure dhcpd.conf for ltsp server
Now you need to configure dhcpd.conf file and here is example of my file.
#vim /etc/dhcpd.conf
ddns-update-style interim;
ignore client-updates;
subnet 192.168.0.0 netmask 255.255.255.0 {
# default gateway
# option routers 192.168.0.1;
# option subnet-mask 255.255.255.0;
# option nis-domain domain.org;
option domain-name san.com;
option domain-name-servers 192.168.0.1;
option time-offset -18000; # Eastern Standard Time
# option ntp-servers 192.168.1.1;
# option netbios-name-servers 192.168.1.1;
# Selects point-to-point node (default is hybrid). Dont change this unless
# you understand Netbios very well
# option netbios-node-type 2;
option log-servers 192.168.0.1;
option root-path 192.168.0.1:/opt/ltsp/i386;
If you use thes lines here then every system on your network can boot from #ltsp
server but if you want more security then remove this line and then only #that
system can boot thats hardware address will declare in host ws001 #section
with static ip address.
filename /lts/2.4.26-ltsp-2/pxelinux.0;
range dynamic-bootp 192.168.0.128 192.168.0.254;
default-lease-time 21600;
max-lease-time 43200;
If you want to use static IP address for your workstation the following section and
modify to suit your network. Then, duplicate this section for each workstation that
needs a static IP address.
host ws001 {
hardware ethernet 00:20:ED:75:9A:EC;
fixed-address 192.168.0.2;
filename /lts/2.4.26-ltsp-2/pxelinux.0;
}
}
Step5 :
Configure lts.conf for ltsp server
Now you need to configure #vim /opt/ltsp/i386/etc/lts.conf file for client.
Here is example of my lts.conf file
[Default]
SERVER = 192.168.0.1
RDP_SERVER = 192.168.0.50
XSERVER = auto
X_MOUSE_PROTOCOL = PS/2
X_MOUSE_DEVICE = /dev/psaux
X_MOUSE_RESOLUTION = 400
X_MOUSE_BUTTONS = 3
USE_XFS = N
X_COLOR_DEPTH = 24 # it is for xp terminal server
X_MODE_0 = 1024768
RUNLEVEL = 5
LDM_REMOTECMD = /etc/X11/xinit/Xsession
SCREEN_01 = startx
SCREEN_02 = telnet
SCREEN_3 = shell
SCREEN_4 = rdesktop
Note : Here I will explain some options of this file.
SERVER : Here you I have to enter your ltsp server ip address.
RDP_SERVER : If you want to run remote desktop connection on xp then you have enter IP address.
Of your xp terminal server. Otherwaise remove this option.
LDM_REMOTECMD :/etc/X11/xinit/Xsession
When I was trying to running startx on client machine it was showing white
screen only for solving this problem I copied this. Option from internet and
paste it here and my problem solved.
Source : The LTSP client screen will still not display because LTSP expects a file /etc/X11/Xsession to
exist on the server. In RHEL5 this corresponds to /etc/X11/xinit/Xsession .This can be fixed by specifying
the environment variable LDM_REMOTECMD in
/opt/ltsp/i386/etc/lts.conf:[192.168.250.20]LDM_REMOTECMD = /etc/X11/xinit/Xsession.
About SCREEN :
The most interesting parameter here is SCREEN_01. The default is startx, which
specifies that the workstation should boot up in a graphical X display, but there are
a number of interesting possibilities.
[xdmcp]
Enable=true
[security]
DisallowTCP=false
AllowRemoteRoot=true
Next, restart X Windows:
[root@racdb2 ~]# init 3
[root@racdb2 ~]# init 5
Step8 :
It is an optional step because some time client show syslog error after booting it
means your server is not configure for accept remote logs so you want to configure
some lines for that#vim /etc/sysconfig/syslog
and add the -r option as below:
SYSLOGD_OPTIONS=-r m 0
Now restart syslog service
#service syslog restart
And now open file /opt/ltsp/i386/etc/lts.conf and add the following line:
SYSLOG_HOST = 192.168.0.1 #your syslog server ip
More Examples of configure files in different way /etc/dhcpd.conf
Please visit http://www.linuxnix.com for more linux admin stuff