Skip to content

Instantly share code, notes, and snippets.

@biox
Forked from pgaskin/jessie-base.preseed
Last active December 9, 2018 14:29
Show Gist options
  • Save biox/62d8893e238286fea1fbc7a3b67fc755 to your computer and use it in GitHub Desktop.
Save biox/62d8893e238286fea1fbc7a3b67fc755 to your computer and use it in GitHub Desktop.
A preseed file for a minimal Debian Jessie installation
#!/bin/sh
# Put commands to run in target after install here
# Start debian cd
# Press esc on menu
# install auto=true priority=critical preseed/url=http://192.168.1.1/stretch-base.preseed
### Localization
d-i debian-installer/locale string en_US.UTF-8
d-i debian-installer/keymap select us
d-i keymap select us
d-i keyboard-configuration/xkb-keymap select us
### Network configuration
d-i netcfg/choose_interface select auto
### Mirror settings
d-i mirror/protocol string http
d-i mirror/country string manual
d-i mirror/http/hostname string ftp.debian.org
d-i mirror/http/directory string /debian
d-i mirror/suite string stretch
d-i mirror/http/proxy string
### Account setup
d-i passwd/root-login boolean false
d-i passwd/user-fullname string lain
d-i passwd/username string lain
# Use `mkpasswd -m sha-512` to generate the hash (part of whois package)
d-i passwd/user-password-crypted password $6$qh7bVM2z6$ffaWVvE2YINZGVlXSmwPjXQ4KKTr8t2SNDYAgpPTh2AMiFN0C39MCj87HDfZ7HV3YiJMjCH0fjPPctP5HpS/l1
### Clock and time zone setup
d-i clock-setup/utc boolean false
d-i time/zone string America/Central
d-i clock-setup/ntp boolean true
### Partitioning
d-i partman-auto/disk string /dev/sda
d-i partman-auto/method string lvm
d-i partman-auto-lvm/new_vg_name string rootvg
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
# - atomic: all files in one partition
# - home: separate /home partition
# - multi: separate /home, /var, and /tmp partitions
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/mount_style select uuid
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
### Apt
d-i apt-setup/non-free boolean false
d-i apt-setup/contrib boolean true
### Package selection
tasksel tasksel/first multiselect standard
# Other packages to install
d-i pkgsel/include string openssh-server
d-i pkgsel/upgrade select none
popularity-contest popularity-contest/participate boolean false
### Misc options
# Disable that annoying WEP key dialog.
d-i netcfg/wireless_wep string
# Allow non-free firmware
d-i hw-detect/load_firmware boolean true
# Avoid that last message about the install being complete.
d-i finish-install/reboot_in_progress note
# During installations from serial console, the regular virtual consoles (VT1-VT6) are normally disabled in /etc/inittab.
d-i finish-install/keep-consoles boolean true
### Postinstall
d-i preseed/late_command string in-target wget --output-document=/tmp/postinstall.sh http://192.168.1.1/postinstall.sh; in-target /bin/sh /tmp/postinstall.sh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment