125 lines
6.1 KiB
Plaintext
Executable File
125 lines
6.1 KiB
Plaintext
Executable File
# Configuration réseau automatique
|
|
d-i netcfg/choose_interface select auto
|
|
d-i netcfg/get_hostname string skylanix
|
|
# Forcer la saisie du hostname même si déjà configuré
|
|
d-i netcfg/get_hostname seen false
|
|
d-i netcfg/get_domain string unassigned-domain
|
|
|
|
# Sécurité : désactivation du compte root
|
|
d-i passwd/root-login boolean false
|
|
|
|
# Partitionnement : manuel uniquement
|
|
d-i partman-auto/method string manual
|
|
# Ne pas demander confirmation pour créer une nouvelle table de partition
|
|
d-i partman-partitioning/confirm_write_new_label boolean false
|
|
# Ne pas demander confirmation avant l'écriture des partitions
|
|
d-i partman/confirm boolean false
|
|
# Ne pas demander confirmation en cas d'écrasement de données
|
|
d-i partman/confirm_nooverwrite boolean false
|
|
|
|
# Configuration APT : priorité aux dépôts réseau plutôt qu'au CD-ROM
|
|
d-i apt-setup/cdrom/set-first boolean false
|
|
|
|
# Configuration des sources Debian
|
|
d-i apt-setup/use_mirror boolean true
|
|
|
|
# Activation des dépôts non-free pour les pilotes propriétaires
|
|
d-i apt-setup/non-free boolean true
|
|
d-i apt-setup/non-free-firmware boolean true
|
|
|
|
# Installation minimale de base
|
|
tasksel tasksel/first multiselect minimal
|
|
|
|
# Paquets essentiels Skylanix : environnement GNOME et outils système
|
|
d-i pkgsel/include string \
|
|
gnome-core \
|
|
gnome-tweaks \
|
|
vim \
|
|
fish \
|
|
git \
|
|
wget \
|
|
curl \
|
|
gpg \
|
|
btop \
|
|
fastfetch \
|
|
flatpak \
|
|
pavucontrol \
|
|
easyeffects \
|
|
gnome-software-plugin-flatpak \
|
|
ffmpeg \
|
|
libavcodec-extra \
|
|
libavformat-extra \
|
|
spice-vdagent \
|
|
dkms \
|
|
libdw-dev \
|
|
clang \
|
|
lld \
|
|
llvm
|
|
|
|
# gnome-core: Environnement de bureau GNOME
|
|
# gnome-tweaks: Outil de personnalisation GNOME
|
|
# vim: Éditeur de texte
|
|
# fish: Shell moderne
|
|
# git: Gestionnaire de versions
|
|
# wget: Téléchargeur HTTP/FTP
|
|
# curl: Client HTTP/FTP
|
|
# gpg: Chiffrement/signatures
|
|
# btop: Moniteur système moderne
|
|
# fastfetch: Info système colorée
|
|
# flatpak: Gestionnaire d'apps universelles
|
|
# pavucontrol: Contrôleur audio PulseAudio
|
|
# easyeffects: Effets audio avancés
|
|
# gnome-software-plugin-flatpak: Plugin Flatpak pour GNOME Software
|
|
# ffmpeg: Codecs audio/vidéo
|
|
# libavcodec-extra: Codecs supplémentaires
|
|
# libavformat-extra: Formats multimédias supplémentaires
|
|
# spice-vdagent: Agent SPICE pour machine virtuelle
|
|
# dkms: Système de modules kernel dynamiques
|
|
# libdw-dev: Bibliothèque de débogage DWARF
|
|
# clang: Compilateur C/C++/Objective-C
|
|
# lld: Éditeur de liens LLVM
|
|
# llvm: Infrastructure de compilation modulaire
|
|
|
|
# Installation GRUB avec support multi-OS
|
|
d-i grub-installer/only_debian 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
|
|
|
|
# Configuration post-installation : suppression navigateurs par défaut, installation Firefox Mozilla, kernel XanMod et configuration système
|
|
d-i preseed/late_command string \
|
|
in-target apt-get remove --purge -y firefox-esr ; \
|
|
in-target mkdir -p /etc/apt/keyrings ; \
|
|
in-target timeout 30 wget -q https://packages.mozilla.org/apt/repo-signing-key.gpg -O /etc/apt/keyrings/packages.mozilla.org.asc ; \
|
|
in-target sh -c 'echo "deb [signed-by=/etc/apt/keyrings/packages.mozilla.org.asc] https://packages.mozilla.org/apt mozilla main" > /etc/apt/sources.list.d/mozilla.list' ; \
|
|
in-target sh -c 'cat > /etc/apt/preferences.d/mozilla << EOF\nPackage: *\nPin: origin packages.mozilla.org\nPin-Priority: 1000\nEOF' ; \
|
|
in-target apt-get update ; \
|
|
in-target apt-get install -y firefox ; \
|
|
in-target update-alternatives --install /usr/bin/x-www-browser x-www-browser /usr/bin/firefox 200 ; \
|
|
in-target update-alternatives --set x-www-browser /usr/bin/firefox ; \
|
|
in-target timeout 30 flatpak remote-add --if-not-exists flathub https://dl.flathub.org/repo/flathub.flatpakrepo ; \
|
|
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" ; \
|
|
in-target dpkg --add-architecture i386 ; \
|
|
in-target apt-get update ; \
|
|
sh -c 'cp /cdrom/preseeds/install_gaming.sh /target/usr/bin/install_gaming.sh ; \
|
|
chmod +x /target/usr/bin/install_gaming.sh' ; \
|
|
sh -c 'cp "/cdrom/preseeds/Debian Gaming Deployment Tool.desktop" /target/usr/share/applications/ ; \
|
|
chmod 644 /target/usr/share/applications/"Debian Gaming Deployment Tool.desktop"' ; \ in-target mkdir -p /etc/apt/keyrings ; \
|
|
in-target mkdir -p /etc/apt/sources.list.d ; \
|
|
in-target wget -qO /etc/apt/keyrings/xanmod-archive-keyring.gpg https://dl.xanmod.org/archive.key ; \
|
|
in-target sh -c 'echo "deb [signed-by=/etc/apt/keyrings/xanmod-archive-keyring.gpg] http://deb.xanmod.org trixie main non-free" > /etc/apt/sources.list.d/xanmod.list' ; \
|
|
in-target apt-get update ; \
|
|
in-target apt-get install -y linux-xanmod-x64v3 ; \
|
|
in-target mkdir -p /etc/skel/.config/autostart ; \
|
|
in-target sh -c 'printf "[Desktop Entry]\nType=Application\nName=Skylanix Setup\nExec=sh -c \"gsettings set org.gnome.desktop.wm.preferences button-layout \":minimize,maximize,close\" && rm ~/.config/autostart/skylanix-setup.desktop\"\nNoDisplay=true\nStartupNotify=false\n" > /etc/skel/.config/autostart/skylanix-setup.desktop' ; \
|
|
in-target mkdir -p /etc/dconf/profile ; \
|
|
in-target sh -c 'echo "user-db:user\nsystem-db:local" > /etc/dconf/profile/user' ; \
|
|
in-target mkdir -p /etc/dconf/db/local.d ; \
|
|
in-target sh -c 'printf "[org/gnome/desktop/wm/preferences]\nbutton-layout=\":minimize,maximize,close\"\n" > /etc/dconf/db/local.d/00-skylanix-wm' ; \
|
|
in-target dconf update ;
|
|
in-target sh -c 'if lspci | grep -i nvidia | grep -E "(GTX 16[0-9]{2}|RTX [2-4][0-9]{3}|RTX [5-9][0-9]{3}|Tesla|Quadro.*T[0-9]{3,4}|A[0-9]{2,4})" > /dev/null; then echo "Carte NVIDIA compatible détectée"; lspci | grep -i nvidia; echo "Installation des drivers NVIDIA 580 open source..."; in-target apt-get update && in-target apt-get install -y nvidia-driver-580-open; echo "Installation terminée. Redémarrage requis."; else echo "Aucune carte NVIDIA série 1600+ détectée"; lspci | grep -i vga; fi' ;
|
|
|
|
# Finalisation : redémarrage automatique
|
|
d-i finish-install/reboot_in_progress note
|