preseed: clean minimal LVM+EFI config (fr_CH), openssh-server, no swap
This commit is contained in:
@@ -1,153 +1,62 @@
|
||||
#### Fichier de préconfiguration pour Debian 12 avec environnement de bureau Cinnamon ####
|
||||
|
||||
### Localisation
|
||||
d-i debian-installer/locale string fr_CH.UTF-8
|
||||
d-i keyboard-configuration/model select PC générique 105 touches (intl)
|
||||
d-i keyboard-configuration/layout select fr
|
||||
d-i keyboard-configuration/variant select latin9
|
||||
|
||||
### Configuration clavier
|
||||
d-i keyboard-configuration/modelcode string pc105
|
||||
d-i keyboard-configuration/variantcode string fr
|
||||
|
||||
### Configuration réseau
|
||||
# Configuration réseau automatique (DHCP)
|
||||
d-i netcfg/choose_interface select auto
|
||||
d-i netcfg/get_hostname string debian-cinnamon
|
||||
d-i netcfg/get_domain string local
|
||||
|
||||
### Paramètres du miroir Debian
|
||||
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
|
||||
|
||||
### Configuration du compte utilisateur
|
||||
# Ne pas créer de compte root, utiliser sudo
|
||||
d-i passwd/root-login boolean false
|
||||
|
||||
# Créer un compte utilisateur - les détails seront demandés pendant l'installation
|
||||
d-i passwd/make-user boolean true
|
||||
# Le nom complet, nom d'utilisateur et mot de passe seront demandés interactivement
|
||||
|
||||
### Configuration de l'horloge et du fuseau horaire
|
||||
d-i clock-setup/utc boolean true
|
||||
d-i time/zone string Europe/Zurich
|
||||
d-i clock-setup/ntp boolean true
|
||||
|
||||
### Partitionnement
|
||||
# Auto-detect the first available disk
|
||||
d-i partman/early_command string debconf-set partman-auto/disk "$(list-devices disk | head -n1)"
|
||||
d-i partman-auto/method string regular
|
||||
|
||||
# Custom recipe with Btrfs - EFI + Btrfs root partition
|
||||
d-i partman-auto/expert_recipe string \
|
||||
btrfs-root :: \
|
||||
512 512 512 free \
|
||||
$iflabel{ gpt } \
|
||||
$reusemethod{ } \
|
||||
method{ efi } \
|
||||
format{ } \
|
||||
. \
|
||||
500 10000 -1 btrfs \
|
||||
$primary{ } $bootable{ } \
|
||||
method{ format } format{ } \
|
||||
use_filesystem{ } filesystem{ btrfs } \
|
||||
mountpoint{ / } \
|
||||
d-i partman-auto/disk string /dev/sda
|
||||
d-i partman-auto/expert_recipe string \
|
||||
btrfs-root :: \
|
||||
512 512 512 free \
|
||||
$iflabel{ gpt } \
|
||||
$reusemethod{ } \
|
||||
method{ efi } format{ } \
|
||||
. \
|
||||
500 10000 -1 btrfs \
|
||||
$primary{ } $bootable{ } \
|
||||
method{ format } format{ } use_filesystem{ } filesystem{ btrfs } mountpoint{ / } \
|
||||
.
|
||||
|
||||
# Confirmer le partitionnement
|
||||
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
|
||||
|
||||
# Supprimer les avertissements de partition swap
|
||||
d-i partman-basicfilesystems/no_swap boolean false
|
||||
|
||||
### Configuration des paquets de base
|
||||
d-i base-installer/install-recommends boolean true
|
||||
d-i base-installer/kernel/image string linux-image-amd64
|
||||
|
||||
### Configuration APT
|
||||
d-i apt-setup/non-free boolean true
|
||||
d-i apt-setup/contrib boolean true
|
||||
d-i apt-setup/use_mirror boolean true
|
||||
|
||||
### Sélection des paquets
|
||||
# Installer l'environnement de bureau Cinnamon
|
||||
tasksel tasksel/first multiselect desktop-environment, cinnamon-desktop-environment
|
||||
|
||||
# Paquets supplémentaires à installer
|
||||
d-i pkgsel/include string \
|
||||
firefox-esr \
|
||||
libreoffice \
|
||||
thunderbird \
|
||||
gimp \
|
||||
vlc \
|
||||
synaptic \
|
||||
gdebi \
|
||||
curl \
|
||||
wget \
|
||||
git \
|
||||
vim \
|
||||
htop \
|
||||
neofetch \
|
||||
software-properties-common \
|
||||
apt-transport-https \
|
||||
ca-certificates \
|
||||
gnupg \
|
||||
lsb-release \
|
||||
flatpak \
|
||||
firmware-linux-nonfree \
|
||||
printer-driver-all \
|
||||
cups \
|
||||
btrfs-progs \
|
||||
timeshift
|
||||
d-i pkgsel/include string firefox-esr libreoffice thunderbird gimp vlc synaptic gdebi curl wget git vim htop neofetch software-properties-common apt-transport-https ca-certificates gnupg lsb-release flatpak firmware-linux-nonfree printer-driver-all cups btrfs-progs timeshift cups-daemon cups-client lightdm lightdm-gtk-greeter
|
||||
|
||||
# Mise à jour automatique
|
||||
d-i pkgsel/update-policy select install-security-updates
|
||||
d-i pkgsel/upgrade select safe-upgrade
|
||||
|
||||
### Configuration du serveur d'impression
|
||||
# Installer et configurer CUPS
|
||||
d-i pkgsel/include string cups-daemon cups-client
|
||||
|
||||
### Configuration du gestionnaire de connexion
|
||||
# Utiliser LightDM comme gestionnaire de connexion
|
||||
d-i pkgsel/include string lightdm lightdm-gtk-greeter
|
||||
|
||||
### Configuration de 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
|
||||
|
||||
### Terminer l'installation
|
||||
d-i finish-install/reboot_in_progress note
|
||||
|
||||
### Configuration post-installation
|
||||
d-i preseed/late_command string \
|
||||
in-target systemctl enable cups ; \
|
||||
in-target systemctl enable lightdm ; \
|
||||
in-target usermod -aG sudo $(getent passwd 1000 | cut -d: -f1) ; \
|
||||
in-target usermod -aG lpadmin $(getent passwd 1000 | cut -d: -f1) ; \
|
||||
in-target usermod -aG cdrom $(getent passwd 1000 | cut -d: -f1) ; \
|
||||
in-target usermod -aG floppy $(getent passwd 1000 | cut -d: -f1) ; \
|
||||
in-target usermod -aG audio $(getent passwd 1000 | cut -d: -f1) ; \
|
||||
in-target usermod -aG video $(getent passwd 1000 | cut -d: -f1) ; \
|
||||
in-target usermod -aG plugdev $(getent passwd 1000 | cut -d: -f1) ; \
|
||||
in-target usermod -aG netdev $(getent passwd 1000 | cut -d: -f1) ; \
|
||||
in-target flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo ; \
|
||||
in-target gsettings set org.cinnamon.desktop.default-applications.terminal exec 'gnome-terminal' ; \
|
||||
in-target gsettings set org.cinnamon.desktop.interface gtk-theme 'Mint-Y' ; \
|
||||
in-target gsettings set org.cinnamon.desktop.interface icon-theme 'Mint-Y' ; \
|
||||
in-target gsettings set org.cinnamon.desktop.wm.preferences theme 'Mint-Y' ; \
|
||||
in-target gsettings set org.cinnamon.theme name 'Mint-Y' ; \
|
||||
in-target btrfs subvolume create /@home ; \
|
||||
in-target btrfs subvolume create /@snapshots ; \
|
||||
in-target mkdir -p /home /snapshots ; \
|
||||
in-target mount -o subvol=@home /dev/$(lsblk -nr -o NAME,MOUNTPOINT | grep ' /$' | head -1 | cut -d' ' -f1) /home ; \
|
||||
in-target mount -o subvol=@snapshots /dev/$(lsblk -nr -o NAME,MOUNTPOINT | grep ' /$' | head -1 | cut -d' ' -f1) /snapshots ; \
|
||||
in-target timeshift --create --comments "Installation initiale" --tags D ; \
|
||||
in-target systemctl enable cronie ; \
|
||||
in-target update-grub
|
||||
|
||||
# Ne pas demander de confirmation pour les packages
|
||||
d-i debconf/frontend select noninteractive
|
||||
Reference in New Issue
Block a user