Compare commits

...

26 Commits

Author SHA1 Message Date
e443c6eb49 Correction commentaires 2025-08-09 22:04:18 +02:00
0a957a23b2 Correction paquet 2025-08-09 22:02:12 +02:00
755c1186d7 Correction paquet 2025-08-09 22:02:08 +02:00
8104e41af3 Améloriations 2025-08-09 21:18:48 +02:00
5d0e3abdbb Améloriations 2025-08-09 20:46:32 +02:00
7ce14ac418 Améloriations 2025-08-09 20:34:01 +02:00
7fb291cd54 Correction gnome-core vers gnome-desktop 2025-07-18 19:11:26 +02:00
5f7e8c267e demande timezone/clock 2025-07-15 05:58:28 +02:00
f2e899b58e Actualiser preseed_debian_12_plasma-desktop.txt 2025-07-15 05:54:12 +02:00
8f896e43d0 hostname + corrections kde plasma 2025-07-15 05:33:25 +02:00
ac08adae0b Actualiser preseed_debian_12_plasma-desktop.txt 2025-07-15 05:30:05 +02:00
26ab2bc1e6 Téléverser les fichiers vers "/" 2025-07-15 04:52:12 +02:00
9b1791df16 corrections bug grub et ajouts commentaires pour ssh 2025-07-15 02:40:15 +02:00
d9fec98388 corrections et ajouts 2025-07-14 01:53:01 +02:00
72c7879e1f Ajouts de gnome-core sans outils 2025-07-14 01:41:12 +02:00
7f77b55323 gnome config 2025-07-13 20:33:13 +02:00
0e6ad4ec0a Actualiser preseed_debian_12_standard_ssh.txt 2025-07-04 23:32:51 +02:00
e64a0457fd Actualiser README.md 2025-07-04 23:15:03 +02:00
4e60a88de6 Actualiser preseed_debian_12_standard_ssh.txt 2025-07-02 20:04:58 +02:00
b1c4a93a8a correction 2025-07-01 01:30:55 +02:00
95fd0fa15e corrections 2025-07-01 01:07:06 +02:00
d4f4097710 corrections 2025-07-01 00:53:22 +02:00
b9f39fb029 Corrections 2025-07-01 00:02:51 +02:00
4c6434f3ba corrections 2025-06-30 23:58:52 +02:00
04184f2e67 corrections 2025-06-30 23:53:53 +02:00
b39fc9469f corrections 2025-06-30 23:38:38 +02:00
9 changed files with 375 additions and 213 deletions

Binary file not shown.

View File

@@ -4,9 +4,12 @@ Scripts d'installation automatisée pour Debian 12 (Bookworm) utilisant des fich
## Liens Rapides ## Liens Rapides
- `l.favrep.ch/debianssh` - Debian minimal avec SSH, sans environnement de bureau - `l.favrep.ch/debssh` - Debian minimal avec SSH, sans environnement de bureau
- `l.favrep.ch/debiansshfulldiskencryption` - Debian minimal avec SSH et chiffrement complet du disque - `l.favrep.ch/debiangnome` - Debian avec environnement de bureau Gnome
- `l.favrep.ch/debiangnomecore` - Debian avec environnement de bureau Gnome-core (sans outils)
- `l.favrep.ch/debiancinnamon` - Debian avec environnement de bureau Cinnamon - `l.favrep.ch/debiancinnamon` - Debian avec environnement de bureau Cinnamon
- `l.favrep.ch/debiancinnamoncore` - Debian avec environnement de bureau Cinnamon-core (sans outils)
- `l.favrep.ch/debiansshfulldiskencryption` - Debian minimal avec SSH et chiffrement complet du disque
## Aperçu ## Aperçu
@@ -41,7 +44,7 @@ Installation Debian 12 avec environnement de bureau :
### Installation Réseau ### Installation Réseau
1. Démarrer depuis l'ISO netinst de Debian 1. Démarrer depuis l'ISO netinst de Debian
2. Au menu de démarrage, appuyer sur Tab pour éditer les paramètres 2. Au menu de démarrage, appuyer sur auto-install
3. Ajouter l'URL preseed : `preseed/url=http://votre-serveur/fichier-preseed.txt` 3. Ajouter l'URL preseed : `preseed/url=http://votre-serveur/fichier-preseed.txt`
4. Appuyer sur Entrée pour démarrer l'installation automatisée 4. Appuyer sur Entrée pour démarrer l'installation automatisée
@@ -59,13 +62,12 @@ Puis utiliser : `preseed/url=http://votre-ip:8000/preseed_debian_12_standard_ssh
### Localisation ### Localisation
- **Locale** : Suisse française (fr_CH.UTF-8) - **Locale** : Suisse française (fr_CH.UTF-8)
- **Clavier** : Disposition française (AZERTY) - **Clavier** : Disposition française suisse (QWERTZ)
- **Fuseau horaire** : Europe/Zurich - **Fuseau horaire** : Europe/Zurich
### Réseau ### Réseau
- Configuration DHCP automatique - Configuration DHCP automatique
- Nom d'hôte par défaut : `debian-machine` - Nom d'hôte par défaut : `debian`
- Domaine : `local`
### Sélection de Paquets ### Sélection de Paquets
- Système de base minimal - Système de base minimal
@@ -89,18 +91,11 @@ Pour modifier l'installation :
4. **Partitionnement** : Personnaliser le schéma de partitionnement 4. **Partitionnement** : Personnaliser le schéma de partitionnement
5. **Compte Utilisateur** : Mettre à jour la création d'utilisateur et les mots de passe 5. **Compte Utilisateur** : Mettre à jour la création d'utilisateur et les mots de passe
## Considérations de Sécurité
- Changer les mots de passe par défaut avant utilisation en production
- Réviser la configuration SSH selon vos exigences de sécurité
- Considérer des mesures de durcissement supplémentaires post-installation
- Valider les fichiers preseed dans des environnements isolés
## Prérequis ## Prérequis
- ISO netinst Debian 12 (Bookworm) - ISO netinst Debian 12 (Bookworm)
- Connectivité réseau pendant l'installation - Connectivité réseau pendant l'installation
- Serveur web pour héberger les fichiers preseed - Serveur web ou une clé USB pour héberger les fichiers preseed
- Système cible répondant aux exigences minimales de Debian - Système cible répondant aux exigences minimales de Debian
## Support ## Support

View File

@@ -0,0 +1,60 @@
# Configuration de la langue et de la localisation
d-i debian-installer/locale string fr_CH.UTF-8
d-i preseed/early_command string debconf-set-selections /tmp/preseed.cfg
# Configuration du clavier
d-i keyboard-configuration/modelcode string pc105
d-i keyboard-configuration/variantcode string fr
# Configuration réseau (choix automatique de la première interface active)
d-i netcfg/choose_interface select auto
d-i netcfg/get_hostname string debian
d-i netcfg/get_hostname seen false
d-i netcfg/get_domain string unassigned-domain
# Désactivation du compte root
d-i passwd/root-login boolean false
# Partitionnement manuel (sans partitionnement automatique)
d-i partman-auto/method string
d-i partman-auto/choose_recipe select
d-i partman-partitioning/confirm_write_new_label boolean false
d-i partman/confirm boolean false
d-i partman/confirm_nooverwrite boolean false
# Configuration de l'horloge système
d-i clock-setup/utc boolean true
d-i time/zone string Europe/Zurich
d-i time/zone seen false
d-i clock-setup/ntp boolean true
d-i clock-setup/ntp seen false
# Configuration APT : ne pas utiliser en priorité le CD-ROM comme source
d-i apt-setup/cdrom/set-first boolean false
# Activation des dépôts non-free
d-i apt-setup/non-free boolean true
# Sélection des tâches à installer
tasksel tasksel/first multiselect minimal
# Paquets additionnels à installer
d-i pkgsel/include string \
cinnamon-core \
vim \
wget \
curl \
git \
htop \
network-manager \
spice-vdagent
# Installation de GRUB
d-i grub-installer/only_debian boolean true
d-i grub-installer/with_other_os boolean true
# Demander à l'utilisateur de choisir où installer GRUB
d-i grub-installer/bootdev seen false
# Message indiquant que le redémarrage est en cours
d-i finish-install/reboot_in_progress note

View File

@@ -1,103 +1,64 @@
# Configuration preseed pour Debian 12 avec environnement Cinnamon # Configuration de la langue et de la localisation
# Installation automatisée avec localisation française (Suisse)
# Configuration de la localisation et du clavier
d-i debian-installer/locale string fr_CH.UTF-8 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 preseed/early_command string debconf-set-selections /tmp/preseed.cfg
d-i keyboard-configuration/layout select fr
d-i keyboard-configuration/variant select latin9
# Configuration du réseau # Configuration du clavier
d-i keyboard-configuration/modelcode string pc105
d-i keyboard-configuration/variantcode string fr
# Configuration réseau (choix automatique de la première interface active)
d-i netcfg/choose_interface select auto d-i netcfg/choose_interface select auto
d-i netcfg/get_hostname string debian-cinnamon d-i netcfg/get_hostname string debian
d-i netcfg/get_domain string local d-i netcfg/get_hostname seen false
d-i netcfg/get_domain string unassigned-domain
# Configuration du miroir Debian # Désactivation du compte root
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 des comptes utilisateurs
d-i passwd/root-login boolean false d-i passwd/root-login boolean false
d-i passwd/make-user boolean true
# Configuration de l'horloge et du fuseau horaire # Partitionnement manuel (sans partitionnement automatique)
d-i partman-auto/method string
d-i partman-auto/choose_recipe select
d-i partman-partitioning/confirm_write_new_label boolean false
d-i partman/confirm boolean false
d-i partman/confirm_nooverwrite boolean false
# Configuration de l'horloge système
d-i clock-setup/utc boolean true d-i clock-setup/utc boolean true
d-i time/zone string Europe/Zurich d-i time/zone string Europe/Zurich
d-i time/zone seen false
d-i clock-setup/ntp boolean true d-i clock-setup/ntp boolean true
d-i clock-setup/ntp seen false
# Configuration du partitionnement automatique avec LVM # Configuration APT : ne pas utiliser en priorité le CD-ROM comme source
d-i partman-auto/method string lvm d-i apt-setup/cdrom/set-first boolean false
d-i partman-auto-lvm/guided_size string max
d-i partman-auto-lvm/new_vg_name string debian-vg
d-i partman-lvm/device_remove_lvm boolean true
d-i partman-lvm/confirm boolean true
d-i partman-lvm/confirm_nooverwrite boolean true
d-i partman-md/device_remove_md boolean true
d-i partman-auto/choose_recipe select boot-root
d-i partman-auto/expert_recipe string \n\
boot-root :: \n\
512 1 512 fat32 \n\
$primary{ } $bootable{ } \n\
method{ efi } format{ } \n\
. \n\
1024 2 -1 ext4 \n\
$defaultignore{ } $lvmok{ } \n\
lv_name{ root } \n\
method{ format } format{ } \n\
use_filesystem{ } filesystem{ btrfs } \n\
mountpoint{ / } \n\
.
# Schéma de partitionnement :
# - Partition EFI de 512 MB pour le démarrage UEFI
# - Partition racine BTRFS avec LVM utilisant tout l'espace restant (snapshots possibles)
# - Pas de partition swap
# Confirmation du partitionnement # Activation des dépôts non-free
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-basicfilesystems/no_swap boolean true
# Configuration de l'installation de base
d-i base-installer/install-recommends boolean true
d-i base-installer/kernel/image string linux-image-amd64
# Configuration des dépôts APT
d-i apt-setup/non-free boolean true 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 tâches d'installation # Sélection des tâches à installer
tasksel tasksel/first multiselect desktop-environment, cinnamon-desktop-environment tasksel tasksel/first multiselect minimal
# Paquets supplémentaires à installer # Paquets additionnels à installer
d-i pkgsel/include string cinnamon lightdm lightdm-gtk-greeter cinnamon-session nemo muffin cjs gir1.2-muffin-0.0 mint-themes mint-x-icons mint-y-icons 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 xserver-xorg d-i pkgsel/include string \
# Applications installées : cinnamon-core \
# - Navigateurs : firefox-esr vim \
# - Bureautique : libreoffice, thunderbird wget \
# - Multimédia : gimp, vlc curl \
# - Gestionnaires de paquets : synaptic, gdebi, flatpak git \
# - Outils système : curl, wget, git, vim, htop, neofetch htop \
# - Sécurité : ca-certificates, gnupg network-manager \
# - Firmware : firmware-linux-nonfree firefox-esr \
# - Impression : printer-driver-all, cups thunderbird \
# - Sauvegarde : btrfs-progs, timeshift libreoffice \
vlc \
spice-vdagent
# Installation de GRUB
# Politique de mise à jour
d-i pkgsel/update-policy select install-security-updates
d-i pkgsel/upgrade select safe-upgrade
# Configuration du chargeur de démarrage GRUB
d-i grub-installer/only_debian boolean true d-i grub-installer/only_debian boolean true
d-i grub-installer/with_other_os boolean true d-i grub-installer/with_other_os boolean true
d-i grub-installer/bootdev string default
# Finalisation de l'installation # Demander à l'utilisateur de choisir où installer GRUB
d-i finish-install/reboot_in_progress note d-i grub-installer/bootdev seen false
# Interface non-interactive # Message indiquant que le redémarrage est en cours
d-i debconf/frontend select noninteractive d-i finish-install/reboot_in_progress note

View File

@@ -0,0 +1,60 @@
# Configuration de la langue et de la localisation
d-i debian-installer/locale string fr_CH.UTF-8
d-i preseed/early_command string debconf-set-selections /tmp/preseed.cfg
# Configuration du clavier
d-i keyboard-configuration/modelcode string pc105
d-i keyboard-configuration/variantcode string fr
# Configuration réseau (choix automatique de la première interface active)
d-i netcfg/choose_interface select auto
d-i netcfg/get_hostname string debian
d-i netcfg/get_hostname seen false
d-i netcfg/get_domain string unassigned-domain
# Désactivation du compte root
d-i passwd/root-login boolean false
# Partitionnement manuel (sans partitionnement automatique)
d-i partman-auto/method string
d-i partman-auto/choose_recipe select
d-i partman-partitioning/confirm_write_new_label boolean false
d-i partman/confirm boolean false
d-i partman/confirm_nooverwrite boolean false
# Configuration de l'horloge système
d-i clock-setup/utc boolean true
d-i time/zone string Europe/Zurich
d-i time/zone seen false
d-i clock-setup/ntp boolean true
d-i clock-setup/ntp seen false
# Configuration APT : ne pas utiliser en priorité le CD-ROM comme source
d-i apt-setup/cdrom/set-first boolean false
# Activation des dépôts non-free
d-i apt-setup/non-free boolean true
# Sélection des tâches à installer
tasksel tasksel/first multiselect minimal
# Paquets additionnels à installer
d-i pkgsel/include string \
gnome-core \
vim \
wget \
curl \
git \
htop \
network-manager \
spice-vdagent
# Installation de GRUB
d-i grub-installer/only_debian boolean true
d-i grub-installer/with_other_os boolean true
# Demander à l'utilisateur de choisir où installer GRUB
d-i grub-installer/bootdev seen false
# Message indiquant que le redémarrage est en cours
d-i finish-install/reboot_in_progress note

View File

@@ -0,0 +1,64 @@
# Configuration de la langue et de la localisation
d-i debian-installer/locale string fr_CH.UTF-8
d-i preseed/early_command string debconf-set-selections /tmp/preseed.cfg
# Configuration du clavier
d-i keyboard-configuration/modelcode string pc105
d-i keyboard-configuration/variantcode string fr
# Configuration réseau (choix automatique de la première interface active)
d-i netcfg/choose_interface select auto
d-i netcfg/get_hostname string debian
d-i netcfg/get_hostname seen false
d-i netcfg/get_domain string unassigned-domain
# Désactivation du compte root
d-i passwd/root-login boolean false
# Partitionnement manuel (sans partitionnement automatique)
d-i partman-auto/method string
d-i partman-auto/choose_recipe select
d-i partman-partitioning/confirm_write_new_label boolean false
d-i partman/confirm boolean false
d-i partman/confirm_nooverwrite boolean false
# Configuration de l'horloge système
d-i clock-setup/utc boolean true
d-i time/zone string Europe/Zurich
d-i time/zone seen false
d-i clock-setup/ntp boolean true
d-i clock-setup/ntp seen false
# Configuration APT : ne pas utiliser en priorité le CD-ROM comme source
d-i apt-setup/cdrom/set-first boolean false
# Activation des dépôts non-free
d-i apt-setup/non-free boolean true
# Sélection des tâches à installer
tasksel tasksel/first multiselect minimal
# Paquets additionnels à installer
d-i pkgsel/include string \
gnome-desktop \
vim \
wget \
curl \
git \
htop \
network-manager \
firefox-esr \
thunderbird \
libreoffice \
vlc \
spice-vdagent
# Installation de GRUB
d-i grub-installer/only_debian boolean true
d-i grub-installer/with_other_os boolean true
# Demander à l'utilisateur de choisir où installer GRUB
d-i grub-installer/bootdev seen false
# Message indiquant que le redémarrage est en cours
d-i finish-install/reboot_in_progress note

View File

@@ -0,0 +1,60 @@
# Configuration de la langue et de la localisation
d-i debian-installer/locale string fr_CH.UTF-8
d-i preseed/early_command string debconf-set-selections /tmp/preseed.cfg
# Configuration du clavier
d-i keyboard-configuration/modelcode string pc105
d-i keyboard-configuration/variantcode string fr
# Configuration réseau (choix automatique de la première interface active)
d-i netcfg/choose_interface select auto
d-i netcfg/get_hostname string debian
d-i netcfg/get_hostname seen false
d-i netcfg/get_domain string unassigned-domain
# Désactivation du compte root
d-i passwd/root-login boolean false
# Partitionnement manuel (sans partitionnement automatique)
d-i partman-auto/method string
d-i partman-auto/choose_recipe select
d-i partman-partitioning/confirm_write_new_label boolean false
d-i partman/confirm boolean false
d-i partman/confirm_nooverwrite boolean false
# Configuration de l'horloge système
d-i clock-setup/utc boolean true
d-i time/zone string Europe/Zurich
d-i time/zone seen false
d-i clock-setup/ntp boolean true
d-i clock-setup/ntp seen false
# Configuration APT : ne pas utiliser en priorité le CD-ROM comme source
d-i apt-setup/cdrom/set-first boolean false
# Activation des dépôts non-free
d-i apt-setup/non-free boolean true
# Sélection des tâches à installer
tasksel tasksel/first multiselect minimal
# Paquets additionnels à installer
d-i pkgsel/include string \
kde-plasma-desktop \
vim \
wget \
curl \
git \
htop \
network-manager \
spice-vdagent
# Installation de GRUB
d-i grub-installer/only_debian boolean true
d-i grub-installer/with_other_os boolean true
# Demander à l'utilisateur de choisir où installer GRUB
d-i grub-installer/bootdev seen false
# Message indiquant que le redémarrage est en cours
d-i finish-install/reboot_in_progress note

View File

@@ -1,79 +1,63 @@
# Configuration preseed pour Debian 12 standard avec SSH # Locale et langue par défaut : français suisse
# Installation minimale avec serveur SSH pour administration à distance
# Configuration de la localisation et du clavier
d-i debian-installer/locale string fr_CH.UTF-8 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 du réseau # Configuration réseau automatique
d-i netcfg/choose_interface select auto d-i netcfg/choose_interface select auto
d-i netcfg/get_hostname string unassigned-hostname d-i netcfg/get_hostname string debian
d-i netcfg/get_hostname seen false
d-i netcfg/get_domain string unassigned-domain d-i netcfg/get_domain string unassigned-domain
d-i netcfg/wireless_wep string
# Configuration du miroir Debian # Sécurité : désactivation du compte root
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 des comptes utilisateurs
d-i passwd/root-login boolean false d-i passwd/root-login boolean false
d-i passwd/make-user boolean true
# Configuration de l'horloge et du fuseau horaire # Partitionnement : manuel uniquement
d-i clock-setup/utc boolean true d-i partman-auto/method string manual
d-i time/zone string Europe/Zurich d-i partman-partitioning/confirm_write_new_label boolean false
d-i clock-setup/ntp boolean true d-i partman/confirm boolean false
d-i partman/confirm_nooverwrite boolean false
# Configuration du partitionnement automatique avec LVM # Configuration APT : priorité aux dépôts réseau plutôt qu'au CD-ROM
d-i partman-auto/method string lvm
d-i partman-auto-lvm/guided_size string max
d-i partman-auto-lvm/new_vg_name string debian-vg
d-i partman-lvm/device_remove_lvm boolean true
d-i partman-lvm/confirm boolean true
d-i partman-lvm/confirm_nooverwrite boolean true
d-i partman-md/device_remove_md boolean true
d-i partman-auto/choose_recipe select boot-root
d-i partman-auto/expert_recipe string \n\
boot-root :: \n\
512 1 512 fat32 \n\
$primary{ } $bootable{ } \n\
method{ efi } format{ } \n\
. \n\
1024 2 -1 ext4 \n\
$defaultignore{ } $lvmok{ } \n\
lv_name{ root } \n\
method{ format } format{ } \n\
use_filesystem{ } filesystem{ btrfs } \n\
mountpoint{ / } \n\
.
# Schéma de partitionnement :
# - Partition EFI de 512 MB pour le démarrage UEFI
# - Partition racine BTRFS avec LVM utilisant tout l'espace restant (snapshots possibles)
# - Pas de partition swap
# Confirmation du 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
d-i partman-basicfilesystems/no_swap boolean true
d-i partman-md/confirm boolean true
# Configuration des sources de paquets
d-i apt-setup/cdrom/set-first boolean false d-i apt-setup/cdrom/set-first boolean false
# Sélection des tâches d'installation (installation minimale) # Activation des dépôts non-free pour les pilotes propriétaires
tasksel tasksel/first multiselect minimal d-i apt-setup/non-free boolean true
d-i pkgsel/include string openssh-server btrfs-progs timeshift d-i apt-setup/non-free-firmware boolean true
# Configuration du chargeur de démarrage GRUB # Installation minimale de base
tasksel tasksel/first multiselect minimal
# Paquets essentiels Skylanix : environnement KDE Plasma et outils système
d-i pkgsel/include string \
openssh-server \
vim \
fish \
git \
wget \
curl \
gpg \
htop \
btop
# vim: Éditeur de texte
# fish: Shell moderne
# git: Gestionnaire de versions
# wget: Téléchargeur HTTP/FTP
# curl: Client HTTP/FTP
# gpg: Chiffrement/signatures
# htop: Moniteur système interactif
# btop: Moniteur système moderne
# fastfetch: Info système colorée
# Installation GRUB avec support multi-OS
d-i grub-installer/only_debian boolean true d-i grub-installer/only_debian boolean true
d-i grub-installer/with_other_os boolean true d-i grub-installer/with_other_os boolean true
# Détection automatique du périphérique d'installation GRUB
d-i grub-installer/bootdev string default d-i grub-installer/bootdev string default
# Finalisation de l'installation # Configuration post-installation : Installation de fish pour l'user 1000
d-i finish-install/reboot_in_progress d-i preseed/late_command string \
in-target sh -c "for u in \`awk -F: '\$3 == 1000 { print \$1 }' /etc/passwd\`; do chsh -s /usr/bin/fish \$u 2>/dev/null; done" ;
# Finalisation : redémarrage automatique
d-i finish-install/reboot_in_progress note

View File

@@ -1,82 +1,60 @@
# Configuration preseed pour Debian 12 avec chiffrement complet du disque et SSH ### Configuration de préinstallation minimale pour Debian avec chiffrement intégral
# Installation sécurisée avec chiffrement LUKS pour la protection des données
# Configuration de la localisation et du clavier ### Localisation
d-i debian-installer/locale string fr_CH.UTF-8 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 du réseau ### Configuration du clavier
d-i keyboard-configuration/modelcode string pc105
d-i keyboard-configuration/variantcode string fr
# Configuration réseau (choix automatique de la première interface active)
d-i netcfg/choose_interface select auto d-i netcfg/choose_interface select auto
d-i netcfg/get_hostname string debian-machine d-i netcfg/get_hostname string debian
d-i netcfg/get_domain string local d-i netcfg/get_hostname seen false
d-i netcfg/get_domain string unassigned-domain
# Configuration du miroir Debian ### Paramètres du miroir Debian
d-i mirror/country string manual d-i mirror/country string manual
d-i mirror/http/hostname string deb.debian.org d-i mirror/http/hostname string ftp.ch.debian.org
d-i mirror/http/directory string /debian d-i mirror/http/directory string /debian
d-i mirror/http/proxy string d-i mirror/http/proxy string
# Configuration des comptes utilisateurs ### Configuration de lutilisateur et du mot de passe root
d-i passwd/root-login boolean false d-i passwd/root-login boolean false
d-i passwd/make-user boolean true d-i passwd/user-fullname string Utilisateur
d-i passwd/username string utilisateur
d-i passwd/user-password password mot_de_passe_utilisateur
d-i passwd/user-password-again password mot_de_passe_utilisateur
# Configuration de l'horloge et du fuseau horaire # Configuration de l'horloge système
d-i clock-setup/utc boolean true d-i clock-setup/utc boolean true
d-i time/zone string Europe/Zurich d-i time/zone string Europe/Zurich
d-i time/zone seen false
d-i clock-setup/ntp boolean true
d-i clock-setup/ntp seen false
# Configuration du partitionnement avec chiffrement complet (LUKS) ### Partitionnement et chiffrement intégral
d-i partman-auto/method string crypto d-i partman-auto/method string crypto
d-i partman-auto-lvm/guided_size string max d-i partman-auto-lvm/guided_size string max
d-i partman-auto-lvm/new_vg_name string debian-vg d-i partman-auto/choose_recipe select atomic
d-i partman-lvm/device_remove_lvm boolean true d-i partman-lvm/device_remove_lvm boolean true
d-i partman-md/device_remove_md boolean true d-i partman-md/device_remove_md boolean true
d-i partman-auto-crypto/erase_disks boolean true d-i partman-auto-crypto/erase_disks boolean true
d-i partman-auto-crypto/confirm boolean true d-i partman-auto-crypto/confirm boolean true
d-i partman-auto-crypto/confirm_nooverwrite boolean true d-i partman-auto-crypto/confirm_nooverwrite boolean true
d-i partman-auto/choose_recipe select boot-crypto
d-i partman-auto/expert_recipe string \n\
boot-crypto :: \n\
512 1 512 fat32 \n\
$primary{ } $bootable{ } \n\
method{ efi } format{ } \n\
. \n\
1024 2 -1 ext4 \n\
$defaultignore{ } $lvmok{ } \n\
lv_name{ root } \n\
method{ format } format{ } \n\
use_filesystem{ } filesystem{ btrfs } \n\
mountpoint{ / } \n\
.
# IMPORTANT : Le mot de passe de chiffrement sera demandé durant l'installation
# Schéma de partitionnement chiffré :
# - Partition EFI de 512 MB pour le démarrage UEFI (non chiffrée)
# - Partition racine BTRFS avec LVM chiffrée (snapshots possibles)
# - Pas de partition swap
# Confirmation du partitionnement
d-i partman-partitioning/confirm_write_new_label boolean true d-i partman-partitioning/confirm_write_new_label boolean true
d-i partman/choose_partition select finish d-i partman/choose_partition select finish
d-i partman/confirm boolean true d-i partman/confirm boolean true
d-i partman/confirm_nooverwrite boolean true d-i partman/confirm_nooverwrite boolean true
d-i partman-basicfilesystems/no_swap boolean true
# Sélection des tâches d'installation (installation minimale sécurisée) ### Installation minimale des paquets
tasksel tasksel/first multiselect minimal tasksel tasksel/first multiselect minimal
d-i pkgsel/include string openssh-server btrfs-progs timeshift d-i pkgsel/include string openssh-server
# Configuration du chargeur de démarrage GRUB ### Installation du chargeur de démarrage (GRUB)
d-i grub-installer/only_debian boolean true d-i grub-installer/only_debian boolean true
d-i grub-installer/with_other_os boolean true d-i grub-installer/with_other_os boolean true
d-i grub-installer/bootdev string default d-i grub-installer/bootdev string /dev/sda
# Finalisation de l'installation ### Finalisation de linstallation
d-i finish-install/reboot_in_progress note d-i finish-install/reboot_in_progress note
# NOTES DE SÉCURITÉ :
# - Cette configuration chiffre l'intégralité du disque avec LUKS
# - Un mot de passe de chiffrement sera demandé durant l'installation
# - Ce mot de passe sera requis à chaque démarrage de la machine
# - Le système de fichiers racine et le swap seront entièrement chiffrés
# - Seule la partition /boot reste non chiffrée pour permettre le démarrage