Skip to content

Instantly share code, notes, and snippets.

@fishd72
Created October 9, 2023 10:30
Show Gist options
  • Save fishd72/4b3afab17018447a33c5cba1d3794a8e to your computer and use it in GitHub Desktop.
Save fishd72/4b3afab17018447a33c5cba1d3794a8e to your computer and use it in GitHub Desktop.
Debian preseed
d-i debian-installer/locale string en_GB.UTF-8
d-i keyboard-configuration/xkb-keymap select gb
d-i hw-detect/load_firmware boolean false
d-i ethdetect/prompt_missing_firmware boolean false
d-i netcfg/choose_interface select auto
d-i netcfg/get_hostname string unassigned-hostname
d-i netcfg/get_domain string unassigned-domain
d-i netcfg/wireless_wep string
d-i mirror/country string manual
d-i mirror/http/hostname string deb.debian.org
d-i mirror/http/directory string /debian
d-i mirror/http/proxy string
d-i passwd/root-login boolean false
d-i passwd/user-fullname string <XYZ> User
d-i passwd/username string <XYZ>
d-i passwd/user-password password <XYZ>
d-i passwd/user-password-again password <XYZ>
d-i clock-setup/utc boolean true
d-i time/zone string Europe/London
d-i clock-setup/ntp boolean true
d-i partman-auto/disk string /dev/sda
d-i partman-auto/method string lvm
d-i partman-auto-lvm/guided_size string max
d-i partman-lvm/device_remove_lvm boolean true
d-i partman-md/device_remove_md boolean true
d-i partman-lvm/confirm boolean true
d-i partman-lvm/confirm_nooverwrite boolean true
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-auto-crypto/erase_disks boolean false
d-i partman-md/confirm boolean true
d-i apt-setup/cdrom/set-first boolean false
d-i apt-setup/non-free boolean true
d-i apt-setup/contrib boolean true
d-i apt-setup/disable-cdrom-entries boolean true
d-i pkgsel/run_tasksel boolean true
d-i tasksel/first multiselect ssh-server, standard
tasksel tasksel/first multiselect standard, ssh-server
d-i pkgsel/upgrade select safe-upgrade
d-i pkgsel/update-policy select none
d-i pkgsel/updatedb boolean true
popularity-contest popularity-contest/participate boolean false
d-i grub-installer/only_debian boolean true
d-i grub-installer/with_other_os boolean true
d-i grub-installer/bootdev string /dev/sda
d-i preseed/late_command string \
echo 'My IP Address: \4' >> /target/etc/issue; \
mkdir -p -m 700 /target/home/<XYZ>/.ssh; \
echo 'ssh-ed25519 <ABC>' > /target/home/<XYZ>/.ssh/authorized_keys; \
in-target chown --recursive <XYZ>:<XYZ> /home/<XYZ>/.ssh; \
in-target chmod 0644 /home/<XYZ>/.ssh/authorized_keys
d-i finish-install/reboot_in_progress note
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment