#set keyboard to de and locales to de_DE.UTF-8 d-i debian-installer/locale string de_DE.UTF-8 d-i console-setup/ask_detect boolean false d-i console-setup/layoutcode string de d-i netcfg/choose_interface select auto #network configuration if no dhcp present d-i netcfg/dhcp_failed note d-i netcfg/dhcp_options select Configure network manually #Static network configuration. d-i netcfg/get_nameservers string 172.23.43.2 d-i netcfg/get_ipaddress string 172.23.43.10 d-i netcfg/get_netmask string 255.255.255.0 d-i netcfg/get_gateway string 172.23.43.3 d-i netcfg/confirm_static boolean true #apt proxy d-i mirror/country string enter information manually d-i mirror/protocol string http d-i mirror/http/hostname string 172.23.43.2:9999 d-i mirror/http/directory string /ubuntu d-i mirror/http/proxy string #time settings d-i clock-setup/utc boolean true d-i time/zone string Europe/Berlin d-i clock-setup/ntp boolean true d-i clock-setup/ntp-server string time.fu-berlin.de #partitioning, here we will have only / and swap d-i partman-auto/disk string /dev/sda d-i partman-auto/method string regular d-i partman-auto/choose_recipe select atomic d-i partman/choose_partition select Finish partitioning and write changes to disk d-i partman/confirm boolean true #disable multiverse and universe d-i apt-setup/multiverse boolean false d-i apt-setup/universe boolean false #create an user ubuntu with password ubuntu d-i passwd/user-fullname string Ubuntu Server Administrator d-i passwd/username string ubuntu d-i passwd/user-password ubuntu ubuntu d-i passwd/user-password-again ubuntu ubuntu #install openssh-server d-i pkgsel/include string openssh-server vim #install grub d-i grub-installer/only_debian boolean true #d-i grub-installer/with_other_os boolean true #reboot system if installation is ready d-i finish-install/reboot_in_progress note #execute this script after the end of the installation #i only install all updates there d-i preseed/late_command string \ cd /target; \ wget http://172.23.43.2/post-install; \ chmod +x ./post-install; \ chroot ./ ./post-install; \ rm -f ./post-install