Update debian/nvidia-drivers.sh

This commit is contained in:
ahoemann 2025-05-09 14:19:03 +02:00
parent 8fb6566ccd
commit 5a8f2ad619

View file

@ -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