Skip to content

Instantly share code, notes, and snippets.

@damex
Last active March 5, 2023 18:42
Show Gist options
  • Save damex/51cc27dae28d2b5f76d94656c4526d03 to your computer and use it in GitHub Desktop.
Save damex/51cc27dae28d2b5f76d94656c4526d03 to your computer and use it in GitHub Desktop.
d-i debian-installer/locale string en_US
d-i keyboard-configuration/xkb-keymap select us
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/hostname string debian
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 mirror/suite string bullseye
d-i passwd/root-password password toor
d-i passwd/root-password-again password toor
d-i passwd/user-fullname string damex
d-i passwd/username string damex
d-i passwd/user-password password xamed
d-i passwd/user-password-again password xamed
d-i clock-setup/utc boolean true
d-i time/zone string Etc/UTC
d-i clock-setup/ntp boolean true
d-i partman-auto/method string regular
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-basicfilesystems/no_swap boolean false
d-i partman-partitioning/choose_label select gpt
d-i partman-partitioning/default_label string gpt
d-i hw-detect/load_firmware boolean false
d-i partman-auto/disk string /dev/sda
d-i partman-auto/expert_recipe string myroot :: \
128 50 128 free $bootable{ } method{ efi } format{ } use_filesystem{ } filesystem{ vfat } mountpoint{ /boot/efi } . \
1000 50 -1 ext4 $primary{ } $bootable{ } method{ format } format{ } use_filesystem{ } filesystem{ ext4 } mountpoint{ / } .
d-i partman-auto/choose_recipe select myroot
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-md/confirm boolean true
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 base-installer/install-recommends boolean false
d-i apt-setup/non-free boolean false
d-i apt-setup/contrib boolean false
tasksel tasksel/first multiselect minimal
d-i pkgsel/include string openssh-server sudo dbus python3 lsb-release grub-efi-amd64-signed wget ca-certificates open-vm-tools
d-i pkgsel/upgrade select none
popularity-contest popularity-contest/participate boolean false
d-i grub-installer/only_debian boolean true
d-i grub-installer/with_other_os boolean false
d-i grub-installer/bootdev string default
d-i finish-install/reboot_in_progress note
d-i preseed/late_command string \
echo 'damex ALL=(ALL) NOPASSWD: ALL' > /target/etc/sudoers.d/damex ; \
in-target chmod 440 /etc/sudoers.d/damex ; \
in-target mkdir /home/damex/.ssh ; \
echo 'ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBJn4ZnWKl5HovVP6+Ih0ckjSGZLflgCTp7Yl/bvdn7olA630rFqaZQ/XpyjJp3dLY+4Ej629z87dYQKNIWdqgfI= damex@foosha' > /target/home/damex/.ssh/authorized_keys ;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment