aquaballoon

PXE

Sep 26th, 2011
156
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.85 KB | None | 0 0
  1. Setting Up Tftp Server -> DHCP Server
  2.  
  3. apt-get install tftpd-hpa inetutils-inetd
  4. nano /etc/inetd.conf
  5.  
  6. tftp    dgram   udp    wait    root    /usr/sbin/in.tftpd /usr/sbin/in.tftpd -s /tftpboot
  7.  
  8. nano /etc/default/tftpd-hpa
  9.  
  10. # /etc/default/tftpd-hpa
  11.  
  12. TFTP_USERNAME="tftp"
  13. TFTP_DIRECTORY="/tftpboot"
  14. TFTP_ADDRESS="0.0.0.0:69"
  15. TFTP_OPTIONS="--secure"
  16.  
  17. service inetutils-inetd restart
  18. service tftpd-hpa restart
  19.  
  20.  
  21. Setting Up DHCP Server
  22.  
  23. nano /etc/dhcp3/dhcpd.conf
  24.  
  25. filename "pxelinux.0";
  26. next-server 192.168.2.100;
  27.  
  28. service dhcp3-server restart
  29.  
  30. Setting Up Apache -> PXE Server
  31.  
  32. mkdir /var/www/ubuntu/
  33. mount -o loop /path/to/.iso /mnt
  34. cp -a /mnt/* /var/www/ubuntu/
  35.  
  36. Setting Up Boot Files -> PXE Server
  37.  
  38. mkdir /tftpboot
  39. chmod 777 /tftpboot
  40. cd /tftpboot
  41. cp -a /var/www/ubuntu/install/netboot/* /tftpboot/
  42. nano  /tftpboot/pxelinux.cfg/default
  43.  
  44. menu hshift 13
  45. menu width 49
  46. menu margin 8
  47.  
  48. default ubuntu-installer/i386/boot-screens/vesamenu.c32
  49.  
  50. Menu Title Boot Menu - Huree ICT Univ.
  51.  
  52. label install
  53.    menu label ^Install
  54.    menu default
  55.    kernel ubuntu-installer/i386/linux
  56.    append vga=normal initrd=ubuntu-installer/i386/initrd.gz -- quiet
  57.  
  58. label expert
  59.    menu label ^Expert install
  60.    kernel ubuntu-installer/i386/linux
  61.    append priority=low vga=normal initrd=ubuntu-installer/i386/initrd.gz --
  62.  
  63. label cli-expert
  64.    menu label Command-^line expert install
  65.    kernel ubuntu-installer/i386/linux
  66.    append tasks=standard pkgsel/language-pack-patterns= pkgsel/install-language-support=false priority=low vga=normal initrd=ubuntu-installer/i386/initrd.gz --
  67.  
  68. label rescue
  69.    menu label ^Rescue mode
  70.    kernel ubuntu-installer/i386/linux
  71.    append vga=normal initrd=ubuntu-installer/i386/initrd.gz rescue/enable=true -- quiet
  72.  
  73. label Local_drive
  74.    localboot 0
  75.    menu label ^Local Drive
  76.  
  77. prompt 0
  78. timeout 0
Advertisement
Add Comment
Please, Sign In to add comment