branche brice

This commit is contained in:
Brice Laguérodie 2025-09-24 17:29:34 +02:00
parent 8f6985352a
commit 228ddaf5e1
21 changed files with 200 additions and 0 deletions

0
ascii-gnos-gnome.txt → _ascii-gnos-gnome.txt Executable file → Normal file
View File

0
change-icons.sh → _change-icons.sh Executable file → Normal file
View File

1
helper.note → _helper.note Executable file → Normal file
View File

@ -6,5 +6,6 @@ sudo mount -t vboxsf -o uid=0000,gid=1000 GN-post_install-Trixie /home/visiteur/
# Montage automatique du dossier partagé au boot
sudo su -c "echo 'GN-post_install-Trixie /home/visiteur/share vboxsf defaults 0 0' >> /etc/fstab"
>> passer par un cron tab @reboot

0
files/00-defaults Executable file → Normal file
View File

0
files/BACKUP-gnome-extensions.service Executable file → Normal file
View File

0
files/debian.sources Executable file → Normal file
View File

0
files/extrepo.config.yaml Executable file → Normal file
View File

0
files/gnome-extensions.conf Executable file → Normal file
View File

0
files/user Executable file → Normal file
View File

0
files/wallpapers/GN-wallpaper.jpg Executable file → Normal file
View File

Before

Width:  |  Height:  |  Size: 906 KiB

After

Width:  |  Height:  |  Size: 906 KiB

0
files/wallpapers/bird.png Executable file → Normal file
View File

Before

Width:  |  Height:  |  Size: 59 KiB

After

Width:  |  Height:  |  Size: 59 KiB

0
files/wallpapers/bunny.png Executable file → Normal file
View File

Before

Width:  |  Height:  |  Size: 36 KiB

After

Width:  |  Height:  |  Size: 36 KiB

0
files/wallpapers/cat-coffee.png Executable file → Normal file
View File

Before

Width:  |  Height:  |  Size: 304 KiB

After

Width:  |  Height:  |  Size: 304 KiB

0
files/wallpapers/clouds.png Executable file → Normal file
View File

Before

Width:  |  Height:  |  Size: 694 KiB

After

Width:  |  Height:  |  Size: 694 KiB

0
files/wallpapers/fingerprint.png Executable file → Normal file
View File

Before

Width:  |  Height:  |  Size: 264 KiB

After

Width:  |  Height:  |  Size: 264 KiB

View File

Before

Width:  |  Height:  |  Size: 332 KiB

After

Width:  |  Height:  |  Size: 332 KiB

0
firefox.sh Executable file → Normal file
View File

0
gnome.sh Executable file → Normal file
View File

88
install_apps.sh Normal file
View File

@ -0,0 +1,88 @@
#!/bin/bash
# Vérifie si une commande est disponible
is_installed() {
command -v "$1" &> /dev/null
}
# 📺 FreeTube (AppImage)
install_freetube() {
if is_installed freetube; then
echo "📺 FreeTube est déjà installé."
return
fi
run_step "📺 Installation de FreeTube (AppImage)" "
mkdir -p \$HOME/.local/bin &&
wget -q https://github.com/FreeTubeApp/FreeTube/releases/latest/download/freetube.AppImage -O \$HOME/.local/bin/freetube &&
chmod +x \$HOME/.local/bin/freetube
"
run_step "📺 Création du raccourci FreeTube" "
mkdir -p ~/.local/share/applications &&
cat <<EOF > ~/.local/share/applications/freetube.desktop
[Desktop Entry]
Name=FreeTube
Exec=/home/$USER/.local/bin/freetube
Icon=video
Type=Application
Categories=AudioVideo;Player;Video;
EOF
"
}
# 🎥 Zoom (via .deb)
install_zoom() {
if is_installed zoom; then
echo "🎥 Zoom est déjà installé."
return
fi
run_step "🎥 Installation de Zoom (.deb officiel)" "
wget -q https://zoom.us/client/latest/zoom_amd64.deb -O /tmp/zoom.deb &&
sudo apt install -y /tmp/zoom.deb &&
rm /tmp/zoom.deb
"
}
# 💬 Element (via extrepo)
install_element() {
if is_installed element-desktop; then
echo "💬 Element est déjà installé."
return
fi
run_step "💬 Installation de Element (Extrepo)" "
sudo extrepo enable element.io &&
sudo apt update &&
sudo apt install -y element-desktop
"
}
# 🌐 Google Chrome (via extrepo)
install_chrome() {
if is_installed google-chrome; then
echo "🌐 Google Chrome est déjà installé."
return
fi
run_step "🌐 Installation de Google Chrome (Extrepo)" "
sudo extrepo enable google_chrome &&
sudo apt update &&
sudo apt install -y google-chrome-stable
"
}
# 🧑‍💻 VSCodium (via extrepo)
install_vscodium() {
if is_installed codium; then
echo "🧑‍💻 VSCodium est déjà installé."
return
fi
run_step "🧑‍💻 Installation de VSCodium (Extrepo)" "
sudo extrepo enable vscodium &&
sudo apt update &&
sudo apt install -y codium
"
}

View File

@ -0,0 +1,111 @@
#!/bin/bash
source ./install_apps.sh
LOGFILE="$HOME/postinstall.log"
> "$LOGFILE"
run_step() {
local description="$1"
local command="$2"
echo -n "$description... "
eval "$command" > /dev/null 2>>"$LOGFILE"
if [ $? -eq 0 ]; then
echo "✅"
else
echo "❌ (voir $LOGFILE)"
fi
}
#################################
# 🎯 POST-INSTALL DEBIAN 13 #
#################################
run_step '📦 Configuration des sources APT' "
sudo cp files/debian.sources /etc/apt/sources.list.d/ &&
if [ -f /etc/apt/sources.list ]; then
sudo cp /etc/apt/sources.list /etc/apt/sources.list.backup
sudo rm /etc/apt/sources.list
fi
"
run_step "🆙 Mise à jour du système" "
sudo apt update &&
sudo apt upgrade -y
"
# 🧰 BASE TOOLS
run_step "🔧 Installation des outils de base" "
sudo apt install -y libgettextpo-dev gettext git wget curl build-essential linux-image-amd64 make ttf-mscorefonts-installer rsyslog unzip bash-completion flatpak libxdo3 extrepo
"
run_step "🛒 Ajout du dépôt Flathub" "
flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
"
# 🌐 DNS
run_step "🌐 Configuration DNS Cloudflare" "
echo -e '[main]\ndns=none' | sudo tee /etc/NetworkManager/conf.d/90-dns-none.conf &&
sudo systemctl reload NetworkManager &&
sudo sed -i '1,4 s/^/#/' /etc/resolv.conf &&
sudo sed -i -e '\$anameserver 1.1.1.2\nameserver 2606:4700:4700::1112' /etc/resolv.conf &&
sudo systemctl reload NetworkManager
"
# 🎨 LIBREOFFICE
run_step "🎨 Icônes LibreOffice (Colibre)" "
sudo chown $USER:$USER files/registrymodifications.xcu &&
mkdir -p \$HOME/.config/libreoffice/4/user/ &&
cp files/registrymodifications.xcu \$HOME/.config/libreoffice/4/user/ &&
sudo mkdir -p /etc/skel/.config/libreoffice/4/user/ &&
sudo cp files/registrymodifications.xcu /etc/skel/.config/libreoffice/4/user/
"
# 🦊 FIREFOX
run_step "🦊 Installation de Firefox (script)" "
bash firefox.sh
"
# 🖥️ GNOME
if whiptail --title "Configuration GNOME" --yesno "Souhaitez-vous configurer GNOME maintenant ?" 10 60; then
run_step "🖥️ Configuration de GNOME (script)" "
bash gnome.sh
"
else
echo "⏭️ Configuration GNOME ignorée."
fi
##############################
## SELECTION DES LOGICIELS ##
##############################
CHOIX=$(whiptail --title "Installation de logiciels" --checklist \
"Choisissez les logiciels à installer :" 20 78 10 \
"freetube" "FreeTube (YouTube sans pub)" ON \
"zoom" "Zoom (visioconférence)" OFF \
"element" "Element (messagerie Matrix)" OFF \
"chrome" "Google Chrome (navigateur)" OFF \
"vscodium" "VSCodium (éditeur de code)" ON \
3>&1 1>&2 2>&3)
# Nettoyage des guillemets doubles de la sortie de whiptail
CHOIX=$(echo $CHOIX | tr -d '"')
for APP in $CHOIX; do
case $APP in
freetube) install_freetube ;;
zoom) install_zoom ;;
element) install_element ;;
chrome) install_chrome ;;
vscodium) install_vscodium ;;
*) echo "❓ Logiciel inconnu : $APP" ;;
esac
done
echo -e "\n🎉 Post-installation terminée."
echo "📄 Rapport des erreurs (s'il y en a) : $LOGFILE"

0
post_install_trixie.sh Executable file → Normal file
View File