diff --git a/0_Setup.sh b/0_Setup.sh index 8e98297..9c13ebb 100755 --- a/0_Setup.sh +++ b/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 diff --git a/10_Programs.sh b/10_Programs.sh index 3dd72a7..af84eaa 100755 --- a/10_Programs.sh +++ b/10_Programs.sh @@ -236,9 +236,8 @@ flatpak install flathub org.gnome.World.Secrets -y flatpak install flathub org.gnome.FileRoller 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 -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 add-apt-repository ppa:unit193/encryption sudo apt update -sudo apt install veracrypt +sudo apt install -y veracrypt echo "✅ Alle Programme wurden erfolgreich installiert!" diff --git a/1_TrixieUpgrade.sh b/1_TrixieUpgrade.sh deleted file mode 100755 index 7c045f8..0000000 --- a/1_TrixieUpgrade.sh +++ /dev/null @@ -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 - diff --git a/3_HyprlandInstall.sh b/3_HyprlandInstall.sh index 8f60635..22c2888 100755 --- a/3_HyprlandInstall.sh +++ b/3_HyprlandInstall.sh @@ -1,26 +1,11 @@ #!/bin/bash -# Repository-Pfad definieren -REPO_DIR="$HOME/Debian-Hyprland" - -# 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!" +# Sicherstellen, dass das Skript **nicht** als root ausgeführt wird +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." exit 1 fi +sudo apt remove -y tuxedoos-desktop + +sh <(curl -L https://raw.githubusercontent.com/JaKooLit/Ubuntu-Hyprland/24.04/auto-install.sh) diff --git a/4_ZshRegister.sh b/4_ZshRegister.sh index fa3e108..07cffe1 100755 --- a/4_ZshRegister.sh +++ b/4_ZshRegister.sh @@ -33,8 +33,8 @@ else fi # Repository klonen -REPO_DIR="$USER_HOME/Debian-Hyprland" -sudo -u "$USER_NAME" git clone https://github.com/JaKooLit/Debian-Hyprland.git "$REPO_DIR" +REPO_DIR="$USER_HOME/Ubuntu-Hyprland" +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 THEME_SRC="$REPO_DIR/assets/add_zsh_theme" diff --git a/6_Polish.sh b/6_Polish.sh index abd602a..867e88c 100755 --- a/6_Polish.sh +++ b/6_Polish.sh @@ -10,7 +10,15 @@ fi # System aktualisieren und benötigte Pakete installieren 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 # 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 echo "🌍 Waterfox wird installiert..." 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 https://download.opensuse.org/repositories/home:/hawkeye116477:/waterfox/Debian_12/ /' | sudo tee /etc/apt/sources.list.d/home:hawkeye116477:waterfox.list +echo 'deb http://download.opensuse.org/repositories/home:/hawkeye116477:/waterfox/xUbuntu_24.04/ /' | 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 diff --git a/9_GamingSetup.sh b/9_GamingSetup.sh index bf12fae..70c038c 100755 --- a/9_GamingSetup.sh +++ b/9_GamingSetup.sh @@ -14,22 +14,6 @@ dpkg --add-architecture i386 apt update apt install -y wget curl -wget -O /tmp/steam.deb https://cdn.akamai.steamstatic.com/client/installer/steam.deb -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 "$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 +apt install -y steam lutris echo "✅ Installation von Steam und Lutris abgeschlossen!" diff --git a/README.md b/README.md index a39b240..f975e5b 100644 --- a/README.md +++ b/README.md @@ -5,7 +5,8 @@ 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. -**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