-
Notifications
You must be signed in to change notification settings - Fork 0
/
preseed.cfg.part1
130 lines (111 loc) · 4.94 KB
/
preseed.cfg.part1
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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
# **************************************************************************** #
# #
# ::: :::::::: #
# preseed.cfg :+: :+: :+: #
# +:+ +:+ +:+ #
# By: agaley <[email protected]> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2022/11/21 20:12:39 by agaley #+# #+# #
# Updated: 2022/12/09 18:55:57 by alex ### ########lyon.fr #
# #
# **************************************************************************** #
d-i debian-installer/locale string en_US.UTF-8
#d-i localechooser/supported-locales multiselect en_US.UTF-8
d-i keyboard-configuration/xkb-keymap select us
#d-i keyboard-configuration/toggle select No toggling
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 agaley42
# Disable that annoying WEP key dialog.
d-i netcfg/wireless_wep string
#d-i mirror/protocol string ftp
d-i mirror/country string France
#d-i mirror/http/hostname string deb.debian.org
d-i mirror/http/hostname string ftp.fr.debian.org
d-i mirror/http/directory string /debian
d-i mirror/http/proxy string
d-i passwd/root-password password Str0ngPass
d-i passwd/root-password-again password Str0ngPass
# or encrypted using a crypt(3) hash.
#d-i passwd/root-password-crypted password [crypt(3) hash]
d-i passwd/user-fullname string unkn0wn107
d-i passwd/username string agaley
d-i passwd/user-password password Str0ngPass
d-i passwd/user-password-again password Str0ngPass
d-i passwd/user-default-groups user42 sudo www-data
# or encrypted using a crypt(3) hash.
#d-i passwd/user-password-crypted password [crypt(3) hash]
# Create the first user with the specified UID instead of the default.
#d-i passwd/user-uid string 1010
d-i clock-setup/utc boolean true
d-i time/zone string Europe/Paris
d-i clock-setup/ntp boolean true
# NTP server to use. The default is almost always fine here.
#d-i clock-setup/ntp-server string ntp.example.com
d-i partman-auto/disk string /dev/sda
d-i partman-auto/method string crypto
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-lvm/guided_size string max
d-i partman-crypto/passphrase password Unkn0wn107
d-i partman-crypto/passphrase-again password Unkn0wn107
d-i partman-auto-lvm/new_vg_name string crypt
d-i partman-auto/expert_recipe string born2beroot :: \
487 487 487 ext3 \
$primary{ } $bootable{ } \
method{ format } format{ } \
use_filesystem{ } filesystem{ ext3 } \
mountpoint{ /boot } \
.\
2751 2800 2849 xfs \
$defaultignore{ } \
$primary{ } $lvmok{ } lv_name{ root } \
in_vg { crypt } method{ format } format{ } \
use_filesystem{ } filesystem{ xfs } \
mountpoint{ / } \
.\
976 976 976 linux-swap \
$lvmok{ } lv_name{ swap } \
in_vg { crypt } method{ swap } format{ } \
.\
3751 3800 3849 xfs \
$defaultignore{ } \
$primary{ } $lvmok{ } lv_name{ home } \
in_vg { crypt } method{ format } format{ } \
use_filesystem{ } filesystem{ xfs } \
mountpoint{ /home } \
.\
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 apt-setup/cdrom/set-first boolean false
d-i popularity-contest/participate boolean false
tasksel tasksel/first multiselect standard, ssh-server
d-i pkgsel/include string ufw libpam-cracklib sudo
# Allowed values: none, safe-upgrade, full-upgrade
d-i pkgsel/upgrade select safe-upgrade
d-i ufw/enable boolean true
d-i ufw/allow_custom_ports string 4242/tcp
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 save-logs/menu select mounted file system
d-i save-logs/directory string /target/home/agaley
# To install to the primary device (assuming it is not a USB stick):
#d-i grub-installer/bootdev string default
#d-i grub-installer/password password <password>
# d-i grub-installer/password-again password <password>
# d-i grub-installer/password-crypted password <password>
#d-i finish-install/reboot_in_progress note
#d-i preseed/early_command string anna-install some-udeb
#d-i partman/early_command \
d-i preseed/late_command string \
cp /cdrom/post_install.sh /target/root/ && \
cp /cdrom/status.sh /target/root/ && \
chmod +x /target/root/post_install.sh && \
in-target bash /root/post_install.sh