Created
January 30, 2020 02:34
-
-
Save dbkinghorn/8c9485759e3b20f7115a41ae10fbf6ee to your computer and use it in GitHub Desktop.
Ubuntu 18.04 preseed file for auto install (testing)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## Ubuntu 18.104 pressed test 1 | |
# This preseed file was adapted from the example at | |
# https://help.ubuntu.com/lts/installation-guide/amd64/apbs04.html | |
# and lots of experimentation! | |
### Automatic Installation | |
d-i auto-install/enable boolean true | |
d-i debconf/priority select critical | |
### Localization | |
d-i debian-installer/locale string en_US.UTF-8 | |
d-i localechooser/supported-locales multiselect en_US.UTF-8 | |
# Keyboard | |
d-i console-setup/ask_detect boolean false | |
d-i keyboard-configuration/xkb-keymap select us | |
### Network config | |
d-i netcfg/choose_interface select auto | |
# to get a hostname from the DHCP server set unassigned-hostname below | |
d-i netcfg/get_hostname string U1804n1 | |
d-i netcfg/get_domain string unassigned-domain | |
#d-i netcfg/hostname string U1804n1 | |
d-i hw-detect/load_firmware boolean true | |
### Mirror settings | |
#d-i mirror/http/mirror select CC.archive.ubuntu.com | |
d-i mirror/country string manual | |
d-i mirror/http/hostname string archive.ubuntu.com | |
d-i mirror/http/directory string /ubuntu | |
d-i mirror/http/proxy string | |
### Account setup | |
# This is just for testing!!! | |
d-i passwd/user-fullname string Ubuntu User | |
d-i passwd/username string ubuntu | |
d-i passwd/user-password password ubuntu | |
d-i passwd/user-password-again password ubuntu | |
# or encrypted using a crypt(3) hash. | |
#d-i passwd/user-password-crypted password [crypt(3) hash] | |
# The installer will warn about weak passwords. If you are sure you know | |
# what you're doing and want to override it, uncomment this. | |
d-i user-setup/allow-password-weak boolean true | |
# Set to true if you want to encrypt the first user's home directory. | |
d-i user-setup/encrypt-home boolean false | |
### Clock and time zone setup | |
d-i clock-setup/utc-auto boolean true | |
# Controls whether to use NTP to set the clock during the install | |
d-i clock-setup/ntp boolean true | |
### Partitioning | |
# !!!DANGER don't use this without knowing what you are doing!!! | |
# comment out this block it you want the installer to ask about the | |
# partitioning, which is much safer! | |
# The following will partition disk /dev/sda with an EFI partition, a root partition | |
# and a swap file. AND WONT ASK TO CONFIRM ANYTHING i.e. it will overwrite existing partitions | |
d-i preseed/early_command string umount /media | |
d-i partman/unmount_active boolean true | |
d-i partman-auto/disk string /dev/sda | |
d-i partman-auto/method string regular | |
d-i partman-auto/choose_recipe select atomic | |
# This makes partman automatically partition without confirmation, provided | |
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 | |
# The kernel image (meta) package to be installed; | |
#d-i base-installer/kernel/image string linux-generic | |
d-i base-installer/kernel/altmeta string hwe-18.04 | |
### Package selection | |
# Install the Ubuntu Server seed. | |
#tasksel tasksel/force-tasks string server | |
tasksel tasksel/first multiselect openssh-server | |
# Individual additional packages to install | |
d-i pkgsel/include string build-essential dkms | |
# Only install basic language packs. Let tasksel ask about tasks. | |
d-i pkgsel/language-pack-patterns string | |
# No language support packages. | |
d-i pkgsel/install-language-support boolean false | |
# 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 | |
# Verbose output and no boot splash screen. | |
d-i debian-installer/quiet boolean false | |
d-i debian-installer/splash boolean false | |
# Avoid that last message about the install being complete. | |
# This will just finish and reboot | |
d-i finish-install/reboot_in_progress note | |
#d-i debian-installer/exit/poweroff boolean true |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment