Diskless PC mit Debian :: TFTP-Server installieren
Diskless PC mit Debian :: TFTP-Server installieren
Als TFTP-Server reicht eine ganz simple Konfiguration aus. Dazu installieren wir den aftpd, und passen dessen Konfiguration auf unsere Bedürfnisse an.Code
1
apt-get install atftpdCode
1
2
3
4
5
6
7
2
3
4
5
6
7
USE_INETD=false
OPTIONS=" --daemon --port 69
--retry-timeout 5 --mcast-port 1758
--mcast-addr 192.168.10.0-255
--mcast-ttl 1 --maxthread 100
--verbose=5 --logfile /diskless/log/atftpd.log
/diskless/boot"Code
1
2
3
4
5
6
2
3
4
5
6
mkdir /diskless/boot
cd /diskless/boot
cp /usr/lib/syslinux/pxelinux.0 .
cp /diskless/images/v1/boot/initrd.img-2.6.26-2-686 .
cp /diskless/images/v1/boot/vmlinuz-2.6.26-2-686 .
mkdir /diskless/boot/pxelinux.cfg/diskless/boot/pxelinux.cfg/default
Code
1
2
3
4
2
3
4
LABEL linux
KERNEL vmlinuz-2.6.26-2-686
APPEND initrd=initrd.img-2.6.26-2-686 aufs=nfs nfsroot=192.168.10.65:/diskless/images/v1 ro vga=792
IPAPPENDCode
1
/etc/init.d/atftpd restart