From Tim's website
Jump to: navigation, search

PXE Boot server

You can serve boot images for other systems on your network to use when they boot. In this example machines booting via PXE will install Debian Lenny (64-bit) via the network boot installer.

  • Install TFTP server tftpd-hpa (not just tfptd)
  • Modify /etc/default/tftpd-hpa to enable the daemon so it looks like this
#Defaults for tftpd-hpa
RUN_DAEMON="yes"
OPTIONS="-l -s /var/lib/tftpboot"
  • Start the daemon with /etc/init.d/tftpd-hpa start
  • Modify the DHCP serving section in /etc/dhcp3/dhcpd.conf
subnet 192.168.1.0 netmask 255.255.255.0 {
  range 192.168.1.10 192.168.1.20;
  filename "pxelinux.0";
  next-server 192.168.1.1;
  option subnet-mask 255.255.255.0;
  option broadcast-address 192.168.1.255;
  option routers 192.168.1.1;
}
  • Restart the DHCP server /etc/init.d/dhcp3-server restart
  • Finally download and install the PXE boot image to be served
cd /var/lib/tftpboot/ 
wget http://ftp.uk.debian.org/debian/dists/lenny/main/installer-amd64/current/images/netboot/netboot.tar.gz
tar xzvf netboot.tar.gz

RKHunter

  • Add or uncomment the following lines in /etc/rkhunter.conf to avoid warnings about the new service we've enabled
INETD_CONF_PATH=/etc/inetd.conf
INETD_ALLOWED_SVC=tftp