HOW TO INSTALL DEBIAN EDU BASED ON SARGE USING NETBOOT ------------------------------------------------------ Author: Finn-Arne Johansen faj@bzz.no Verified to work, and used in numerous installs with pr05, Klausade. This Document is released under the GNU General Public License, version 2. On Debian GNU/Linux systems, the complete text of the GNU General Public License can be found in `/usr/share/common-licenses/GPL'. $Id: netboot_install_debian-edu_sarge.txt,v 1.5 2005/07/31 13:57:01 finnarne Exp $ Introduction ----------- This HOWTO is based on the work in the test lab of BzzWare AS http://bzz.no. It's been on my mind for some time, but I really have put this aside far to long. You have a perfect network connection, and you do a lot of installation. But running around with a CD in many machines, just don't give you a kick. Or you do a lot of testing, and you really don't find it amusing to burn a new CD every hour. Let's take a normal main-server installation, based on debian-edu. What you need: -A daily built debian-edu-i386-binary-1.raw from 2005-07-31 or later, or a prerelease later than pr04 (not yet built) -A debian-installer initrd.gz for netbooting, I have one for 2.6-kernel here: http://d.skolelinux.no/~finnarne/netboot/initrd.gz For initrd for 2.4-kernel is included on the cd. -A workstation/server that wants to do netboot DISCLAIMER ---------- I take no responsibility for anything. SERVER SIDE PREPARATION ----------------------- I Assume you have a sarge-based main-only server installed Set up a tftpboot server ------------------------ fetch debconf preseeding for atftpd grep ^atftpd /usr/lib/debian-edu-install/defaults.thin-client-server | debconf-set-selections install syslinux and atftpd server apt-get install syslinux atftpd create some folders to hold everything mkdir -p /tftpboot/netinst mkdir -p /tftpboot/pxelinux.cfg mount cdrom mount /cdrom fetch 2.4-kernel and initrd from the cd cp /cdrom/install/vmlinuz /tftpboot/netinst/vmlinuz cp /cdrom/install/netboot.gz /tftpboot/netinst/initrd.gz pr if you want 2.6-kernel cp /cdrom/install/2.6/vmlinuz /tftpboot/netinst/vmlinuz wget -O /tftpboot/netinst/initrd.gz http://d.skolelinux.no/~finnarne/netboot/initrd.gz set up pxelinux ln -s /usr/lib/syslinux/pxelinux.0 /tftpboot echo -e "label netinst\n kernel netinst/vmlinuz\n append initrd=netinst/initrd.gz DEBCONF_PRIORITY=medium vga=normal ramdisk_size=10240 root=/dev/rd/0 devfs=mount,dall rw --" >> /tftpboot/pxelinux.cfg/default Reload the inetd server to make tftp available invoke-rc.d inetd reload Set up apache to serve out the CDROM ----------------------------------- make sure cdrom still is mounted set up apache to serve out the cdrom echo "Alias /cdrom/ /cdrom/" > /etc/apache/conf.d/cdrom-serv.conf reload apache invoke-rc.d apache reload CLIENT SIDE FIRST STAGE ------------------------ Boot your server using network (press F12 or "N" or something if it does not boot from net automaticly) when you get a boot prompt, enter netinst and you should be able to start the installation Choose your language, and optionally location/country, then keyboard, and set up the network. When you are prompted to select "Choose a mirror of the Debian archive" choose "enter information manually", it's paced at the top of the country-list. Enter "tjener" or "10.0.2.2" as Debian archive mirror hostname Enter "/cdrom" as Debian archive mirror directory When asked to "Download installer components", select debian-edu-install-udeb debian-edu-profile-udeb After the "components of the Debian-installer" are downloaded, you will get a new menu. Select "Install Debian-edu profile (enforce menu order)", and select your profile. Please be aware that autopartkit fails when using netboot and qemu. CLIENT SIDE SECOND STAGE ------------------------ Should now work without problems (if first stage is done properly)