-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpreseed.cfg
162 lines (126 loc) · 5.88 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
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
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
# Sources:
# https://debian-facile.org/doc:install:preseed
# https://www.debian.org/releases/etch/example-preseed.txt
#### Contents of the preconfiguration file:
### Localization
d-i debian-installer/locale string fr_FR.UTF-8
d-i localechooser/supported-locales multiselect en_US.UTF-8, fr_FR.UTF-8
d-i keyboard-configuration/xkb-keymap select ch(fr)
# Locales
d-i debian-installer/fallbacklocale select fr_FR.UTF-8
d-i debian-installer/locale select fr_FR.UTF-8
# Keyboard
d-i console-keymaps-at/keymap select fr-latin9
d-i debian-installer/keymap string fr-latin9
# -------------- USER ------------
# To NOT Create a normal user:
#d-i passwd/make-user boolean false
# To create a normal user account.
d-i passwd/user-fullname string user1
d-i passwd/username string user1
# Normal user's password, either in clear text
d-i passwd/user-password password changeme
d-i passwd/user-password-again password changeme
# ---------------- ROOT User -------------
### ROOT account settings
# Root password, either in clear text
d-i passwd/root-password password changeme
d-i passwd/root-password-again password changeme
### Network configuration
# netcfg will choose an interface that has link if possible. This makes it
# skip displaying a list if there is more than one interface.
# d-i netcfg/choose_interface select auto
# Disable that annoying WEP key dialog.
# d-i netcfg/wireless_wep string
# d-i hw-detect/load_firmware boolean false
# ----------------- MIRROR --------------------
### Mirror settings
# If you select ftp, the mirror/country string does not need to be set.
#d-i mirror/protocol string ftp
# d-i mirror/country string manual
d-i mirror/http/hostname string ftp.ch.debian.org
d-i mirror/http/directory string /debian
d-i mirror/http/proxy string
# Suite to install.
d-i mirror/suite string stable
# ------------ CLOCK -------------
### Clock and time zone setup
# Controls whether or not the hardware clock is set to UTC.
d-i clock-setup/utc boolean true
# You may set this to any valid setting for $TZ; see the contents of
# /usr/share/zoneinfo/ for valid values.
d-i time/zone string Africa/Casablanca
# --------------- TARGET Installation Disk ----------------
# Alternatively, you may specify a disk to partition. If the system has only
# one disk the installer will default to using that, but otherwise the device
# name must be given in traditional, non-devfs format (so e.g. /dev/hda or
# /dev/sda, and not e.g. /dev/discs/disc0/disc).
# For example, to use the first SCSI/SATA hard disk:
d-i partman-auto/disk string /dev/vda
# In addition, you'll need to specify the method to use.
# The presently available methods are:
# - regular: use the usual partition types for your architecture
# - lvm: use LVM to partition the disk
# - crypto: use LVM within an encrypted partition
d-i partman-auto/method string regular
# If one of the disks that are going to be automatically partitioned
# contains an old LVM configuration, the user will normally receive a
# warning. This can be preseeded away...
# d-i partman-lvm/device_remove_lvm boolean true
# The same applies to pre-existing software RAID array:
# d-i partman-md/device_remove_md boolean true
# And the same goes for the confirmation to write the lvm partitions.
# d-i partman-lvm/confirm boolean true
# d-i partman-lvm/confirm_nooverwrite boolean true
# You can choose one of the three predefined partitioning recipes:
# - atomic: all files in one partition
# - home: separate /home partition
# - multi: separate /home, /usr, /var, and /tmp partitions
# d-i partman-auto/choose_recipe select atomic
# This makes partman automatically partition without confirmation, provided
# that you told it what to do using one of the methods above.
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
# ----------------- PACKAGE Setup --------------------
### Apt setup
# You can choose to install non-free and contrib software.
d-i apt-setup/non-free boolean true
d-i apt-setup/contrib boolean true
# Uncomment this if you don't want to use a network mirror.
#d-i apt-setup/use_mirror boolean false
# Select which update services to use; define the mirrors to be used.
# Values shown below are the normal defaults.
d-i apt-setup/services-select multiselect security, updates
d-i apt-setup/security_host string security.debian.org
# Individual additional packages to install
d-i pkgsel/include string sudo curl wget git net-tools dphys-swapfile gnupg2 snmpd
# Whether to upgrade packages after debootstrap.
# Allowed values: none, safe-upgrade, full-upgrade
d-i pkgsel/upgrade select full-upgrade
# Participation to popularity contest
popularity-contest popularity-contest/participate boolean false
# Installations
tasksel tasksel/first multiselect ssh-server
# 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
# ------------ GRUB ----------------
## Grub
d-i grub-installer/only_debian boolean true
# d-i grub-installer/with_other_os boolean true
# d-i grub-installer/bootdev string default
# -------------- END Of Installation -----------------
### Finishing up the installation
# During installations from serial console, the regular virtual consoles
# (VT1-VT6) are normally disabled in /etc/inittab. Uncomment the next
# line to prevent this.
# d-i finish-install/keep-consoles boolean true
d-i cdrom-detect/eject boolean true
# End of installation
# reboot notification
d-i finish-install/reboot_in_progress note
# Post-Installation
# d-i preseed/late_command string apt-install wget; in-target /usr/bin/wget -O /tmp/post-install https://yoururl; in-target chmod +x /tmp/post-install; in-target /bin/bash /tmp/post-install
d-i preseed/late_command string in-target wget http://PUT_YOUR_IP_HERE:7777/post-install.sh; in-target /bin/sh post-install.sh; in-target rm -f post-install.sh