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

This commit is contained in:
DragonSlayer_14 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 #!/bin/bash
# Root-Rechte prüfen # Sicherstellen, dass das Skript mit Root-Rechten ausgeführt wird
if [ "$(id -u)" -ne 0 ]; then if [ "$EUID" -ne 0 ]; then
echo "Bitte mit sudo ausführen!" echo "Bitte führen Sie das Skript mit Root-Rechten aus."
exit 1 exit 1
fi fi
apt update && apt upgrade -y 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 # Der Code, der eingefügt werden soll
CONFIG_BLOCK='if groups | grep -q "\bsudo\b"; then CONFIG_BLOCK='if groups | grep -q "\bsudo\b"; then

View File

@ -236,9 +236,8 @@ flatpak install flathub org.gnome.World.Secrets -y
flatpak install flathub org.gnome.FileRoller flatpak install flathub org.gnome.FileRoller
echo "🔄 Installiere VeraCrypt..." echo "🔄 Installiere VeraCrypt..."
echo 'deb http://download.opensuse.org/repositories/home:/unit193:/veracrypt/Debian_12/ /' | sudo tee /etc/apt/sources.list.d/home:unit193:veracrypt.list sudo add-apt-repository ppa:unit193/encryption
curl -fsSL https://download.opensuse.org/repositories/home:unit193:veracrypt/Debian_12/Release.key | gpg --dearmor | sudo tee /etc/apt/trusted.gpg.d/home_unit193_veracrypt.gpg > /dev/null
sudo apt update sudo apt update
sudo apt install veracrypt sudo apt install -y veracrypt
echo "✅ Alle Programme wurden erfolgreich installiert!" echo "✅ Alle Programme wurden erfolgreich installiert!"

View File

@ -1,34 +0,0 @@
#!/bin/bash
# Root-Rechte prüfen
if [ "$(id -u)" -ne 0 ]; then
echo "Bitte mit sudo ausführen!"
exit 1
fi
# Sicherheitsabfrage
read -p "Achtung! Du führst ein Release-Upgrade auf Debian Trixie durch. Fortfahren? (ja/nein): " choice
if [[ "$choice" != "ja" ]]; then
echo "Upgrade abgebrochen."
exit 0
fi
echo "Aktualisiere Paketlisten..."
sudo apt-get update
echo "Starte System-Upgrade..."
sudo apt-get full-upgrade -y
echo "Ändere die Paketquellen auf Debian Trixie..."
sudo sed -i 's/bookworm/trixie/g' /etc/apt/sources.list
sudo find /etc/apt/sources.list.d -type f -exec sed -i 's/bookworm/trixie/g' {} \;
echo "Aktualisiere Paketlisten erneut..."
sudo apt-get update
echo "Starte vollständiges Release-Upgrade..."
sudo apt-get full-upgrade -y
echo "System wird jetzt neu gestartet..."
sudo reboot

View File

@ -1,26 +1,11 @@
#!/bin/bash #!/bin/bash
# Repository-Pfad definieren # Sicherstellen, dass das Skript **nicht** als root ausgeführt wird
REPO_DIR="$HOME/Debian-Hyprland" if [[ $EUID -eq 0 ]]; then
echo "Bitte **nicht** als root oder mit sudo ausführen! Das Skript fordert sudo nur dort an, wo es benötigt wird."
# Falls das Repository bereits existiert, überspringen
if [ -d "$REPO_DIR" ]; then
echo "Repository existiert bereits. Aktualisiere stattdessen..."
cd "$REPO_DIR" || { echo "Fehler: Konnte nicht in das Verzeichnis wechseln!"; exit 1; }
git pull
else
echo "Klonen des Repositories..."
git clone --depth=1 https://github.com/JaKooLit/Debian-Hyprland.git "$REPO_DIR" || { echo "Fehler beim Klonen!"; exit 1; }
cd "$REPO_DIR" || { echo "Fehler: Konnte nicht in das Verzeichnis wechseln!"; exit 1; }
fi
# Sicherstellen, dass das Installationsskript existiert und ausführbar ist
if [ -f "install.sh" ]; then
chmod +x install.sh
echo "Starte Installation..."
./install.sh
else
echo "Fehler: install.sh nicht gefunden!"
exit 1 exit 1
fi fi
sudo apt remove -y tuxedoos-desktop
sh <(curl -L https://raw.githubusercontent.com/JaKooLit/Ubuntu-Hyprland/24.04/auto-install.sh)

View File

@ -33,8 +33,8 @@ else
fi fi
# Repository klonen # Repository klonen
REPO_DIR="$USER_HOME/Debian-Hyprland" REPO_DIR="$USER_HOME/Ubuntu-Hyprland"
sudo -u "$USER_NAME" git clone https://github.com/JaKooLit/Debian-Hyprland.git "$REPO_DIR" sudo -u "$USER_NAME" git clone -b 24.04 https://github.com/JaKooLit/Ubuntu-Hyprland.git "$REPO_DIR"
# Ordner nach ~/.oh-my-zsh/themes kopieren # Ordner nach ~/.oh-my-zsh/themes kopieren
THEME_SRC="$REPO_DIR/assets/add_zsh_theme" THEME_SRC="$REPO_DIR/assets/add_zsh_theme"

View File

@ -10,7 +10,15 @@ fi
# System aktualisieren und benötigte Pakete installieren # System aktualisieren und benötigte Pakete installieren
echo "🔄 System wird aktualisiert..." echo "🔄 System wird aktualisiert..."
sudo apt update && sudo apt install -y flatpak neovim ufw rfkill xdg-user-dirs rsync sudo apt update && sudo apt upgrade -y && sudo apt autoremove -y
echo "🔄 Entferne Pakete..."
sudo apt remove -y ark plasma-discover dolphin elisa firefox gwenview khelpcenter kinfocenter isoimagewriter kamoso kate kcalc kdeconnect partitionmanager kfind kmahjongg kmines konsole kpat ksudoku ksystemlog ktorrent kwalletmanager kwrite kmenuedit nextcloud-desktop skanlite ksystemstats thunderbird kuserfeedback-doc virtualbox
echo "🔄 Installiere Pakete..."
sudo apt install -y flatpak neovim ufw rfkill xdg-user-dirs rsync
sudo ufw enable sudo ufw enable
# Flatpak Flathub-Repo hinzufügen # Flatpak Flathub-Repo hinzufügen
@ -19,8 +27,8 @@ sudo flatpak remote-add --if-not-exists flathub https://dl.flathub.org/repo/flat
# Waterfox-Installation # Waterfox-Installation
echo "🌍 Waterfox wird installiert..." echo "🌍 Waterfox wird installiert..."
sudo install -d -m 0755 /etc/apt/keyrings sudo install -d -m 0755 /etc/apt/keyrings
curl -fsSL https://download.opensuse.org/repositories/home:hawkeye116477:waterfox/Debian_12/Release.key | gpg --dearmor | sudo tee /etc/apt/trusted.gpg.d/home_hawkeye116477_waterfox.gpg > /dev/null echo 'deb http://download.opensuse.org/repositories/home:/hawkeye116477:/waterfox/xUbuntu_24.04/ /' | sudo tee /etc/apt/sources.list.d/home:hawkeye116477:waterfox.list
echo 'deb https://download.opensuse.org/repositories/home:/hawkeye116477:/waterfox/Debian_12/ /' | sudo tee /etc/apt/sources.list.d/home:hawkeye116477:waterfox.list curl -fsSL https://download.opensuse.org/repositories/home:hawkeye116477:waterfox/xUbuntu_24.04/Release.key | gpg --dearmor | sudo tee /etc/apt/trusted.gpg.d/home_hawkeye116477_waterfox.gpg > /dev/null
sudo apt update && sudo apt install -y waterfox sudo apt update && sudo apt install -y waterfox

View File

@ -14,22 +14,6 @@ dpkg --add-architecture i386
apt update apt update
apt install -y wget curl apt install -y wget curl
wget -O /tmp/steam.deb https://cdn.akamai.steamstatic.com/client/installer/steam.deb apt install -y steam lutris
apt install -y /tmp/steam.deb
rm /tmp/steam.deb
# Lutris-Installation
LUTRIS_KEYRING="/etc/apt/keyrings/lutris.gpg"
LUTRIS_REPO="https://download.opensuse.org/repositories/home:/strycore/Debian_12/"
mkdir -p /etc/apt/keyrings
wget -qO /tmp/lutris-key.gpg "${LUTRIS_REPO}Release.key"
gpg --dearmor </tmp/lutris-key.gpg >"$LUTRIS_KEYRING"
rm /tmp/lutris-key.gpg
echo "deb [signed-by=$LUTRIS_KEYRING] $LUTRIS_REPO ./" >/etc/apt/sources.list.d/lutris.list
apt update
apt install -y lutris
echo "✅ Installation von Steam und Lutris abgeschlossen!" echo "✅ Installation von Steam und Lutris abgeschlossen!"

View File

@ -5,7 +5,8 @@
Dieses Repository enthält Skripte um ein Linux System mit Hyprland und diversen Programmen aufzusetzen. Dieses Repository enthält Skripte um ein Linux System mit Hyprland und diversen Programmen aufzusetzen.
Die entsprechenden Skripte befinden sich in den Branches zur jeweiligen Distribution. Die entsprechenden Skripte befinden sich in den Branches zur jeweiligen Distribution.
**Mit diesen Skripten kann *Debian 12 (Bookworm)* mit *Hyprland* und diversen Programmen aufgesetzt werden.** **Mit diesen Skripten kann *Tuxedo OS*, das auf Ubuntu 24.04 (Noble Numbat) basiert, mit *Hyprland* und diversen
Programmen aufgesetzt werden.**
## Anforderungen ## Anforderungen