### Ubuntu 18.04 preseed file ## Using the following sources: # https://help.ubuntu.com/18.04/installation-guide/amd64/apb.html # https://www.debian.org/releases/buster/amd64/apbs04.en.html ## Setting the locales # Supported locales available in /usr/share/i18n/SUPPORTED d-i debian-installer/language string en d-i debian-installer/country string us d-i debian-installer/locale string en_US.UTF-8 ## Keyboard setting d-i console-setup/ask_detect boolean false d-i keyboard-configuration/layoutcode string us d-i keyboard-configuration/xkb-keymap us d-i keyboard-configuration/modelcode string pc105 ## User creation # leaving as template as we dont create users in kickstart d-i passwd/user-fullname string bzanaj d-i passwd/username string bzanaj d-i passwd/user-password-crypted password $6$qCQMcfN48m7oFXMo$ioe92Hj9ay9CY64SmNHlIsdKyYsl7VsVeDLE5wcHzrHxYQUWcN.0oMpvvV.9yxLafKQu66B7EQ/xDH2926Zex1 d-i user-setup/allow-password-weak boolean true ## Network configuration # I am choosing DHCP for this one d-i netcfg/choose_interface select auto d-i netcfg/link_wait_timeout string 10 # Static network configuration below if needed #d-i netcfg/disable_autoconfig boolean true #d-i netcfg/get_ipaddress string 192.168.88.187 #d-i netcfg/get_netmask string 255.255.255.0 #d-i netcfg/get_gateway string 192.168.88.1 #d-i netcfg/get_nameservers string 192.168.88.6 192.168.88.5 #d-i netcfg/confirm_static boolean true ## Disk and Partitioning setup d-i partman-auto/disk string /dev/vda d-i partman-auto/method string lvm d-i partman-auto-lvm/guided_size string max d-i partman-auto-lvm/new_vg_name string vg01 d-i partman-auto/choose_recipe select atomic d-i partman-partitioning/confirm_write_new_label boolean true d-i partman/choose_partition select finish d-i partman/confirm boolean true d-i partman/confirm_nooverwrite boolean true d-i partman-lvm/confirm boolean true d-i partman-lvm/confirm_nooverwrite boolean true ## Set root password # openssl passwd -5 your_password_here d-i passwd/root-login boolean true d-i passwd/make-user boolean false d-i passwd/root-password-crypted password $5$RgnNMhcRJku55CpC$rK5zSQkQUzgoLWC23VfzDaVIe8VzjzTXxItA/kxtHNB ## Set the TimeZone d-i time/zone string UTC d-i clock-setup/ntp boolean false ## Package installations ## We're doing a minimal install # Do safe-upgrade packages after debootstrap. d-i pkgsel/upgrade select none # Policy for applying updates. May be "none" (no automatic updates), # "unattended-upgrades" (install security updates automatically), or # "landscape" (manage system with Landscape). d-i pkgsel/update-policy select none # Leaving empty for minimum installation tasksel tasksel/first multiselect d-i pkgsel/install-recommends boolean false d-i pkgsel/include/install-recommends boolean false pkgsel pkgsel/include/install-recommends boolean false # Some versions of the installer can report back on what software you have # installed, and what software you use. The default is not to report back, # but sending reports helps the project determine what software is most # popular and include it on CDs. popularity-contest popularity-contest/participate boolean false # Installing some neccessary packages for Proxmox and Packer to connect with Ansible d-i pkgsel/include string openssh-server qemu-guest-agent ## Boot loader installation d-i grub-installer/only_debian boolean true ## Post install commands d-i preseed/late_command string \ in-target /bin/sed -i 's/#PermitRootLogin prohibit-password/PermitRootLogin yes/' /etc/ssh/sshd_config in-target /bin/echo 'Installed on `date +"%Y-%m-%d"`' in-target /bin/echo 'defaultuser ALL=(ALL) NOPASSWD: ALL' > /target/etc/sudoers.d/bzanaj ; \ in-target chmod 440 /etc/sudoers.d/bzanaj ; ## Avoid that last message about the install being complete. d-i finish-install/reboot_in_progress note