# Check out # http://www.debian.org/releases/lenny/example-preseed.txt # https://help.ubuntu.com/9.10/installation-guide/example-preseed.txt # Enable the Debian Edu installer overrides #d-i anna/choose_modules multiselect debian-edu-install-udeb: Execute Debian-Edu debian-installer profile # location of the web proxy, in case it is required #d-i mirror/http/proxy string http://webcache:3128 d-i mirror/http/proxy seen true d-i mirror/ftp/proxy seen true d-i preseed/early_command string ver=0.0.30; wget http://deb.uio.no/debian/pool/squeeze-test/uio-extra/u/usit-install-udeb/usit-install-udeb_${ver}_all.udeb; udpkg --unpack usit-install-udeb_${ver}_all.udeb #d-i preseed/early_command string cd /tmp; archiveurl=http://deb.uio.no/debian; arch=i386; wget $archiveurl/dists/lenny-test/local/binary-$arch/Packages; packages_file=Packages; desired_udebs="usit-install-udeb"; for file in $(grep 'Filename:' $packages_file | sort -r | cut -d : -f 2); do echo "Checking $file"; udeb=$(basename $file | cut -d _ -f 1); for u in $desired_udebs ; do if [ "$u" = "$udeb" ]; then url="$archiveurl/$file"; echo "info: Trying to fetch and install $url"; if wget $url; then udpkg --unpack $(basename $file); else echo "error: Unable to download $url"; fi; break; fi; done; done; if [ -z "$url" ] ; then echo "error: Unable to find updated udebs"; fi # Avoid questions about mirrors, using manual setup choose-mirror-bin mirror/country string enter information manually choose-mirror-bin mirror/protocol select http choose-mirror-bin mirror/http/hostname string ftp.no.debian.org choose-mirror-bin mirror/http/directory string /debian choose-mirror-bin mirror/ftp/hostname string ftp.no.debian.org choose-mirror-bin mirror/ftp/directory string /debian # Activate UiO repository. d-i apt-setup/local0/repository string http://deb.uio.no/debian squeeze-test uio-extra d-i apt-setup/local0/comment string UiO squeeze test repository d-i apt-setup/local0/source boolean true d-i apt-setup/local0/key string http://deb.uio.no/debian/archive-key.asc