-
Notifications
You must be signed in to change notification settings - Fork 4
/
preseed.cfg
81 lines (67 loc) · 2.93 KB
/
preseed.cfg
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
d-i debian-installer/locale select en_US.UTF-8
d-i localechooser/supported-locales multiselect
d-i keyboard-configuration/xkb-keymap select us
d-i cdrom-detect/success note
d-i anna/choose_modules multiselect
# use autoconfig for networking which will implicitly use DHCP
# if you want to disable DHCP and configure networking on install then set this to "true"
d-i netcfg/disable_autoconfig boolean true
d-i netcfg/link_wait_timeout string 10
# this line can be commented out if you do not want to preset the DNS servers
# these are the cloudflare dns servers: https://1.1.1.1/dns/
d-i netcfg/get_nameservers string 1.1.1.1 1.0.0.1
# mirror settings
d-i mirror/country string US
d-i mirror/http/hostname string deb.debian.org
d-i mirror/http/directory string /debian/
d-i mirror/http/proxy string
# enable shadow passwords
d-i passwd/shadow boolean true
# disable the root account password
d-i passwd/root-login boolean false
# user account setup (this is for uid 1000)
d-i passwd/user-fullname string Paul Lockaby
d-i passwd/username string paul
# password in plaintext
#d-i passwd/user-password password abc123
# password encrypted (see README.md)
#d-i passwd/user-password-crypted password HASHHERE
# password login is disabled
d-i passwd/user-password-crypted password !
# include the user in only one default group, "users"
d-i passwd/user-default-groups string users
# set up the clock to UTC with NTP
d-i clock-setup/utc boolean true
d-i time/zone string UTC
d-i clock-setup/ntp boolean true
d-i clock-setup/ntp-server string us.pool.ntp.org
# use xfs instead of ext4 but ask the rest of the questions
# disk configuration is probably the hardest part of the preseed
# so we're not going to try to do it automatically
d-i partman/default_filesystem string xfs
# do not scan another cd, use a mirror, other things
d-i apt-setup/cdrom/set-first boolean false
d-i apt-setup/cdrom/set-next boolean false
d-i apt-setup/cdrom/set-failed boolean false
d-i apt-setup/use_mirror boolean true
d-i mirror/protocol select http
d-i mirror/country string manual
d-i mirror/http/mirror select deb.debian.org
d-i apt-setup/non-free boolean false
d-i apt-setup/contrib boolean false
d-i apt-setup/enable-source-repositories boolean false
d-i apt-setup/services-select multiselect security, updates
d-i pkgsel/update-policy select none
d-i popularity-contest/participate boolean false
# package selection
tasksel tasksel/first multiselect standard, ssh-server
# choose the base system
d-i base-installer/kernel/image select linux-image-amd64
d-i base-installer/initramfs-tools/driver-policy select dep
# install grub
d-i grub-installer/force-efi-extra-removable boolean true
d-i grub-installer/only_debian boolean true
# run postinst.sh in /target just before the install finishes.
d-i preseed/late_command string cp postinstall postinstall.tar.gz /target/tmp && in-target /tmp/postinstall
# avoid that last message about the install being complete.
#d-i finish-install/reboot_in_progress note