From 755f6d00f43b5e38afa9947481506fa7b3d4060a Mon Sep 17 00:00:00 2001 From: ahoemann Date: Sun, 20 Apr 2025 16:05:27 +0200 Subject: [PATCH 01/13] Update debian/setup-debian.sh --- debian/setup-debian.sh | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/debian/setup-debian.sh b/debian/setup-debian.sh index eca33b7..0b48be4 100644 --- a/debian/setup-debian.sh +++ b/debian/setup-debian.sh @@ -2,14 +2,14 @@ # Add contrib, non-free and non-free-firmware to the sources cat << END_OF_FILE > /etc/apt/sources.list -deb https://deb.debian.org/debian bookworm main contrib non-free non-free-firmware -deb-src https://deb.debian.org/debian bookworm main contrib non-free non-free-firmware +deb https://deb.debian.org/debian trixie main contrib non-free non-free-firmware +deb-src https://deb.debian.org/debian trixie main contrib non-free non-free-firmware -deb https://security.debian.org/debian-security bookworm-security main contrib non-free non-free-firmware -deb-src https://security.debian.org/debian-security bookworm-security main contrib non-free non-free-firmware +deb https://security.debian.org/debian-security trixie-security main contrib non-free non-free-firmware +deb-src https://security.debian.org/debian-security trixie-security main contrib non-free non-free-firmware -deb https://deb.debian.org/debian bookworm-updates main contrib non-free non-free-firmware -deb-src https://deb.debian.org/debian bookworm-updates main contrib non-free non-free-firmware +deb https://deb.debian.org/debian trixie-updates main contrib non-free non-free-firmware +deb-src https://deb.debian.org/debian trixie-updates main contrib non-free non-free-firmware END_OF_FILE # Add multi-arch support From a91163833183a5f0375538d07b6c85acb8d8a5a9 Mon Sep 17 00:00:00 2001 From: ahoemann Date: Sun, 20 Apr 2025 16:06:19 +0200 Subject: [PATCH 02/13] Update debian/setup-debian.sh --- debian/setup-debian.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/debian/setup-debian.sh b/debian/setup-debian.sh index eca33b7..cb1af51 100644 --- a/debian/setup-debian.sh +++ b/debian/setup-debian.sh @@ -22,7 +22,7 @@ apt-get update apt-get upgrade --yes # Installs packages -apt-get install --yes gnome-core gnome-connections gnome-text-editor gnome-disk-utility gnome-passwordsafe gnome-feeds vim curl chromium dropbear dropbear-initramfs steam-installer wine wine64 protontricks pcsx2 openjdk-17-jre flatpak gnome-software-plugin-flatpak git python3 python3-venv qemu-kvm virt-manager nvidia-driver +apt-get install --yes gnome-core gnome-connections gnome-text-editor gnome-disk-utility gnome-passwordsafe gnome-feeds vim curl chromium dropbear dropbear-initramfs steam-installer wine wine64 protontricks pcsx2 openjdk-17-jre flatpak gnome-software-plugin-flatpak git python3 python3-venv qemu-kvm virt-manager nvidia-driver tmux # Install Proton-GE wget -q -O - https://git.adrianux.net/ahoemann/Setup-Scripts/raw/branch/main/proton/proton-ge-setup.sh | bash From a7c11f2a9be5afbd5ad97ce3946173b0bb7df843 Mon Sep 17 00:00:00 2001 From: ahoemann Date: Sun, 20 Apr 2025 21:18:06 +0200 Subject: [PATCH 03/13] Update debian/setup-debian.sh --- debian/setup-debian.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/debian/setup-debian.sh b/debian/setup-debian.sh index cb1af51..e60cd58 100644 --- a/debian/setup-debian.sh +++ b/debian/setup-debian.sh @@ -22,7 +22,7 @@ apt-get update apt-get upgrade --yes # Installs packages -apt-get install --yes gnome-core gnome-connections gnome-text-editor gnome-disk-utility gnome-passwordsafe gnome-feeds vim curl chromium dropbear dropbear-initramfs steam-installer wine wine64 protontricks pcsx2 openjdk-17-jre flatpak gnome-software-plugin-flatpak git python3 python3-venv qemu-kvm virt-manager nvidia-driver tmux +apt-get install --yes gnome-core gnome-connections gnome-text-editor gnome-disk-utility gnome-passwordsafe gnome-feeds vim curl chromium dropbear dropbear-initramfs steam-installer wine wine64 protontricks pcsx2 openjdk-17-jre flatpak gnome-software-plugin-flatpak git python3 python3-venv qemu-kvm virt-manager nvidia-driver tmux apostrophe # Install Proton-GE wget -q -O - https://git.adrianux.net/ahoemann/Setup-Scripts/raw/branch/main/proton/proton-ge-setup.sh | bash From d16875cfb5e10cb517bfdc40f438c05edebcdf25 Mon Sep 17 00:00:00 2001 From: ahoemann Date: Mon, 21 Apr 2025 08:55:27 +0200 Subject: [PATCH 04/13] Update alpine/vps-install-alpine.sh --- alpine/{setup-alpine.sh => vps-install-alpine.sh} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename alpine/{setup-alpine.sh => vps-install-alpine.sh} (100%) diff --git a/alpine/setup-alpine.sh b/alpine/vps-install-alpine.sh similarity index 100% rename from alpine/setup-alpine.sh rename to alpine/vps-install-alpine.sh From 4c104f511b2a68059d1f157527ede050a8e95a93 Mon Sep 17 00:00:00 2001 From: ahoemann Date: Mon, 21 Apr 2025 08:58:04 +0200 Subject: [PATCH 05/13] Update setup-main.sh --- setup-main.sh | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/setup-main.sh b/setup-main.sh index 9e2e395..22a58be 100644 --- a/setup-main.sh +++ b/setup-main.sh @@ -1,12 +1,10 @@ #!/bin/sh -# Incase of pipefail stop the script -set -euo pipefail -if [ $SCRIPT -eq "debian-setup" ]; then +if [ $SCRIPT -eq "setup-ebian" ]; then wget -q -O - https://git.adrianux.net/ahoemann/Setup-Scripts/raw/branch/main/debian/setup-debian.sh | bash -elif [ $SCRIPT -eq "alpine-setup" ]; then - wget -q -O - https://git.adrianux.net/ahoemann/Setup-Scripts/raw/branch/main/alpine/setup-alpine.sh | bash +elif [ $SCRIPT -eq "vps-install-alpine" ]; then + wget -q -O - https://git.adrianux.net/ahoemann/Setup-Scripts/raw/branch/main/alpine/vps-install-alpine.sh | bash else echo $SCRIPT "is an invalid option." exit 1 From 9f8fc3122fee81331a3c98f5d81ee9a257537ab8 Mon Sep 17 00:00:00 2001 From: ahoemann Date: Sat, 26 Apr 2025 10:36:42 +0200 Subject: [PATCH 06/13] Update debian/setup-debian.sh --- debian/setup-debian.sh | 52 +++++++++++++++++++++++++++++++++++++++++- 1 file changed, 51 insertions(+), 1 deletion(-) diff --git a/debian/setup-debian.sh b/debian/setup-debian.sh index e60cd58..8538950 100644 --- a/debian/setup-debian.sh +++ b/debian/setup-debian.sh @@ -1,6 +1,16 @@ #!/usr/bin/env sh +if [ "$EUID" -ne 0 ]; then + echo "Please run as root" + exit +fi + # Add contrib, non-free and non-free-firmware to the sources +echo "INFO: ####################### Add contrib, non-free and non-free-firmware to the sources #######################" +if [ $1 -eq "-i" ];then + echo "INFO: ctrl+c to stop the script" + read -p "Press any key to start the current step..." +fi cat << END_OF_FILE > /etc/apt/sources.list deb https://deb.debian.org/debian bookworm main contrib non-free non-free-firmware deb-src https://deb.debian.org/debian bookworm main contrib non-free non-free-firmware @@ -13,20 +23,60 @@ deb-src https://deb.debian.org/debian bookworm-updates main contrib non-free non END_OF_FILE # Add multi-arch support +echo "INFO: ####################### Add multi-arch support #######################" +if [ $1 -eq "-i" ];then + echo "INFO: ctrl+c to stop the script" + read -p "Press any key to start the current step..." +fi dpkg --add-architecture i386 # Update apt sources +echo "INFO: ####################### Update apt sources #######################" +if [ $1 -eq "-i" ];then + echo "INFO: ctrl+c to stop the script" + read -p "Press any key to start the current step..." +fi apt-get update # Upgrade upgradeable packages +echo "INFO: ####################### Upgrade upgradeable packages #######################" +if [ $1 -eq "-i" ];then + echo "INFO: ctrl+c to stop the script" + read -p "Press any key to start the current step..." +fi apt-get upgrade --yes -# Installs packages +# Install packages +echo "INFO: ####################### Install packages #######################" +if [ $1 -eq "-i" ];then + echo "INFO: ctrl+c to stop the script" + read -p "Press any key to start the current step..." +fi apt-get install --yes gnome-core gnome-connections gnome-text-editor gnome-disk-utility gnome-passwordsafe gnome-feeds vim curl chromium dropbear dropbear-initramfs steam-installer wine wine64 protontricks pcsx2 openjdk-17-jre flatpak gnome-software-plugin-flatpak git python3 python3-venv qemu-kvm virt-manager nvidia-driver tmux apostrophe # Install Proton-GE +echo "INFO: ####################### Install Proton-GE #######################" +if [ $1 -eq "-i" ];then + echo "INFO: ctrl+c to stop the script" + read -p "Press any key to start the current step..." +fi wget -q -O - https://git.adrianux.net/ahoemann/Setup-Scripts/raw/branch/main/proton/proton-ge-setup.sh | bash # Setup Flatpak repo +echo "INFO: ####################### Setup Flatpak repo #######################" +if [ $1 -eq "-i" ];then + echo "INFO: ctrl+c to stop the script" + read -p "Press any key to start the current step..." +fi flatpak remote-add --if-not-exists flathub https://dl.flathub.org/repo/flathub.flatpakrepo flatpak install --assumeyes --noninteractive flathub org.telegram.desktop flathub com.usebottles.bottles +flatpak override --filesystem=host + +# Install NordVPN +echo "INFO: ####################### Install NordVPN #######################" +if [ $1 -eq "-i" ];then + echo "INFO: ctrl+c to stop the script" + read -p "Press any key to start the current step..." +fi +sh <(curl -sSf https://downloads.nordcdn.com/apps/linux/install.sh) + From 7545e3fdd74b2ea01032e0cc5b4f254707986f54 Mon Sep 17 00:00:00 2001 From: ahoemann Date: Sat, 26 Apr 2025 10:45:47 +0200 Subject: [PATCH 07/13] Update debian/setup-debian.sh --- debian/setup-debian.sh | 54 +++++++++++++++++------------------------- 1 file changed, 22 insertions(+), 32 deletions(-) diff --git a/debian/setup-debian.sh b/debian/setup-debian.sh index 8538950..e372aad 100644 --- a/debian/setup-debian.sh +++ b/debian/setup-debian.sh @@ -5,12 +5,16 @@ if [ "$EUID" -ne 0 ]; then exit fi +interactive () { + if [ $1 -eq "-i" ];then + echo "INFO: ctrl+c to stop the script" + read -p "Press any key to start the current step..." + fi +} + # Add contrib, non-free and non-free-firmware to the sources echo "INFO: ####################### Add contrib, non-free and non-free-firmware to the sources #######################" -if [ $1 -eq "-i" ];then - echo "INFO: ctrl+c to stop the script" - read -p "Press any key to start the current step..." -fi +interactive cat << END_OF_FILE > /etc/apt/sources.list deb https://deb.debian.org/debian bookworm main contrib non-free non-free-firmware deb-src https://deb.debian.org/debian bookworm main contrib non-free non-free-firmware @@ -24,59 +28,45 @@ END_OF_FILE # Add multi-arch support echo "INFO: ####################### Add multi-arch support #######################" -if [ $1 -eq "-i" ];then - echo "INFO: ctrl+c to stop the script" - read -p "Press any key to start the current step..." -fi +interactive dpkg --add-architecture i386 # Update apt sources echo "INFO: ####################### Update apt sources #######################" -if [ $1 -eq "-i" ];then - echo "INFO: ctrl+c to stop the script" - read -p "Press any key to start the current step..." -fi +interactive apt-get update # Upgrade upgradeable packages echo "INFO: ####################### Upgrade upgradeable packages #######################" -if [ $1 -eq "-i" ];then - echo "INFO: ctrl+c to stop the script" - read -p "Press any key to start the current step..." -fi +interactive apt-get upgrade --yes # Install packages echo "INFO: ####################### Install packages #######################" -if [ $1 -eq "-i" ];then - echo "INFO: ctrl+c to stop the script" - read -p "Press any key to start the current step..." -fi +interactive apt-get install --yes gnome-core gnome-connections gnome-text-editor gnome-disk-utility gnome-passwordsafe gnome-feeds vim curl chromium dropbear dropbear-initramfs steam-installer wine wine64 protontricks pcsx2 openjdk-17-jre flatpak gnome-software-plugin-flatpak git python3 python3-venv qemu-kvm virt-manager nvidia-driver tmux apostrophe # Install Proton-GE echo "INFO: ####################### Install Proton-GE #######################" -if [ $1 -eq "-i" ];then - echo "INFO: ctrl+c to stop the script" - read -p "Press any key to start the current step..." -fi +interactive wget -q -O - https://git.adrianux.net/ahoemann/Setup-Scripts/raw/branch/main/proton/proton-ge-setup.sh | bash # Setup Flatpak repo echo "INFO: ####################### Setup Flatpak repo #######################" -if [ $1 -eq "-i" ];then - echo "INFO: ctrl+c to stop the script" - read -p "Press any key to start the current step..." -fi +interactive flatpak remote-add --if-not-exists flathub https://dl.flathub.org/repo/flathub.flatpakrepo flatpak install --assumeyes --noninteractive flathub org.telegram.desktop flathub com.usebottles.bottles flatpak override --filesystem=host # Install NordVPN echo "INFO: ####################### Install NordVPN #######################" -if [ $1 -eq "-i" ];then - echo "INFO: ctrl+c to stop the script" - read -p "Press any key to start the current step..." -fi +interactive sh <(curl -sSf https://downloads.nordcdn.com/apps/linux/install.sh) +# Install Internet Archive CLI +echo "INFO: ####################### Install Internet Archive CLI #######################" +interactive +wget https://archive.org/download/ia-pex/ia -o /tmp/ia +chmod +x /tmp/ia +mv /tmp/ia /usr/bin/ia + From f2d05be42d4c4a57c0f1bbfaab0c72bfd2f35920 Mon Sep 17 00:00:00 2001 From: ahoemann Date: Sat, 26 Apr 2025 11:00:51 +0200 Subject: [PATCH 08/13] Update debian/setup-debian.sh --- debian/setup-debian.sh | 155 +++++++++++++++++++++++++---------------- 1 file changed, 96 insertions(+), 59 deletions(-) diff --git a/debian/setup-debian.sh b/debian/setup-debian.sh index e372aad..e2c63a0 100644 --- a/debian/setup-debian.sh +++ b/debian/setup-debian.sh @@ -1,72 +1,109 @@ #!/usr/bin/env sh +$INTERACTION_MODE=0 + +# Check if running as root if [ "$EUID" -ne 0 ]; then echo "Please run as root" exit fi +# Add contrib, non-free and non-free-firmware to the sources +config_sources () { + echo "INFO: ####################### Add contrib, non-free and non-free-firmware to the sources #######################" + interactive + cat << END_OF_FILE > /etc/apt/sources.list + deb https://deb.debian.org/debian bookworm main contrib non-free non-free-firmware + deb-src https://deb.debian.org/debian bookworm main contrib non-free non-free-firmware + + deb https://security.debian.org/debian-security bookworm-security main contrib non-free non-free-firmware + deb-src https://security.debian.org/debian-security bookworm-security main contrib non-free non-free-firmware + + deb https://deb.debian.org/debian bookworm-updates main contrib non-free non-free-firmware + deb-src https://deb.debian.org/debian bookworm-updates main contrib non-free non-free-firmware + END_OF_FILE +} + +# Add multi-arch support +config_multi-arch () { + echo "INFO: ####################### Add multi-arch support #######################" + interactive + dpkg --add-architecture i386 +} + +# Update apt sources +update_sources () { + echo "INFO: ####################### Update apt sources #######################" + interactive + apt-get update +} +# Upgrade upgradeable packages +upgrade_packages () { + echo "INFO: ####################### Upgrade upgradeable packages #######################" + interactive + apt-get upgrade --yes +} + +# Install packages +install_packages () { + echo "INFO: ####################### Install packages #######################" + interactive + apt-get install --yes gnome-core gnome-connections gnome-text-editor gnome-disk-utility gnome-passwordsafe gnome-feeds vim curl chromium dropbear dropbear-initramfs steam-installer wine wine64 protontricks pcsx2 openjdk-17-jre flatpak gnome-software-plugin-flatpak git python3 python3-venv qemu-kvm virt-manager nvidia-driver tmux apostrophe +} +# Install Proton-GE +install_proton-ge () { + echo "INFO: ####################### Install Proton-GE #######################" + interactive + wget -q -O - https://git.adrianux.net/ahoemann/Setup-Scripts/raw/branch/main/proton/proton-ge-setup.sh | bash +} +# Setup Flatpaks +setup_flatpaks () { + echo "INFO: ####################### Setup Flatpak #######################" + interactive + flatpak remote-add --if-not-exists flathub https://dl.flathub.org/repo/flathub.flatpakrepo + flatpak install --assumeyes --noninteractive flathub org.telegram.desktop flathub com.usebottles.bottles + flatpak override --filesystem=host +} +# Install NordVPN +install_nordvpn () { + echo "INFO: ####################### Install NordVPN #######################" + interactive + sh <(curl -sSf https://downloads.nordcdn.com/apps/linux/install.sh) +} +# Install Internet Archive CLI +install_ia-cli () { + echo "INFO: ####################### Install Internet Archive CLI #######################" + interactive + wget https://archive.org/download/ia-pex/ia -o /tmp/ia + chmod +x /tmp/ia + mv /tmp/ia /usr/bin/ia +} + +main () { + config_sources + config_multi-arch + update_sources + upgrade_packages + install_packages + install_proton-ge + setup_flatpaks + install_nordvpn + install_ia-cli +} + +if [ $1 == "-i" ]; then + $INTERACTION_MODE="-i" +elif [ -z $1 ]; then + $1 +else + main +fi + +# Check if running in interactive mode interactive () { - if [ $1 -eq "-i" ];then + if [ $INTERACTION_MODE -eq "-i" ];then echo "INFO: ctrl+c to stop the script" read -p "Press any key to start the current step..." fi } -# Add contrib, non-free and non-free-firmware to the sources -echo "INFO: ####################### Add contrib, non-free and non-free-firmware to the sources #######################" -interactive -cat << END_OF_FILE > /etc/apt/sources.list -deb https://deb.debian.org/debian bookworm main contrib non-free non-free-firmware -deb-src https://deb.debian.org/debian bookworm main contrib non-free non-free-firmware - -deb https://security.debian.org/debian-security bookworm-security main contrib non-free non-free-firmware -deb-src https://security.debian.org/debian-security bookworm-security main contrib non-free non-free-firmware - -deb https://deb.debian.org/debian bookworm-updates main contrib non-free non-free-firmware -deb-src https://deb.debian.org/debian bookworm-updates main contrib non-free non-free-firmware -END_OF_FILE - -# Add multi-arch support -echo "INFO: ####################### Add multi-arch support #######################" -interactive -dpkg --add-architecture i386 - -# Update apt sources -echo "INFO: ####################### Update apt sources #######################" -interactive -apt-get update - -# Upgrade upgradeable packages -echo "INFO: ####################### Upgrade upgradeable packages #######################" -interactive -apt-get upgrade --yes - -# Install packages -echo "INFO: ####################### Install packages #######################" -interactive -apt-get install --yes gnome-core gnome-connections gnome-text-editor gnome-disk-utility gnome-passwordsafe gnome-feeds vim curl chromium dropbear dropbear-initramfs steam-installer wine wine64 protontricks pcsx2 openjdk-17-jre flatpak gnome-software-plugin-flatpak git python3 python3-venv qemu-kvm virt-manager nvidia-driver tmux apostrophe - -# Install Proton-GE -echo "INFO: ####################### Install Proton-GE #######################" -interactive -wget -q -O - https://git.adrianux.net/ahoemann/Setup-Scripts/raw/branch/main/proton/proton-ge-setup.sh | bash - -# Setup Flatpak repo -echo "INFO: ####################### Setup Flatpak repo #######################" -interactive -flatpak remote-add --if-not-exists flathub https://dl.flathub.org/repo/flathub.flatpakrepo -flatpak install --assumeyes --noninteractive flathub org.telegram.desktop flathub com.usebottles.bottles -flatpak override --filesystem=host - -# Install NordVPN -echo "INFO: ####################### Install NordVPN #######################" -interactive -sh <(curl -sSf https://downloads.nordcdn.com/apps/linux/install.sh) - -# Install Internet Archive CLI -echo "INFO: ####################### Install Internet Archive CLI #######################" -interactive -wget https://archive.org/download/ia-pex/ia -o /tmp/ia -chmod +x /tmp/ia -mv /tmp/ia /usr/bin/ia - From 2ce987fc54ce2bbe55484e466f4691be78fce3d8 Mon Sep 17 00:00:00 2001 From: ahoemann Date: Sat, 26 Apr 2025 11:05:08 +0200 Subject: [PATCH 09/13] Update debian/setup-debian.sh --- debian/setup-debian.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/debian/setup-debian.sh b/debian/setup-debian.sh index e2c63a0..0027a52 100644 --- a/debian/setup-debian.sh +++ b/debian/setup-debian.sh @@ -92,7 +92,7 @@ main () { } if [ $1 == "-i" ]; then - $INTERACTION_MODE="-i" + $INTERACTION_MODE="1" elif [ -z $1 ]; then $1 else @@ -101,7 +101,7 @@ fi # Check if running in interactive mode interactive () { - if [ $INTERACTION_MODE -eq "-i" ];then + if [ $INTERACTION_MODE -eq "1" ];then echo "INFO: ctrl+c to stop the script" read -p "Press any key to start the current step..." fi From 8fb6566ccd928c99609f3ed2a72a12f298da9ec3 Mon Sep 17 00:00:00 2001 From: ahoemann Date: Fri, 9 May 2025 14:07:02 +0200 Subject: [PATCH 10/13] Add debian/nvidia-drivers --- debian/nvidia-drivers | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 debian/nvidia-drivers diff --git a/debian/nvidia-drivers b/debian/nvidia-drivers new file mode 100644 index 0000000..b7fbdb3 --- /dev/null +++ b/debian/nvidia-drivers @@ -0,0 +1,15 @@ +#!/usr/bin/env sh + +apt install -y dirmngr ca-certificates software-properties-common apt-transport-https dkms curl + +apt autoremove nvidia* --purge + + +# Installs GPG-Keys +curl -fSsL https://developer.download.nvidia.com/compute/cuda/repos/debian12/x86_64/3bf863cc.pub | sudo gpg --dearmor | sudo tee /usr/share/keyrings/nvidia-drivers.gpg > /dev/null 2>&1 + +# Installs Nvidia Repository +echo 'deb [signed-by=/usr/share/keyrings/nvidia-drivers.gpg] https://developer.download.nvidia.com/compute/cuda/repos/debian12/x86_64/ /' | sudo tee /etc/apt/sources.list.d/nvidia-drivers.list + +# Installs Nvidia Drivers +apt update && apt install nvidia-driver nvidia-smi nvidia-settings \ No newline at end of file From 5a8f2ad619bd453c368b5d938b072f09e2bfcb3e Mon Sep 17 00:00:00 2001 From: ahoemann Date: Fri, 9 May 2025 14:19:03 +0200 Subject: [PATCH 11/13] Update debian/nvidia-drivers.sh --- debian/{nvidia-drivers => nvidia-drivers.sh} | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) rename debian/{nvidia-drivers => nvidia-drivers.sh} (82%) diff --git a/debian/nvidia-drivers b/debian/nvidia-drivers.sh similarity index 82% rename from debian/nvidia-drivers rename to debian/nvidia-drivers.sh index b7fbdb3..85faa78 100644 --- a/debian/nvidia-drivers +++ b/debian/nvidia-drivers.sh @@ -1,10 +1,17 @@ #!/usr/bin/env sh +# Check if running as root +if [ "$EUID" -ne 0 ]; then + echo "Please run as root" + exit +fi + +# Ensure dependencies apt install -y dirmngr ca-certificates software-properties-common apt-transport-https dkms curl +# Remove all old nvidia Drivers apt autoremove nvidia* --purge - # Installs GPG-Keys curl -fSsL https://developer.download.nvidia.com/compute/cuda/repos/debian12/x86_64/3bf863cc.pub | sudo gpg --dearmor | sudo tee /usr/share/keyrings/nvidia-drivers.gpg > /dev/null 2>&1 From 9e01ea10acb07a53c403682e3582a01492270188 Mon Sep 17 00:00:00 2001 From: ahoemann Date: Fri, 9 May 2025 14:21:53 +0200 Subject: [PATCH 12/13] Update debian/nvidia-drivers.sh --- debian/nvidia-drivers.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/debian/nvidia-drivers.sh b/debian/nvidia-drivers.sh index 85faa78..c3acd75 100644 --- a/debian/nvidia-drivers.sh +++ b/debian/nvidia-drivers.sh @@ -16,7 +16,9 @@ apt autoremove nvidia* --purge curl -fSsL https://developer.download.nvidia.com/compute/cuda/repos/debian12/x86_64/3bf863cc.pub | sudo gpg --dearmor | sudo tee /usr/share/keyrings/nvidia-drivers.gpg > /dev/null 2>&1 # Installs Nvidia Repository -echo 'deb [signed-by=/usr/share/keyrings/nvidia-drivers.gpg] https://developer.download.nvidia.com/compute/cuda/repos/debian12/x86_64/ /' | sudo tee /etc/apt/sources.list.d/nvidia-drivers.list +cat << END_OF_FILE > /etc/apt/sources.list.d/nvidia-drivers.list +deb [signed-by=/usr/share/keyrings/nvidia-drivers.gpg] https://developer.download.nvidia.com/compute/cuda/repos/debian12/x86_64/ / +END_OF_FILE # Installs Nvidia Drivers apt update && apt install nvidia-driver nvidia-smi nvidia-settings \ No newline at end of file From 0421bac7402f9726292a34516985018f2b7f87e4 Mon Sep 17 00:00:00 2001 From: ahoemann Date: Fri, 9 May 2025 14:22:49 +0200 Subject: [PATCH 13/13] Update debian/setup-debian.sh --- debian/setup-debian.sh | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/debian/setup-debian.sh b/debian/setup-debian.sh index 0027a52..f06b166 100644 --- a/debian/setup-debian.sh +++ b/debian/setup-debian.sh @@ -22,6 +22,12 @@ config_sources () { deb https://deb.debian.org/debian bookworm-updates main contrib non-free non-free-firmware deb-src https://deb.debian.org/debian bookworm-updates main contrib non-free non-free-firmware END_OF_FILE + + echo "INFO: ####################### Add Element to the sources #######################" + wget -O /usr/share/keyrings/element-io-archive-keyring.gpg https://packages.element.io/debian/element-io-archive-keyring.gpg + cat << END_OF_FILE > /etc/apt/sources.list.d/element-io.list + deb [signed-by=/usr/share/keyrings/element-io-archive-keyring.gpg] https://packages.element.io/debian/ default main + END_OF_FILE } # Add multi-arch support @@ -48,14 +54,16 @@ upgrade_packages () { install_packages () { echo "INFO: ####################### Install packages #######################" interactive - apt-get install --yes gnome-core gnome-connections gnome-text-editor gnome-disk-utility gnome-passwordsafe gnome-feeds vim curl chromium dropbear dropbear-initramfs steam-installer wine wine64 protontricks pcsx2 openjdk-17-jre flatpak gnome-software-plugin-flatpak git python3 python3-venv qemu-kvm virt-manager nvidia-driver tmux apostrophe + apt-get install --yes element-desktop gnome-core gnome-connections gnome-text-editor gnome-disk-utility gnome-passwordsafe gnome-feeds vim curl chromium dropbear dropbear-initramfs steam-installer wine wine64 protontricks pcsx2 openjdk-17-jre flatpak gnome-software-plugin-flatpak git python3 python3-venv qemu-kvm virt-manager tmux apostrophe } + # Install Proton-GE install_proton-ge () { echo "INFO: ####################### Install Proton-GE #######################" interactive wget -q -O - https://git.adrianux.net/ahoemann/Setup-Scripts/raw/branch/main/proton/proton-ge-setup.sh | bash } + # Setup Flatpaks setup_flatpaks () { echo "INFO: ####################### Setup Flatpak #######################" @@ -64,6 +72,7 @@ setup_flatpaks () { flatpak install --assumeyes --noninteractive flathub org.telegram.desktop flathub com.usebottles.bottles flatpak override --filesystem=host } + # Install NordVPN install_nordvpn () { echo "INFO: ####################### Install NordVPN #######################" @@ -107,3 +116,8 @@ interactive () { fi } +if [ -n $(lspci | grep nvidia) ]; then + wget -q -O - https://git.adrianux.net/ahoemann/Setup-Scripts/raw/branch/main/debian/nvidia-drivers.sh | sh + exit +fi +