2021-11-01 17:39:15

This commit is contained in:
gbaconni
2021-11-01 17:39:15 +01:00
parent ea83967d4d
commit d3b674758d
2 changed files with 30 additions and 22 deletions

View File

@@ -2,8 +2,15 @@
## Debian
**auto url=https://vogsphere.baco.net/baco/born2beroot/raw/branch/master/preseed.cfg**
- [Preseed](https://wiki.debian.org/DebianInstaller/Preseed)
- [Automating the installation using preseeding](https://www.debian.org/releases/stable/amd64/apb.en.html)
- [example-preseed.txt](https://www.debian.org/releases/stable/example-preseed.txt)
- [Preseeding Full Disk Encryption](https://www.linuxjournal.com/content/preseeding-full-disk-encryption)
```
curl -sLo preseed.cfg https://www.debian.org/releases/stable/example-preseed.txt
vim preseed.cfg
```

View File

@@ -5,11 +5,11 @@
d-i debian-installer/locale string en_US
# The values can also be preseeded individually for greater flexibility.
#d-i debian-installer/language string en
#d-i debian-installer/country string NL
#d-i debian-installer/locale string en_GB.UTF-8
d-i debian-installer/language string en
d-i debian-installer/country string CH
d-i debian-installer/locale string en_US.UTF-8
# Optionally specify additional locales to be generated.
#d-i localechooser/supported-locales multiselect en_US.UTF-8, nl_NL.UTF-8
d-i localechooser/supported-locales multiselect en_US.UTF-8, fr_CH.UTF-8
# Keyboard selection.
d-i keyboard-configuration/xkb-keymap select us
@@ -66,13 +66,13 @@ d-i netcfg/choose_interface select auto
# Any hostname and domain names assigned from dhcp take precedence over
# values set here. However, setting the values still prevents the questions
# from being shown, even if values come from dhcp.
d-i netcfg/get_hostname string unassigned-hostname
d-i netcfg/get_domain string unassigned-domain
d-i netcfg/get_hostname string gbaconni42
d-i netcfg/get_domain string 42lausanne.ch
# If you want to force a hostname, regardless of what either the DHCP
# server returns or what the reverse DNS entry for the IP is, uncomment
# and adjust the following line.
#d-i netcfg/hostname string somehost
d-i netcfg/hostname string gbaconni42
# Disable that annoying WEP key dialog.
d-i netcfg/wireless_wep string
@@ -97,7 +97,7 @@ d-i netcfg/wireless_wep string
# 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 http.us.debian.org
d-i mirror/http/hostname string mirror.init7.net
d-i mirror/http/directory string /debian
d-i mirror/http/proxy string
@@ -109,9 +109,9 @@ d-i mirror/http/proxy string
### Account setup
# Skip creation of a root account (normal user account will be able to
# use sudo).
#d-i passwd/root-login boolean false
d-i passwd/root-login boolean false
# Alternatively, to skip creation of a normal user account.
#d-i passwd/make-user boolean false
d-i passwd/make-user boolean true
# Root password, either in clear text
#d-i passwd/root-password password r00tme
@@ -120,11 +120,11 @@ d-i mirror/http/proxy string
#d-i passwd/root-password-crypted password [crypt(3) hash]
# To create a normal user account.
#d-i passwd/user-fullname string Debian User
#d-i passwd/username string debian
d-i passwd/user-fullname string gbaconni
d-i passwd/username string gbaconni
# Normal user's password, either in clear text
#d-i passwd/user-password password insecure
#d-i passwd/user-password-again password insecure
d-i passwd/user-password password Born2beRoot
d-i passwd/user-password-again password Born2beRoot
# 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.
@@ -140,12 +140,12 @@ 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 US/Eastern
d-i time/zone string Europe/Zurich
# Controls whether to use NTP to set the clock during the install
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 clock-setup/ntp-server string ntp.metas.ch
### Partitioning
## Partitioning example
@@ -164,7 +164,8 @@ d-i clock-setup/ntp boolean true
# - 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 lvm
d-i partman-auto/method string crypto
d-i partman-auto-lvm/new_vg_name string wil-vg
# You can define the amount of space that will be used for the LVM volume
# group. It can either be a size with its unit (eg. 20 GB), a percentage of
@@ -185,7 +186,7 @@ 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-auto/choose_recipe select home
# Or provide a recipe of your own...
# If you have a way to get a recipe file into the d-i environment, you can
@@ -246,7 +247,7 @@ d-i partman/confirm_nooverwrite boolean true
#d-i partman-partitioning/default_label string gpt
# When disk encryption is enabled, skip wiping the partitions beforehand.
#d-i partman-auto-crypto/erase_disks boolean false
d-i partman-auto-crypto/erase_disks boolean false
## Partitioning using RAID
# The method should be set to "raid".
@@ -353,16 +354,16 @@ d-i partman/confirm_nooverwrite boolean true
#tasksel tasksel/first multiselect standard, web-server, kde-desktop
# Individual additional packages to install
#d-i pkgsel/include string openssh-server build-essential
d-i pkgsel/include string openssh-server
# Whether to upgrade packages after debootstrap.
# Allowed values: none, safe-upgrade, full-upgrade
#d-i pkgsel/upgrade select none
d-i pkgsel/upgrade select full-upgrade
# Some versions of the installer can report back on what software you have
# installed, and what software you use. The default is not to report back,
# but sending reports helps the project determine what software is most
# popular and should be included on the first CD/DVD.
#popularity-contest popularity-contest/participate boolean false
popularity-contest popularity-contest/participate boolean false
### Boot loader installation
# Grub is the boot loader (for x86).