From da7bf989654be2f3488b4e0e0736f1c7af671660 Mon Sep 17 00:00:00 2001 From: lapatatedouce Date: Mon, 30 Jun 2025 20:59:05 +0200 Subject: [PATCH] maj --- preseed_debian_12_cinnamon.txt | 28 ++++++++----------- preseed_debian_12_standard_ssh.txt | 18 ++++-------- ...n_12_standard_ssh_full_disk_encryption.txt | 2 +- 3 files changed, 18 insertions(+), 30 deletions(-) diff --git a/preseed_debian_12_cinnamon.txt b/preseed_debian_12_cinnamon.txt index 12d7571..0b0c071 100644 --- a/preseed_debian_12_cinnamon.txt +++ b/preseed_debian_12_cinnamon.txt @@ -15,7 +15,7 @@ d-i netcfg/get_domain string local ### Paramètres du miroir Debian d-i mirror/country string manual -d-i mirror/http/hostname string ftp.ch.debian.org +d-i mirror/http/hostname string deb.debian.org d-i mirror/http/directory string /debian d-i mirror/http/proxy string @@ -23,13 +23,9 @@ d-i mirror/http/proxy string # Ne pas créer de compte root, utiliser sudo d-i passwd/root-login boolean false -# Création d'un utilisateur normal -d-i passwd/user-fullname string Utilisateur Debian -d-i passwd/username string user -d-i passwd/user-password password debian123 -d-i passwd/user-password-again password debian123 -d-i user-setup/allow-password-weak boolean true -d-i user-setup/encrypt-home 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 @@ -130,14 +126,14 @@ d-i finish-install/reboot_in_progress note d-i preseed/late_command string \ in-target systemctl enable cups ; \ in-target systemctl enable lightdm ; \ - in-target usermod -aG sudo user ; \ - in-target usermod -aG lpadmin user ; \ - in-target usermod -aG cdrom user ; \ - in-target usermod -aG floppy user ; \ - in-target usermod -aG audio user ; \ - in-target usermod -aG video user ; \ - in-target usermod -aG plugdev user ; \ - in-target usermod -aG netdev user ; \ + 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' ; \ diff --git a/preseed_debian_12_standard_ssh.txt b/preseed_debian_12_standard_ssh.txt index 40e0687..89cbb30 100644 --- a/preseed_debian_12_standard_ssh.txt +++ b/preseed_debian_12_standard_ssh.txt @@ -107,7 +107,7 @@ d-i netcfg/wireless_wep string # Default value for the mirror protocol: http #d-i mirror/protocol string ftp d-i mirror/country string manual -d-i mirror/http/hostname string +d-i mirror/http/hostname string deb.debian.org d-i mirror/http/directory string /debian d-i mirror/http/proxy string @@ -120,8 +120,8 @@ d-i mirror/http/proxy string # Skip creation of a root account (normal user account will be able to # use sudo). d-i passwd/root-login boolean false -# Alternatively, to skip creation of a normal user account. -d-i passwd/make-user boolean false +# Create a normal user account - prompt for details during installation +d-i passwd/make-user boolean true # Root password, either in clear text #d-i passwd/root-password password r00tme @@ -129,16 +129,8 @@ d-i passwd/make-user boolean false # or encrypted using a crypt(3) hash. #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 -# Normal user's password, either in clear text -#d-i passwd/user-password password insecure -#d-i passwd/user-password-again password insecure -# 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. -#d-i passwd/user-uid string 1010 +# User account will be prompted during installation +# Username, full name, and password will be requested interactively # The user account will be added to some standard initial groups. To # override that, use this. diff --git a/preseed_debian_12_standard_ssh_full_disk_encryption.txt b/preseed_debian_12_standard_ssh_full_disk_encryption.txt index fec72db..cba01e2 100644 --- a/preseed_debian_12_standard_ssh_full_disk_encryption.txt +++ b/preseed_debian_12_standard_ssh_full_disk_encryption.txt @@ -15,7 +15,7 @@ d-i netcfg/get_domain string local ### Debian mirror settings d-i mirror/country string manual -d-i mirror/http/hostname string ftp.ch.debian.org +d-i mirror/http/hostname string deb.debian.org d-i mirror/http/directory string /debian d-i mirror/http/proxy string