Installing debian from a network boot
DHCP
# apt-get install dhcp
Figure out the MAC address of the computer you want to boot (host). Usually, this can be discovered in the bios. It goes on the line "hardware ethernet MAC_ADDRESS".
This assume that you have set up 192.168.0.1 as the network for DHCP and that 192.168.0.1 is configured as a nameserver and is set up with ipmasq. This is not required: any valid default route will work.
/etc/dhcpd.conf:
option domain-name "riseup.net";
default-lease-time 600;
max-lease-time 7200;
allow booting;
allow bootp;
subnet 192.168.0.0 netmask 255.255.255.0 {
range 192.168.0.50 192.168.0.100;
filename "pxelinux.0";
option subnet-mask 255.255.255.0;
option broadcast-address 192.168.0.100;
option routers 192.168.0.1;
option domain-name-servers 192.168.0.1;
host servername_to_boot {
hardware ethernet 00:30:48:59:0B:C6;
fixed-address 192.168.0.5;
filename "pxelinux.0";
}
}
# /etc/init.d/dhcp restart
Download netboot kernel
For links to download netboot.tar.gz:
# mkdir /tftpboot
# cd /tftpboot
# wget <<netboot.tar.gz url>>
# tar xvzf netboot.tar.gz
TFTPd
# apt-get install atftpd
You could run the TFTP daemon from inetd or as a background daemon, but since we probably just want to do this once, it is best to run it on the command line and make it spit the logging messages out to the console:
atftpd --daemon --no-fork --tftpd-timeout 300 --retry-timeout 5 --mcast-port 1758 --mcast-addr 239.239.239.0-255 --mcast-ttl 1 --maxthread 100 --verbose=7 --logfile /dev/stdout /tftpboot
Testing TFTP
# apt-get install atftp
> atftp localhost
tftp> get pxelinux.0
|