Feat: Passt die Debian 12 bookworm Install-Skripte für Tuxedo OS an.
This commit is contained in:
34
0_Setup.sh
34
0_Setup.sh
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user