Skip to content

Instantly share code, notes, and snippets.

@jchodakowski
Created March 7, 2017 21:45
Show Gist options
  • Save jchodakowski/bec5a86a8b6b1aedb72765ee9af2d328 to your computer and use it in GitHub Desktop.
Save jchodakowski/bec5a86a8b6b1aedb72765ee9af2d328 to your computer and use it in GitHub Desktop.
Preseed file
d-i debconf/priority string critical
d-i preseed/early_command string wget -q $(debconf-get packer/http)/preseed_config -P /tmp ; \
log-output -t preseed_config sh /tmp/preseed_config
d-i preseed/include string packages.cfg
d-i debian-installer/locale string en_US.UTF-8
d-i debian-installer/splash boolean false
d-i base-installer/kernel/override-image string linux-server
d-i clock-setup/utc boolean true
d-i clock-setup/utc-auto boolean true
d-i time/zone string UTC
d-i grub-installer/only_debian boolean true
d-i grub-installer/bootdev string /dev/sda
tasksel tasksel/first multiselect standard, ubuntu-server
d-i passwd/root-login boolean true
#d-i passwd/make-user boolean false
d-i passwd/root-password-crypted password $1$wmMCmChE$Atv4A0kFjTeetvDVVPxlv.
d-i passwd/make-user boolean true
d-i passwd/user-fullname string VBrick User
d-i passwd/username string vbrick
d-i passwd/user-password-crypted password $1$sbq7B2vA$iiehQ9oGOcQ88NJI35Ssn0
d-i passwd/user-uid string 1001
d-i passwd/user-default-groups sudo adm cdrom dip plugdev lpadmin sambashare
d-i user-setup/allow-password-weak boolean true
d-i console-setup/ask_detect boolean false
d-i keyboard-configuration/layoutcode string us
d-i keyboard-configuration/modelcode string pc105
d-i preseed/late_command string in-target apt-get -y remove ufw
d-i preseed/late_command string in-target sed -i 's/PermitRootLogin.*/PermitRootLogin yes/g' /etc/ssh/sshd_config
finish-install finish-install/reboot_in_progress note
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment