Advertisement
karlkloppenborg

Howto unattended install ubuntu server LTS 10.4.2

Mar 23rd, 2011
270
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.49 KB | None | 0 0
  1. ####
  2. # Howto unattended install ubuntu server LTS 10.4.2
  3. # Written by Karl Kloppenborg
  4. # For Crucial Paradigm and Damien what's-es-face.
  5. # Copyright 2011 - ~ - Karl Kloppenborg
  6. # notes, I am doing this on CENTOS5.5
  7.  
  8. 1) gewt a copy of the disk: ubuntu-10.04.2-server-i386.iso
  9. I got mine from:
  10. wget http://mirror.internode.on.net/pub/ubuntu/releases/10.04/ubuntu-10.04.2-server-i386.iso
  11.  
  12. ...store this in /root because that's an awesome place.
  13.  
  14. 2) Now we mount the disk to mnt
  15. mount -o loop /root/ubuntu-10.04.2-server-i386.iso /mnt
  16.  
  17. 3) Now we will configure the webserver (or if your me this is one I prepared earlier ;0 )
  18. yum -y install httpd
  19. default location of www is /var/www/html
  20.  
  21. 4) so make a directory to serve this ubuntu stuff from:
  22. mkdir /var/www/html/ubuntu
  23.  
  24. 5) Now move everthing into the ubuntu directory, so from inside /mnt issue this:
  25. cp -R * /var/www/html/ubuntu
  26.  
  27. Should buzz around for a while with flashy lights -- this is to be expected.
  28.  
  29. now start httpd;
  30. service httpd start
  31.  
  32. Now, assuming you've setup tftp and its verified working, do the following:
  33.  
  34. I have setup the following as my TFTP directory: /data/tftpboot/
  35.  
  36. 6) Create the directory ubuntu inside this:
  37. mkdir /data/tftpboot/ubuntu
  38.  
  39. 7) now in the /mnt do the following:
  40.  
  41. cd install/netboot/
  42.  
  43. 8) copy this contents to the tftp dir
  44. cp -R * /data/tftpboot/ubuntu
  45.  
  46. now assuming you have already configured DHCPD and its verified working you should be pointing senor computor, to the right pxelinux.0
  47.  
  48. 9) edit dhcpd.conf in /etc/
  49. make sure you add:
  50.  
  51. next-server 10.255.0.1;
  52. filename "ubuntu/pxelinux.0";
  53.  
  54. obviously adjust the configuration of next-server to suit your IP of tftpd location.... ;P
  55.  
  56. now restart dhcpd and verify you didn't break config.
  57.  
  58. 10) now edit /data/tftpboot/ubuntu/pxelinux.cfg/default... delete what ever was in there and add:
  59. ---------------------
  60. default install
  61. label install
  62. menu label ^Install
  63. menu default
  64. kernel ubuntu-installer/i386/linux
  65. append ramdisk_size=14984 locale=en_US console-setup/ask_detect=false console-setup/layoutcode=us netcfg/choose_interface=eth1 netcfg/get_hostname=testserver url=http://10.255.0.1/ubuntu-preseeds/preseed.cfg vga=normal initrd=ubuntu-installer/i386/initrd.gz -- quiet
  66.  
  67. ---------------------
  68.  
  69.  
  70. Note that append should be entirely one line, this stupid pastebin is just ruining my good work ;)
  71.  
  72. Boot and enjoy ;)
  73.  
  74. (Don't forget your preseed file I gave you Damien :p )
  75.  
  76. Cheers,
  77. Karl Kloppenborg.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement