Installation serveur LTSP sous Ubuntu 11.10 : Différence entre versions
De wikiGite
| Ligne 17 : | Ligne 17 : | ||
|   auto eth1 |   auto eth1 | ||
|   iface eth1 inet static |   iface eth1 inet static | ||
| − |           address  | + |           address 10.0.0.1 | 
| − |           netmask 255. | + |           netmask 255.0.0.0 | 
| − |           gateway  | + |           gateway 10.0.0.254 | 
|   /etc/init.d/networking restart |   /etc/init.d/networking restart | ||
| Ligne 42 : | Ligne 42 : | ||
|   #    get-lease-hostnames true; |   #    get-lease-hostnames true; | ||
|       option subnet-mask 255.0.0.0; |       option subnet-mask 255.0.0.0; | ||
| − |       option root-path "/opt/ltsp/ | + |       option root-path "/opt/ltsp/crijfati386"; | 
|       if substring( option vendor-class-identifier, 0, 9 ) = "PXEClient" { |       if substring( option vendor-class-identifier, 0, 9 ) = "PXEClient" { | ||
| − |           filename "ltsp/ | + |           filename "ltsp/crijfati386/pxelinux.0"; | 
| − | |||
|       } else { |       } else { | ||
| − |           filename "ltsp/ | + |           filename "ltsp/crijfati386/nbi.img"; | 
|       } |       } | ||
|   } |   } | ||
| Ligne 60 : | Ligne 59 : | ||
|   adduser (dans le chroot?) |   adduser (dans le chroot?) | ||
| + | Création de l'image de démarrage : | ||
|   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 | ||
|   /etc/init.d/nbd-server restart |   /etc/init.d/nbd-server restart | ||
Version du 9 janvier 2012 à 14:43
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 10.0.0.1
        netmask 255.0.0.0
        gateway 10.0.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/crijfati386";
    if substring( option vendor-class-identifier, 0, 9 ) = "PXEClient" {
        filename "ltsp/crijfati386/pxelinux.0";
    } else {
        filename "ltsp/crijfati386/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?)
Création de l'image de démarrage :
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

