Lancer Mandrake Control Center et installer les quatre paquetages LTSP, dans l'ordre présenté plus haut.
| fichier de configuration | répertoire |
|---|---|
| default | /etc/X11/gdm/init/ |
| dhcpd.conf.example | /etc/ |
| exports | /etc/ |
| gdm.conf | /etc/X11/gdm/ |
| hosts.allow | /etc/ |
| inittab | /etc/ |
| kdmrc | /usr/share/config/kdm/ |
| ltsp.gif | /etc/X11/Xdm/ |
| syslog | /etc/sysconfig/ |
| Xaccess | /etc/X11/Xdm/ |
| xdm-config | /etc/X11/Xdm/ |
| Xservers | /etc/X11/Xdm/ |
| Xsetup_workstation | /etc/X11/Xdm/ |
# Sample configuration file for ISCD dhcpd
#
# Don't forget to set run_dhcpd=1 in /etc/init.d/dhcpd
# once you adjusted this file and copied it to /etc/dhcpd.conf.
#
ddns-update-style none;
default-lease-time 21600;
max-lease-time 21600
option subnet-mask 255.255.255.0;
option broadcast-address 172.16.0.255;
option routers 172.16.0.150;
option domain-name-servers 172.16.0.150;
option domain-name "ltsp-serveur.local";
option root-path "172.16.0.150:/opt/ltsp/i386";
option option-128 code 128 = string;
option option-129 code 129 = text;
shared-network WORKSTATIONS {
subnet 172.16.0.0 netmask 255.255.255.0 {
}
}
group {
use-host-decl-names on;
option log-servers 172.16.0.150;
host ws000 {
hardware ethernet 00:50:BA:E2:F6:7E;
fixed-address 172.16.0.160;
filename "/lts/vmlinuz-2.4.22-ltsp-1";
}
host ws001 {
hardware ethernet 00:50:BA:E2:FD:E8;
fixed-address 172.16.0.161;
filename "/lts/vmlinuz-2.4.22-ltsp-1";
}
host ws002 {
hardware ethernet 00:50:BA:0A:02:D1;
fixed-address 172.16.0.162;
filename "/lts/vmlinuz-2.4.22-ltsp-1";
}
host ws003 {
hardware ethernet 00:50:BA:E2:FD:E7;
fixed-address 172.16.0.163;
filename "/lts/vmlinuz-2.4.22-ltsp-1";
}
host ws004 {
hardware ethernet 00:50:BA:0A:03:14;
fixed-address 172.16.0.164;
filename "/lts/vmlinuz-2.4.22-ltsp-1";
}
host ws005 {
hardware ethernet 00:50:BA:E2:FF:BE;
fixed-address 172.16.0.165;
filename "/lts/vmlinuz-2.4.22-ltsp-1";
}
host ws006 {
hardware ethernet 00:50:BA:0A:03:15;
fixed-address 172.16.0.166;
filename "/lts/vmlinuz-2.4.22-ltsp-1";
}
host ws007 {
hardware ethernet 00:50:BA:E2:FD:E6;
fixed-address 172.16.0.167;
filename "/lts/vmlinuz-2.4.22-ltsp-1";
}
host ws008 {
hardware ethernet 00:50:BA:E2:E4:35;
fixed-address 172.16.0.168;
filename "/lts/vmlinuz-2.4.22-ltsp-1";
}
# poste "Pentium 90"
host ws023 {
hardware ethernet 00:50:BA:23:DA:57;
fixed-address 172.16.0.183;
filename "/lts/vmlinuz-2.4.22-ltsp-1";
option option-128 e4:45:74:68:00:00; # ce n'est pas une adresse MAC !
option option-129 "NIC=3D3c509";
}
}
Dans notre exemple ce fichier correspond à
127.0.0.1 localhost 172.16.0.161 ws001 172.16.0.162 ws002 172.16.0.163 ws003 172.16.0.164 ws004 172.16.0.165 ws005 172.16.0.166 ws006 172.16.0.167 ws007 172.16.0.168 ws008 172.16.0.183 ws023
#
# Config file for the Linux Terminal Server Project (www.ltsp.org)
#
[Default]
SERVER = 172.16.0.150
XSERVER = auto
X_MOUSE_PROTOCOL = "PS/2"
XKBLAYOUT = "fr"
X_MOUSE_DEVICE = "/dev/psaux"
X_MOUSE_RESOLUTION = 400
X_MOUSE_BUTTONS = 3
USE_XFS = N
LOCAL_APPS = N
RUNLEVEL = 5
SOUND = N
# SOUND_DAEMON = nasd
# SMODULE_01 = sb io=0x220 irq=5 dma=1
#------------------------------------------------------------------------------
#
# Example of specifying X settings for a workstation
#
[ws001]
XSERVER = auto
LOCAL_APPS = N
USE_NFS_SWAP = N
SWAPFILE_SIZE = 48m
RUNLEVEL = 5
[ws023]
XSERVER = auto
X_MODE_0 = 800x600
LOCAL_APPS = N
USE_NFS_SWAP = N
SWAPFILE_SIZE = 64m
RUNLEVEL = 5
[ws021]
XSERVER = XF86_S3
LOCAL_APPS = N
USE_NFS_SWAP = N
SWAPFILE_SIZE = 64m
RUNLEVEL = 5
#
# ws004 is my virtual workstation running in a VMware session
#
#[ws004]
# DNS_SERVER = 172.16.0.150
# XSERVER = auto
# X4_BUSID = "PCI:0:15:0"
# X_MODE_0 = 800x600
# LOCAL_APPS = N
# USE_NFS_SWAP = N
# SWAPFILE_SIZE = 64m
# RUNLEVEL = 5
#------------------------------------------------------------------------------
#
# Example of a workstation configured to load some modules
#
#[ws001]
# MODULE_01 = agpgart.o # This is for i810 video
# MODULE_02 = uart401.o
# MODULE_03 = sb.o io=0x220 irq=5 dma=1
# MODULE_04 = opl3.o
#------------------------------------------------------------------------------
#
# Example of ws001 configured for local apps
#
#[ws001]
# LOCAL_APPS = Y
# LOCAL_WM = Y
# NIS_DOMAIN = ltsp
# NIS_SERVER = 172.16.0.150
#------------------------------------------------------------------------------
#
# Example of a serial printer attached to /dev/ttyS1 on workstation
ws001
#
# [ws001]
# PRINTER_0_DEVICE = /dev/ttyS1
# PRINTER_0_TYPE = S # P-Parallel, S-Serial
# PRINTER_0_PORT = 9100 # tcp/ip port: defaults to 9100
# PRINTER_0_SPEED = 9600 # baud rate: defaults to 9600
# PRINTER_0_FLOWCTRL = S # Flow control: S-Software (XON/XOFF),
# H-Hardware (CTS/RTS)
# PRINTER_0_PARITY = N # Parity: N-None, E-Even, O-Odd
# (defaults to 'N')
# PRINTER_0_DATABITS = 8 # Databits: 5,6,7,8 (defaults to 8)
Remarques# # hosts.allow This file describes the names of the hosts which are # allowed to use the local INET services, as decided # by the '/usr/sbin/tcpd' server. # ## LTS-begin ## # # The lines between the 'LTS-begin' and the 'LTS-end' were added # on: mar mai 25 15:53:34 CEST 2004 by the ltsp installation script. # For more information, visit the ltsp homepage # at http://www.ltsp.org # bootpd: 0.0.0.0 in.tftpd: 172.16.0. portmap: 172.16.0. ## LTS-end ##
# ## LTS-begin ## # # The lines between the 'LTS-begin' and the 'LTS-end' were added # on: mar mai 25 15:53:34 CEST 2004 by the ltsp installation script. # For more information, visit the ltsp homepage # at http://www.ltsp.org # /opt/ltsp/i386 172.16.0.0/255.255.255.0(ro,no_root_squash) /var/opt/ltsp/swapfiles 172.16.0.0/255.255.255.0(rw,no_root_squash) /tftpboot/lts 172.16.0.0/255.255.255.0(ro,no_root_squash) # # The following entries need to be uncommented if you want # Local App support in ltsp # #/home 172.16.0.0/255.255.255.0(rw,no_root_squash) ## LTS-end ##
Votre poste client doit booter sur la disquette (modification
éventuelle du bios). Il suffit ensuite d’insérer
votre disquette et de démarrer votre client.
Le microprogramme présent sur la disquette va contacter le
serveur dhcp qui va attribuer une adresse IP à la carte
réseau, puis il lancera la procédure de démarrage
du client.
Remarque
Vous pouvez ne pas utiliser de disquette, si vous disposez d'une carte réseau possédant une mémoire flashable dans laquelle il est possible de charger le micrologiciel d'amorçage (PXE : Pre-boot eXecution Environment)...
En cas de problèmes
Il est intéressant de visualiser le contenu des fichiers de
log: /var/log/messages et /var/log/mdkkdm.log
C'est dans le premier fichier, notamment, que vous verrez apparaître
l'adresse MAC de la carte réseau du client, si vous n'avez
trouvé aucun autre moyen de la déterminer.
Ensuite, si vos problèmes persistent, il existe une
documentation conséquente (en Anglais) et une mailing-list
très active, accessible à partir du site LTSP...
FCTICE77 Melun