Code: |
# apt-get install isc-dhcp-server tftpd-hpa syslinux pxe pxelinux nfs-kernel-server |
Code: |
#################################################### # This file describes the network interfaces available on your system # and how to activate them. For more information, see interfaces(5). source /etc/network/interfaces.d/* # The loopback network interface auto lo iface lo inet loopback # The primary network interface allow-hotplug eth1 iface eth1 inet dhcp allow-hotplug eth0 iface eth0 inet static address 10.10.10.1 netmask 255.255.255.0 broadcast 10.10.10.255 network 10.10.10.0 nameserver 127.0.0.1 #################################################### |
Code: |
#################################################### # Début de configuration du service DHCP # # Déclaration des leases et plages de service du serveur PXE: subnet 10.10.10.0 netmask 255.255.255.0 { range 10.10.10.10 10.10.10.20; # à adapter aux nombres de postes clients option broadcast-address 10.10.10.255; option routers 10.10.10.1; # IP du serveur PXE si on veut faire du routage option domain-name-servers 10.10.10.1; # idem filename "pxelinux.0"; } group { next-server 10.10.10.1; # si nécessaire host tftpclient { filename "pxelinux.0"; } } # # Fin de configuration du service DHCP #################################################### |
Code: |
#################################################### TFTP_USERNAME="tftp" TFTP_DIRECTORY="/srv/tftp" TFTP_ADDRESS="0.0.0.0:69" TFTP_OPTIONS="--secure" #################################################### |
Code: |
#################################################### # which interface touse interface=eth0 default_address=10.10.10.1 # tftpd base dir: tftpdbase=/srv/tftp # # Fin de configuration du service PXE #################################################### |
Code: |
$ wget http://linuxmint.efemef.ovh/stable/18.1/linuxmint-18.1-mate-64bit.iso |
Code: |
# mkdir /srv/tftp/mint-18.1-64-mate |
Code: |
# mount linuxmint-18.1-mate-64bit.iso/mnt |
Code: |
#################################################### # /etc/exports: the access control list for filesystems which may be exported # to NFS clients. See exports(5). # # Example for NFSv2 and NFSv3: #/srv/homes hostname1(rw,sync,no_subtree_check) hostname2(ro,sync,no_subtree_check) # # Example for NFSv4: # /srv/nfs4 gss/krb5i(rw,sync,fsid=0,crossmnt,no_subtree_check) #/srv/nfs4/homes gss/krb5i(rw,sync,no_subtree_check) # /srv/tftp/mint-18.1-64-mate 10.10.10.0/24(async,no_root_squash,no_subtree_check,ro) #################################################### |
Code: |
#################################################### # Début de configuration du menu PXE: # # Interface visuelle: DEFAULT vesamenu.c32 MENU TITLE Bienvenue sur le serveur PXE AviGNU prompt 0 kbdmap french.kbd menu separator # Entrée du menu LABEL LinuxMint Mate 18.1 64bits KERNEL mint-18.1-64-mate/casper/vmlinuz APPEND root=/dev/nfs boot=casper netboot=nfs nfsroot=10.10.10.1:/srv/tftp/mint-18.1-64-mate initrd=mint-18.1-64-mate/casper/initrd.lz nosplash -- menu separator # Entrée du menu de redémarrage LABEL Reboot MENU LABEL Redemarrer KERNEL reboot.c32 # # Fin de configuration du menu PXE #################################################### |
Code: |
# /sbin/iptables -t nat -APOSTROUTING -o eth1 -j MASQUERADE # /sbin/iptables -A FORWARD -i eth1 -o eth0 -m state --state RELATED,ESTABLISHED -j ACCEPT # /sbin/iptables -A FORWARD -i eth0 -o eth1 -j ACCEPT |
Code: |
# apt-get install iptables-persistent |
Citation: |
Serait t'il possible de faire sur le site parrain linux un sondage montrant le nombre d'utilisateur qui font le choix de la même distribution a fin de voir se qui conduit a ce choix ? C'est juste une sujestion adressé a personne qui s'occupe du site ! |