Feat: Passt die Debian 12 bookworm Install-Skripte für Tuxedo OS an.

This commit is contained in:
2025-03-09 23:31:50 +01:00
parent eefe740b81
commit d991228c6b
8 changed files with 53 additions and 86 deletions

View File

@@ -1,13 +1,37 @@
#!/bin/bash
# Root-Rechte prüfen
if [ "$(id -u)" -ne 0 ]; then
echo "Bitte mit sudo ausführen!"
exit 1
# Sicherstellen, dass das Skript mit Root-Rechten ausgeführt wird
if [ "$EUID" -ne 0 ]; then
echo "Bitte führen Sie das Skript mit Root-Rechten aus."
exit 1
fi
apt update && apt upgrade -y
apt install -y git sudo 7zip unrar unzip network-manager software-properties-common tree bluetooth
apt install -y git sudo 7zip unrar unzip network-manager software-properties-common tree bluetooth tuxedo-neofetch tuxedo-ufw-profiles ubuntu-drivers-common apt-file kerneloops language-pack-gnome-de
echo "Passe Grub-Konfig an."
# Backup der aktuellen GRUB-Konfiguration
GRUB_CONFIG="/etc/default/grub"
BACKUP_CONFIG="/etc/default/grub.bak"
if [ -f "$GRUB_CONFIG" ]; then
echo "Erstelle ein Backup der aktuellen GRUB-Konfiguration unter $BACKUP_CONFIG"
cp "$GRUB_CONFIG" "$BACKUP_CONFIG"
# GRUB-Konfiguration anpassen
echo "Passe die GRUB-Konfiguration an, um den GRUB-Loader immer anzuzeigen..."
sed -i 's/^GRUB_TIMEOUT_STYLE=.*/GRUB_TIMEOUT_STYLE=menu/' "$GRUB_CONFIG"
sed -i 's/^GRUB_TIMEOUT=.*/GRUB_TIMEOUT=5/' "$GRUB_CONFIG"
# GRUB-Konfiguration aktualisieren
echo "Aktualisiere die GRUB-Konfiguration..."
update-grub
echo "Die GRUB-Konfiguration wurde erfolgreich angepasst."
else
echo "Die Datei $GRUB_CONFIG wurde nicht gefunden. Passe GRUB-Config nicht an."
fi
# Der Code, der eingefügt werden soll
CONFIG_BLOCK='if groups | grep -q "\bsudo\b"; then