From eb10cc00580334b365c534ba25abc2c346880dfc Mon Sep 17 00:00:00 2001 From: lapatatedouce Date: Fri, 25 Jul 2025 18:34:50 +0200 Subject: [PATCH] feat: complete skylanix rebrand and preseed improvements MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Replace yunohost grub theme with skylanix theme - Update isolinux menu colors to skylanix branding (#4490a5) - Refactor preseed configuration with improved package management - Move Firefox Mozilla installation to main preseed - Consolidate user shell configuration and system setup - Streamline late custom scripts for AMD and NVIDIA variants 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude --- .../boot/grub/theme/{yunohost => skylanix} | 4 +- files_to_inject/isolinux/menu.cfg | 4 +- files_to_inject/preseeds/default.preseed | 93 +++++++++++++------ files_to_inject/preseeds/late_custom_amd.sh | 15 +-- .../preseeds/late_custom_nvidia.sh | 19 +--- 5 files changed, 73 insertions(+), 62 deletions(-) rename files_to_inject/boot/grub/theme/{yunohost => skylanix} (96%) diff --git a/files_to_inject/boot/grub/theme/yunohost b/files_to_inject/boot/grub/theme/skylanix similarity index 96% rename from files_to_inject/boot/grub/theme/yunohost rename to files_to_inject/boot/grub/theme/skylanix index 14fcfa3..25be2d3 100755 --- a/files_to_inject/boot/grub/theme/yunohost +++ b/files_to_inject/boot/grub/theme/skylanix @@ -1,9 +1,9 @@ title-color: "white" title-text: "" title-font: "Sans Regular 16" -desktop-color: "black" +desktop-color: "#44a0a5" message-color: "white" -message-bg-color: "black" +message-bg-color: "#44a0a5" terminal-font: "Sans Regular 12" + boot_menu { diff --git a/files_to_inject/isolinux/menu.cfg b/files_to_inject/isolinux/menu.cfg index 296895f..9f412c2 100755 --- a/files_to_inject/isolinux/menu.cfg +++ b/files_to_inject/isolinux/menu.cfg @@ -6,8 +6,8 @@ menu title skylanix installation menu background splash.png menu color title * #FFFFFFFF * menu color border * #00000000 #00000000 none -menu color sel * #ffffffff #76a1d0ff * -menu color hotsel 1;7;37;40 #ffffffff #76a1d0ff * +menu color sel * #ffffffff #4490a5 * +menu color hotsel 1;7;37;40 #ffffffff #4490a5 * menu color tabmsg * #ffffffff #00000000 * menu color help 37;40 #ffdddd00 #00000000 none menu vshift 16 diff --git a/files_to_inject/preseeds/default.preseed b/files_to_inject/preseeds/default.preseed index 3f1d155..cb368fc 100755 --- a/files_to_inject/preseeds/default.preseed +++ b/files_to_inject/preseeds/default.preseed @@ -1,11 +1,5 @@ -# Configuration Skylanix - Preseed pour installation automatisée Debian # Locale et langue par défaut : français suisse 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 suisse français -d-i keyboard-configuration/modelcode string pc105 -d-i keyboard-configuration/variantcode string fr # Configuration réseau automatique d-i netcfg/choose_interface select auto @@ -16,17 +10,16 @@ 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 (pas de partitionnement automatique) -d-i partman-auto/method string -d-i partman-auto/choose_recipe select +# Partitionnement : manuel uniquement +d-i partman-auto/method string manual d-i partman-partitioning/confirm_write_new_label boolean false d-i partman/confirm boolean false d-i partman/confirm_nooverwrite boolean false -# Fuseau horaire -d-i clock-setup/utc boolean true -d-i time/zone string -d-i clock-setup/ntp boolean true +# Fuseau horaire : demande à l'utilisateur +#d-i time/zone seen false +#d-i tzdata/Areas select +#d-i tzdata/Zones/Europe select # Configuration APT : priorité aux dépôts réseau plutôt qu'au CD-ROM d-i apt-setup/cdrom/set-first boolean false @@ -41,29 +34,56 @@ tasksel tasksel/first multiselect minimal # Paquets essentiels Skylanix : environnement KDE Plasma et outils système d-i pkgsel/include string \ kde-plasma-desktop \ - plasma-discover \ - plasma-discover-backend-flatpak \ - fastfetch \ vim \ + fish \ + git \ wget \ curl \ - git \ - htop \ - spice-vdagent \ - flatpak \ gpg \ + htop \ + btop \ + fastfetch \ + plasma-discover \ + flatpak \ + plasma-discover-backend-flatpak \ + gwenview \ + ark \ ffmpeg \ libavcodec-extra \ libavformat-extra \ - fish \ - dkms \ - libdw-dev \ clang \ lld \ llvm \ - cmatrix \ - btop \ - gwenview + libdw-dev \ + dkms \ + spice-vdagent \ + cmatrix + +# kde-plasma-desktop: Bureau KDE Plasma +# 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 +# plasma-discover: Gestionnaire de logiciels KDE +# flatpak: Gestionnaire d'apps universelles +# plasma-discover-backend-flatpak: Support Flatpak dans Discover +# gwenview: Visionneuse d'images KDE +# ark: Gestionnaire d'archives KDE +# ffmpeg: Codecs audio/vidéo +# libavcodec-extra: Codecs supplémentaires +# libavformat-extra: Formats multimédias supplémentaires +# clang: Compilateur C/C++ +# lld: Linker LLVM +# llvm: Infrastructure compilateur +# libdw-dev: Libs développement DWARF +# dkms: Support modules kernel dynamiques +# spice-vdagent: Agent SPICE pour machine virtuelle +# cmatrix: Effet Matrix dans terminal # Installation GRUB avec support multi-OS d-i grub-installer/only_debian boolean true @@ -72,8 +92,25 @@ d-i grub-installer/with_other_os boolean true # Choix manuel du périphérique d'installation GRUB d-i grub-installer/bootdev seen false -# Configuration post-installation : kernel XanMod, shell Fish, dépôts Flathub, mesa kisak et suppression Konqueror -d-i preseed/late_command string cp /cdrom/preseeds/late_custom_amd.sh /target/root/late_custom_amd.sh ; chmod +x /target/root/late_custom_amd.sh ; in-target bash /root/late_custom_amd.sh +# Configuration post-installation : suppression navigateurs par défaut et installation Firefox Mozilla ainsi que fish dans le bashrc +d-i preseed/late_command string \ + in-target apt-get remove --purge -y firefox-esr konqueror ; \ + 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 apt-get install -y fish ; \ + 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 ; \ + cp /cdrom/preseeds/late_custom_amd.sh /target/root/late_custom_amd.sh ; \ + chmod +x /target/root/late_custom_amd.sh ; \ + in-target bash /root/late_custom_amd.sh # Finalisation : redémarrage automatique d-i finish-install/reboot_in_progress note \ No newline at end of file diff --git a/files_to_inject/preseeds/late_custom_amd.sh b/files_to_inject/preseeds/late_custom_amd.sh index 00ced08..090ea94 100644 --- a/files_to_inject/preseeds/late_custom_amd.sh +++ b/files_to_inject/preseeds/late_custom_amd.sh @@ -37,20 +37,7 @@ apt-get update 2>&1 | filter_warn # Installer le noyau XanMod apt-get install -y linux-xanmod-x64v3 2>&1 | filter_warn -# Ajouter flathub à flatpak -timeout 30 flatpak remote-add --if-not-exists flathub https://dl.flathub.org/repo/flathub.flatpakrepo || true - -# Supprimer Konqueror si présent -apt-get remove --purge -y konqueror 2>&1 | filter_warn - -# Mettre le shell fish pour chaque utilisateur non root -for u in $(awk -F: '$3 >= 1000 && $3 < 65534 { print $1 }' /etc/passwd); do - chsh -s /usr/bin/fish $u 2>/dev/null || true -done - -# Activer le support i386 et mettre le système à niveau -dpkg --add-architecture i386 || true -apt-get update 2>&1 | filter_warn +# Installer Kisak Mesa apt-get -y dist-upgrade 2>&1 | filter_warn exit 0 diff --git a/files_to_inject/preseeds/late_custom_nvidia.sh b/files_to_inject/preseeds/late_custom_nvidia.sh index f0086e1..35c235f 100644 --- a/files_to_inject/preseeds/late_custom_nvidia.sh +++ b/files_to_inject/preseeds/late_custom_nvidia.sh @@ -37,23 +37,10 @@ apt-get update 2>&1 | filter_warn # Installer le noyau XanMod apt-get install -y linux-xanmod-x64v3 2>&1 | filter_warn +# Installer Kisak Mesa +apt-get -y dist-upgrade 2>&1 | filter_warn + # Pilotes NVIDIA apt-get install -y $(apt-cache search --names-only '^nvidia-driver-[0-9]+$' | sort -V | tail -1 | cut -d' ' -f1) nvidia-settings 2>&1 | filter_warn -# Ajouter flathub à flatpak -timeout 30 flatpak remote-add --if-not-exists flathub https://dl.flathub.org/repo/flathub.flatpakrepo || true - -# Supprimer Konqueror si présent -apt-get remove --purge -y konqueror 2>&1 | filter_warn - -# Mettre le shell fish pour chaque utilisateur non root -for u in $(awk -F: '$3 >= 1000 && $3 < 65534 { print $1 }' /etc/passwd); do - chsh -s /usr/bin/fish $u 2>/dev/null || true -done - -# Activer le support i386 et mettre le système à niveau -dpkg --add-architecture i386 || true -apt-get update 2>&1 | filter_warn -apt-get -y dist-upgrade 2>&1 | filter_warn - exit 0