7. Tips, tricks and tweakings

7.1. The video card is not detected

In this case you will see a message like this

	WARNING: Auto probe of the video card failed !
	         You should specify the proper X server in lts.conf
	         Proceeding with the SLOW vesa server

By default, LTSP is configured to automatically use the X server required for your video card with the following line in /opt/ltsp/i386/etc/lts.conf

	XSERVER            = auto

LTSP scans /proc/bus/pci/devices, gets the vendor and PCI IDs, and looks in /opt/ltsp/i386/etc/vidlist for the corresponding X server to use. The warning message above is displayed when the vendor and PCI IDs are not in the vidlist. If you are sure that your video card is supported by the X.org release used by LTSP then you have two ways to solve the problem

  • Add a line like this in the workstation's section in /opt/ltsp/i386/etc/lts.conf

    	XSERVER            = X_server_to_use
    
  • Add an entry in /opt/ltsp/i386/etc/vidlist for your video card. For example, I have workstations with i845, i865 and i915 chipsets then I added the following entries

    8086:2562       i810            #Intel 82845G/GL/GV/GE/PE Integrated Graphics Device
    8086:2572       i810            #Intel 82865G Integrated Graphics Device
    8086:2582       i810            #Intel 82915G/GV/GL, 82910GL Integrated Graphics Device
    
    [Tip]Tip

    Use lspci and lspci -n to get the PCI ID of your video card

    [Note]Note

    If your video card is supported by a more recent release of X.org then you have to rebuild it in LBE

7.2. The network card is not detected

In this case you will see a message like this

        ERROR!  Could not automatically detect the network card.
                PCI cards should be detected automatically.
                ISA cards cannot be detected, so they require
                the nic driver to be specified in a 'NIC=' parameter
                to be passed on the kernel command line,
                usually specified in option-129, in the
                /etc/dhcpd.conf file.  See the LTSP docs for more info.

LTSP is configured to automatically load the kernel module required by your network card. This is done in the /linuxrc init script located in the initial RAM disk loaded by the kernel just after booting a workstation (/tftpboot/lts/pxe/initrd.lts which is a symbolic link to /tftpboot/lts/pxe/initrd-2.4.26-ltsp-2.gz). The vendor and PCI IDs for network cards are listed in the file /etc/niclist in the ramdisk. To acces this file, issue the following commands

# cp /tftpboot/lts/pxe/initrd-2.4.26-ltsp-2.gz /tmp
# gunzip /tmp/initrd-2.4.26-ltsp-2.gz
# mkdir /tmp/mnt
# mount -o loop /tmp/initrd-2.4.26-ltsp-2 /tmp/mnt

All what you have under /tmp/mnt is the root (/) filesystem initially used by the kernel. You can see that it contains essentially an init script (/linuxrc), a minimal set of Unix commands, a DHCP client (/bin/dhcpcd), a list of vendor and PCI IDs of the network cards recognized by LTSP (/etc/niclist) and their corresponding modules (/lib/modules/2.4.26-ltsp-2/kernel/drivers/net/).

Making LTSP detecting your network card returns to adding an entry in /etc/niclist and a module in /lib/modules/2.4.26-ltsp-2/kernel/drivers/net/. Be careful because the size of the ramdisk is very limited (use df to see how much available space is left). You have to free space by deleting some network modules you don't use or increase the size of the ramdisk.

Once you have finished with the ramdisk, issue the following commands to have the initrd ready to be used

# umount /tmp/mnt
# gzip -9 /tmp/initrd-2.4.26-ltsp-2
# cp /tmp/initrd-2.4.26-ltsp-2.gz /tftpboot/lts/pxe/

7.3. Installing additional software with K12LTSP

If you want to install Acrobat Reader, Flash, MS fonts, Java, Real Player and Webmin then login as root, double click on "Install additional software" icon on the desktop and launch the corresponding installers.

7.4. Preventing multiple logins with the same username

To prevent a same user from opening multiple Linux sessions without closing previous ones edit /etc/sysconfig/k12ltsp and set

PURGE_PROCESSES=YES
[Note]Note

If a user tries to login a second time then the first session is closed and all his processes are killed

7.5. Rebooting or powering off workstations remotely

Since LTSP 4, we can use the ltspinfo command on the server to do some tasks remotely like shutting down or rebooting the workstations. For example you can use a cron on the server which daily shuts down all the workstations at the end of the day to save power.

7.6. Creating and removing users accounts in bulk

Try to use Createusers

7.7. Optimizing Windows terminal services

Read The Definitive Guide to Windows Server 2003 Terminal Services (free publication). You can find there a lot of interesting information.

7.8. Inheriting settings in lts.conf

Use the LIKE keyword. See LTSP 4 documentation