Compare commits

..

2 Commits

Author SHA1 Message Date
sky
ee46094d6d améliorations 2025-09-11 15:27:30 +02:00
sky
6fa530e297 Divers améliorations 2025-09-11 03:39:26 +02:00
5 changed files with 288 additions and 446 deletions

View File

@@ -1,6 +1,3 @@
# Locale et langue par défaut : français suisse
d-i debian-installer/locale string fr_CH.UTF-8
# Configuration réseau automatique # Configuration réseau automatique
d-i netcfg/choose_interface select auto d-i netcfg/choose_interface select auto
d-i netcfg/get_hostname string skylanix d-i netcfg/get_hostname string skylanix
@@ -36,38 +33,58 @@ tasksel tasksel/first multiselect minimal
# Paquets essentiels Skylanix : environnement GNOME et outils système # Paquets essentiels Skylanix : environnement GNOME et outils système
d-i pkgsel/include string \ d-i pkgsel/include string \
gnome-core \ gnome-core \
gnome-tweaks \
gnome-shell-extension-manager \
gnome-shell-extension-dashtodock \
gnome-shell-extension-appindicator \
vim \ vim \
fish \ fish \
git \ git \
wget \ wget \
curl \ curl \
gpg \ gpg \
htop \
btop \ btop \
fastfetch \ fastfetch \
flatpak \ flatpak \
pavucontrol \
easyeffects \
gnome-software-plugin-flatpak \
ffmpeg \ ffmpeg \
libavcodec-extra \ libavcodec-extra \
libavformat-extra \ libavformat-extra \
spice-vdagent \ spice-vdagent \
cmatrix dkms \
libdw-dev \
clang \
lld \
llvm
# gnome: environnement de bureau GNOME # gnome-core: Environnement de bureau GNOME minimal
# vim: Éditeur de texte # gnome-tweaks: Outil de personnalisation GNOME avancé
# fish: Shell moderne # gnome-shell-extension-manager: Extensions pour GNOME Shell
# git: Gestionnaire de versions # gnome-shell-extension-dashtodock: Dock personnalisable pour GNOME
# wget: Téléchargeur HTTP/FTP # gnome-shell-extension-appindicator: Support des indicateurs d'applications
# curl: Client HTTP/FTP # vim: Éditeur de texte en ligne de commande
# gpg: Chiffrement/signatures # fish: Shell interactif moderne et convivial
# htop: Moniteur système interactif # git: Système de contrôle de version distribué
# btop: Moniteur système moderne # wget: Utilitaire de téléchargement HTTP/HTTPS/FTP
# fastfetch: Info système colorée # curl: Outil de transfert de données avec URLs
# flatpak: Gestionnaire d'apps universelles # gpg: Suite de chiffrement et signature numérique
# ffmpeg: Codecs audio/vidéo # btop: Moniteur système interactif coloré
# libavcodec-extra: Codecs supplémentaires # fastfetch: Affichage rapide d'informations système
# libavformat-extra: Formats multimédias supplémentaires # flatpak: Gestionnaire d'applications sandboxées
# spice-vdagent: Agent SPICE pour machine virtuelle # pavucontrol: Interface graphique pour PulseAudio
# cmatrix: Effet Matrix dans terminal # easyeffects: Suite d'effets audio pour PipeWire
# gnome-software-plugin-flatpak: Intégration Flatpak dans GNOME Software
# ffmpeg: Framework multimédia complet
# libavcodec-extra: Codecs audio/vidéo supplémentaires
# libavformat-extra: Support de formats multimédias étendus
# spice-vdagent: Agent pour optimisation VM SPICE
# dkms: Gestion dynamique des modules noyau
# libdw-dev: Bibliothèques de développement DWARF
# clang: Compilateur C/C++/Objective-C moderne
# lld: Éditeur de liens rapide LLVM
# llvm: Infrastructure de compilation modulaire
# Installation GRUB avec support multi-OS # Installation GRUB avec support multi-OS
d-i grub-installer/only_debian boolean true d-i grub-installer/only_debian boolean true
@@ -78,7 +95,7 @@ d-i grub-installer/bootdev string default
# Configuration post-installation : suppression navigateurs par défaut, installation Firefox Mozilla, kernel XanMod et configuration système # Configuration post-installation : suppression navigateurs par défaut, installation Firefox Mozilla, kernel XanMod et configuration système
d-i preseed/late_command string \ d-i preseed/late_command string \
in-target apt-get remove --purge -y firefox-esr konqueror ; \ in-target apt-get remove --purge -y firefox-esr ; \
in-target mkdir -p /etc/apt/keyrings ; \ 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 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 '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' ; \
@@ -94,13 +111,20 @@ d-i preseed/late_command string \
sh -c 'cp /cdrom/preseeds/install_gaming.sh /target/usr/bin/install_gaming.sh ; \ sh -c 'cp /cdrom/preseeds/install_gaming.sh /target/usr/bin/install_gaming.sh ; \
chmod +x /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/ ; \ 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"' ; \ chmod 644 /target/usr/share/applications/"Debian Gaming Deployment Tool.desktop"' ; \ in-target mkdir -p /etc/apt/keyrings ; \
sh -c 'mkdir -p /target/etc/apt/keyrings' ; \ in-target mkdir -p /etc/apt/sources.list.d ; \
sh -c 'mkdir -p /target/etc/apt/sources.list.d' ; \ in-target wget -qO /etc/apt/keyrings/xanmod-archive-keyring.gpg https://dl.xanmod.org/archive.key ; \
sh -c 'wget -qO /target/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' ; \
sh -c 'echo "deb [signed-by=/etc/apt/keyrings/xanmod-archive-keyring.gpg] http://deb.xanmod.org trixie main" > /target/etc/apt/sources.list.d/xanmod.list' ; \
in-target apt-get update ; \ in-target apt-get update ; \
in-target apt-get install -y linux-xanmod-x64v3 ; 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 # Finalisation : redémarrage automatique
d-i finish-install/reboot_in_progress note d-i finish-install/reboot_in_progress note

View File

@@ -0,0 +1,8 @@
=== Debian Gaming Deployment Tool Log - Démarré le jeu 11 sep 2025 14:42:37 CEST ===
Fichier de log: ./gaming_installer.log
Utilisateur: sky
Répertoire de travail: /home/sky/Documents/gitea/custom-debian-iso/files_to_inject/preseeds
[2025-09-11 14:42:37] INFO: Script démarré avec succès
[2025-09-11 14:42:37] INFO: Vérification du système de logging
[2025-09-11 14:42:37] INFO: Fichier de log créé dans: /home/sky/Documents/gitea/custom-debian-iso/files_to_inject/preseeds/gaming_installer.log

File diff suppressed because it is too large Load Diff

View File

@@ -60,12 +60,13 @@ def download_file(
output_file.write(file_response.content) output_file.write(file_response.content)
else: else:
if (show_progress): if (show_progress):
total_length = int(total_length)
progress_bar = tqdm( progress_bar = tqdm(
total=total_length, desc="Downloading",
bar_format='{desc}: {elapsed} [{bar:30}] {rate_fmt}',
unit="B", unit="B",
unit_scale=True, unit_scale=True,
unit_divisor=1024 unit_divisor=1024,
ncols=80
) )
for data in file_response.iter_content(chunk_size=4096): for data in file_response.iter_content(chunk_size=4096):

View File

@@ -23,7 +23,7 @@ def main():
parser = get_argument_parser() parser = get_argument_parser()
args = parser.parse_args() args = parser.parse_args()
# parse and verify output file if sepcified # parse and verify output file if specified
if args.path_to_output_file: if args.path_to_output_file:
path_to_output_file = Path(args.path_to_output_file) path_to_output_file = Path(args.path_to_output_file)
if "~" in str(path_to_output_file): if "~" in str(path_to_output_file):
@@ -36,7 +36,7 @@ def main():
else: else:
path_to_output_file = None path_to_output_file = None
# parse and verify output dir if sepcified # parse and verify output dir if specified
if args.path_to_output_dir: if args.path_to_output_dir:
path_to_output_dir = Path(args.path_to_output_dir) path_to_output_dir = Path(args.path_to_output_dir)
if "~" in str(path_to_output_dir): if "~" in str(path_to_output_dir):