Installation serveur LTSP sous Ubuntu 11.10 : Différence entre versions
De wikiGite
(Page créée avec « Configuration avec 2 cartes réseaux : * eth0 : sur le LAN/WAN * eth1 : les clients légers eth1 doit être en @IP fixe si on veut activer le DHCP sur cette interface. Exem... ») |
|||
| Ligne 1 : | Ligne 1 : | ||
| + | Configuration Réseau du serveur : | ||
Configuration avec 2 cartes réseaux : | Configuration avec 2 cartes réseaux : | ||
* eth0 : sur le LAN/WAN | * eth0 : sur le LAN/WAN | ||
| Ligne 22 : | Ligne 23 : | ||
/etc/init.d/networking restart | /etc/init.d/networking restart | ||
| − | + | Configuration du serveur DHCP : | |
| + | (facultatif) | ||
| + | vi /etc/ltsp/dhcpd.conf | ||
| − | + | # | |
| − | + | # Default LTSP dhcpd.conf config file. | |
| − | + | # | |
| − | + | ||
| + | authoritative; | ||
| + | |||
| + | subnet 10.0.0.0 netmask 255.0.0.0 { | ||
| + | range 10.0.0.10 10.0.0.20; | ||
| + | option domain-name "example.com"; | ||
| + | option domain-name-servers 10.0.0.1; | ||
| + | option broadcast-address 10.0.0.255; | ||
| + | option routers 10.0.0.1; | ||
| + | # next-server 192.168.0.1; | ||
| + | # get-lease-hostnames true; | ||
| + | option subnet-mask 255.0.0.0; | ||
| + | option root-path "/opt/ltsp/crij-fati386"; | ||
| + | if substring( option vendor-class-identifier, 0, 9 ) = "PXEClient" { | ||
| + | filename "ltsp/crij-fati386/pxelinux.0"; | ||
| + | # filename "/opt/ltsp/crij-fati386/usr/lib/syslinux/pxelinux.0"; | ||
| + | } else { | ||
| + | filename "ltsp/crij-fati386/nbi.img"; | ||
| + | } | ||
| + | } | ||
| − | + | Redémarrage du service : | |
| − | + | sudo /etc/init.d/isc-dhcp-server restart | |
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | sudo /etc/init.d/isc-dhcp-server restart | ||
Login chroot : | Login chroot : | ||
sudo chroot /opt/ltsp/crijfati386 | sudo chroot /opt/ltsp/crijfati386 | ||
| − | + | Ajout des utilisateurs : | |
| − | + | adduser (dans le chroot?) | |
| − | |||
| − | |||
| − | |||
sudo ltsp-build-client --arch i386 --base /opt/ltsp/ --fat-client --chroot crij-fat-i386 --prompt-rootpass | sudo ltsp-build-client --arch i386 --base /opt/ltsp/ --fat-client --chroot crij-fat-i386 --prompt-rootpass | ||
Version du 9 janvier 2012 à 14:35
Configuration Réseau du serveur : Configuration avec 2 cartes réseaux :
- eth0 : sur le LAN/WAN
- eth1 : les clients légers
eth1 doit être en @IP fixe si on veut activer le DHCP sur cette interface.
Exemple :
vi /etc/network/interfaces
auto eth0
iface eth0 inet static
address 192.168.10.2
netmask 255.255.255.0
gateway 192.168.10.1
auto eth1
iface eth1 inet static
address 192.168.0.10
netmask 255.255.255.0
gateway 192.168.0.254
/etc/init.d/networking restart
Configuration du serveur DHCP : (facultatif)
vi /etc/ltsp/dhcpd.conf
#
# Default LTSP dhcpd.conf config file.
#
authoritative;
subnet 10.0.0.0 netmask 255.0.0.0 {
range 10.0.0.10 10.0.0.20;
option domain-name "example.com";
option domain-name-servers 10.0.0.1;
option broadcast-address 10.0.0.255;
option routers 10.0.0.1;
# next-server 192.168.0.1;
# get-lease-hostnames true;
option subnet-mask 255.0.0.0;
option root-path "/opt/ltsp/crij-fati386";
if substring( option vendor-class-identifier, 0, 9 ) = "PXEClient" {
filename "ltsp/crij-fati386/pxelinux.0";
# filename "/opt/ltsp/crij-fati386/usr/lib/syslinux/pxelinux.0";
} else {
filename "ltsp/crij-fati386/nbi.img";
}
}
Redémarrage du service :
sudo /etc/init.d/isc-dhcp-server restart
Login chroot :
sudo chroot /opt/ltsp/crijfati386
Ajout des utilisateurs :
adduser (dans le chroot?)
sudo ltsp-build-client --arch i386 --base /opt/ltsp/ --fat-client --chroot crij-fat-i386 --prompt-rootpass /etc/init.d/nbd-server restart
En cas de modif :
sudo ltsp-update-image --arch crijfati386 /etc/init.d/nbd-server restart
POur installer des paquets :
sudo chroot /opt/ltsp/crijfati386 sudo ltsp-update-image --arch crijfati386 /etc/init.d/nbd-server restart
