User Tools

Site Tools


wiki:obsolete:lenny-complete-edition

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revision Both sides next revision
wiki:obsolete:lenny-complete-edition [2010/03/10 22:06]
romy
wiki:obsolete:lenny-complete-edition [2010/03/11 09:05]
romy
Line 23: Line 23:
 </code> </code>
  
-//Dark blue boxes like the one below will show you the content of text files//In this case the lines which have to be added to “/etc/apt/sources.list”:+In this case the lines which have to be added to “/etc/apt/sources.list” are:\\  
 +//Dark blue boxes like the one below will show you the content of text files//.
  
 <file> <file>
Line 271: Line 272:
 </code> </code>
  
-The next step will copy the newly generated configuration files into your real /etc directory. **You should not do this without a valid backup!**+The next step will copy the newly generated configuration files into your real /etc directory.\\  
 +//You should not do this without a valid backup!//
  
 <code> <code>
Line 464: Line 466:
 </code> </code>
  
 +The package x2gothinclientsystem will install a system daemon which will start x2goclient as a display manager. It will further start a deamon which will be responsible for mounting local mass storage devices automatically.
  
 +<code>
 +# apt-get install x2gothinclientsystem
 +# cd /usr/share/x2gothinclientsystem/script
 +# ./x2gothinclient_install.sh
 +</code>
 +
 +This will finish the installation of the boot environment. Before exiting the chroot environment, you'll need to umount the /proc and /dev directories:
 +
 +<code>
 +# umount /proc/
 +# umount /dev/pts/
 +</code>
 +
 +The command “exit” will leave the chroot boot environment. If you discover any problems, you can always go back inside the boot environment by using “chroot” as described (for example for system upgrades):
 +
 +<code>
 +# exit
 +</code>
 +
 +== Configuration of DHCPD == 
 +
 +If you already have an DHCP server in your network, please make sure that you are able to setup an own range of IP addresses for the boot environment. Because of the conflict between devices that should access the boot environment and normal network nodes (MAC address binding), it is much easier to setup an own network for your thin client system. The following example assumes that you are running the DHCPD and the ATFTPD on the same system. 
 +
 +<code>
 +# vi /etc/dhcpd/dhcpd.conf
 +</code>
 +
 +<file>
 +option domain-name "planetexpress.de";
 +option domain-name-servers 192.168.1.1;
 +# x2go thin client range/group
 +subnet 192.168.0.0 netmask 255.255.255.0 {
 +range 192.168.0.100 192.168.0.199;
 +filename "/pxelinux.0";
 +next-server 192.168.0.250;
 +}
 +</file>
 +
 +Restart the DHCPD to apply the new configuration:
 +
 +<code>
 +# /etc/init.d/dhcp3-server restart
 +</code>
 +
 +== Setting up atftp ==
 +
 +After receiving a network address from the DHCP daemon, a kernel will be deployed using the tftp protocoll. For this purpose, you'll need to configure the **atftpd**, so that the kernel can be found. Please make sure, that **atftp** ist started by an init script and not via inet.d.
 +
 +<code>
 +# vi /etc/default/atftpd
 +</code>
 +
 +<file>
 +USE_INETD=false
 +OPTIONS="--daemon --port 69 --tftpd-timeout 300 --retry-timeout 5 --mcast-port 1758 --mcast-addr 239.239.239.0-255 --mcast-ttl 1 --maxthread 100 --verbose=5 /tftpboot"
 +</file>
 +
 +You'll need a directory to store the necessary kernel which should be world readable (=public).
 +
 +<code>
 +# mkdir /tftpboot
 +# chmod 755 /tftpboot
 +</code>
 +
 +If inet.d was installed and used on your system, please make sure that it is not starting or runnig **atftp** when you start it directly:
 +
 +<code>
 +# /etc/init.d/atftpd restart
 +</code>
 +
 +If you don't want to make copies of the kernel and initrd files, just use symbolic links – that is a good idea, if you plan to maintain the boot environment:
 +
 +<code>
 +# ln -s /opt/x2gothinclient/vmlinuz /tftpboot/
 +# ln -s /opt/x2gothinclient/initrd.img /tftpboot/
 +</code>
 +
 +The configuration file of **atftp** needs to be created and edited. Please change the IP address if necessary!
 +
 +<code>
 +# mkdir /tftpboot/pxelinux.cfg
 +# touch /tftpboot/pxelinux.cfg/default
 +# vi /tftpboot/pxelinux.cfg/default
 +# cp /opt/x2gothinclient/usr/lib/syslinux/pxelinux.0 /tftpboot/
 +</code>
 +
 +<file>
 +label linux
 +kernel vmlinuz
 +append root=/dev/nfs nfsroot=192.168.1.1:/opt/x2gothinclient ro initrd=initrd.img ip=dhcp
 +</file>
 +
 +== Configuration of the NFS share ==
 +
 +The root file system of the boot environment is mounted using NFS (so it can be accessed over the network). You'll need to export the needed directory by editing the NFS configuration file:
 +
 +<code>
 +# vi /etc/exports
 +</code>
 +
 +<file>
 +/opt/x2gothinclient 192.168.1.0/24(ro,async,no_root_squash)
 +</file>
 +
 +Finally restart the NFSD:
 +
 +<code>
 +# /etc/init.d/nfs-kernel-server restart
 +</code>
 +
 +== Configuration of x2goclient (display manager mode) ==
 +
 +Please also edit the command line options used by the x2goclient running in display manager mode (for example: change the IP address).
 +
 +<code>
 +# vi /opt/x2gothinclient/etc/default/x2gothinclient
 +</code>
 +
 +<file>
 +x2goclient --pgp-card –ldap="192.168.1.1:389:o=planetexpress,c=de" --external-login=/ramdrive/logins --no-menu --maximize --link=lan --kbd-layout=de --kbd-type=pc105/de --set-kbd=1 --geometry=fullscreen --add-to-known-hosts --read-exports-from=/ramdrive/export –add-to-known-hosts
 +</file>
 +
 +You are done! ;-)
 +
 +PXE Boot enabled devices should now boot into the configured environment and show the x2goclient in display manager mode. If there are problems to start x.org, you may need to add missing drivers to the boot environment.