101 lines
4 KiB
INI
101 lines
4 KiB
INI
#_preseed_V1
|
|
|
|
# Lower the priority so that the installer will ask the hostname
|
|
# https://unix.stackexchange.com/q/563009
|
|
d-i debconf/priority select high
|
|
|
|
# B.5.1 Comandi da eseguire prima di avviare l'installer
|
|
# https://www.debian.org/releases/trixie/amd64/apbs05.it.html#preseed-hooks
|
|
#
|
|
# - Riavvia netcfg in modo da configurare i parametri di rete
|
|
# (https://www.debian.org/releases/trixie/amd64/apbs04.it.html#preseed-network)
|
|
d-i preseed/early_command string \
|
|
kill-all-dhcp; netcfg
|
|
|
|
|
|
# B.4.1 Locale
|
|
# https://www.debian.org/releases/trixie/amd64/apbs04.it.html#preseed-l10n
|
|
d-i debian-installer/locale string en_US.UTF-8
|
|
d-i keyboard-configuration/xkb-keymap select it
|
|
|
|
# B.4.3 Rete
|
|
# https://www.debian.org/releases/trixie/amd64/apbs04.it.html#preseed-network
|
|
d-i netcfg/choose_interface select auto
|
|
d-i netcfg/disable_autoconfig boolean true
|
|
d-i netcfg/confirm_static boolean true
|
|
d-i netcfg/get_nameservers string 1.1.1.1
|
|
d-i netcfg/get_domain string fermimn.it
|
|
d-i hw-detect/firmware-lookup string never
|
|
|
|
# B.4.5 Mirror
|
|
# https://www.debian.org/releases/trixie/amd64/apbs04.it.html#preseed-mirror
|
|
d-i mirror/protocol string http
|
|
d-i mirror/country string manual
|
|
d-i mirror/http/hostname string deb.debian.org
|
|
d-i mirror/http/directory string /debian
|
|
d-i mirror/http/proxy string
|
|
|
|
# B.4.6 Account
|
|
# https://www.debian.org/releases/trixie/amd64/apbs04.it.html#preseed-account
|
|
d-i passwd/make-user boolean false
|
|
d-i passwd/root-password password ChangeMePlz
|
|
d-i passwd/root-password-again password ChangeMePlz
|
|
|
|
# B.4.7 Orologio e fuso orario
|
|
# https://www.debian.org/releases/trixie/amd64/apbs04.it.html#preseed-time
|
|
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 pool.ntp.otg
|
|
|
|
# B.4.8 Partizionamento
|
|
# https://www.debian.org/releases/trixie/amd64/apbs04.it.html#preseed-partman
|
|
d-i partman-auto/method string manual
|
|
d-i partman-lvm/device_remove_lvm boolean true
|
|
d-i partman-md/device_remove_md boolean true
|
|
d-i partman-basicfilesystems/no_swap boolean false
|
|
|
|
# B.4.9 Installazione del sistema base
|
|
# https://www.debian.org/releases/trixie/amd64/apbs04.it.html#preseed-base-installer
|
|
d-i base-installer/install-recommends boolean false
|
|
d-i base-installer/kernel/image string linux-image-amd64
|
|
|
|
# B.4.10 APT
|
|
# https://www.debian.org/releases/trixie/amd64/apbs04.it.html#preseed-apt
|
|
d-i apt-setup/disable-cdrom-entries boolean true
|
|
d-i apt-setup/cdrom/set-first boolean false
|
|
d-i apt-setup/non-free-firmware boolean false
|
|
d-i apt-setup/non-free boolean false
|
|
d-i apt-setup/contrib boolean false
|
|
d-i apt-setup/services-select multiselect security, updates
|
|
d-i apt-setup/security_host string security.debian.org
|
|
|
|
# B.4.11 Selezione di paccheti
|
|
# https://www.debian.org/releases/trixie/amd64/apbs04.it.html#preseed-pkgsel
|
|
d-i pkgsel/run_tasksel boolean false
|
|
d-i pkgsel/include string openssh-server python3
|
|
d-i pkgsel/upgrade select full-upgrade
|
|
popularity-contest popularity-contest/participate boolean false
|
|
|
|
# B.4.12 Installazione di GRUB
|
|
# https://www.debian.org/releases/trixie/amd64/apbs04.it.html#preseed-bootloader
|
|
d-i grub-installer/only_debian boolean true
|
|
d-i grub-installer/with_other_os boolean true
|
|
d-i grub-installer/bootdev string default
|
|
|
|
# B.4.13 Terminare l'installazione
|
|
# https://www.debian.org/releases/trixie/amd64/apbs04.it.html#preseed-finish
|
|
d-i finish-install/reboot_in_progress note
|
|
d-i debian-installer/exit/poweroff boolean true
|
|
|
|
|
|
# B.5.1 Comandi da eseguire dopo aver avviato l'installer
|
|
# https://www.debian.org/releases/trixie/amd64/apbs05.it.html#preseed-hooks
|
|
#
|
|
# - Aggiungi la possibilità di entrare in SSH con l'account di root e la sua password
|
|
d-i preseed/late_command string \
|
|
echo "" >> /target/etc/ssh/sshd_config; \
|
|
echo "" >> /target/etc/ssh/sshd_config; \
|
|
echo "# BEGIN - Remove this block with Ansible as soon as you have SSH access" >> /target/etc/ssh/sshd_config; \
|
|
echo "PermitRootLogin yes" >> /target/etc/ssh/sshd_config; \
|
|
echo "# END - Remove this block with Ansible as soon as you have SSH access" >> /target/etc/ssh/sshd_config;
|