Update debian/nvidia-drivers.sh
This commit is contained in:
parent
8fb6566ccd
commit
5a8f2ad619
1 changed files with 8 additions and 1 deletions
|
@ -1,10 +1,17 @@
|
||||||
#!/usr/bin/env sh
|
#!/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
|
apt install -y dirmngr ca-certificates software-properties-common apt-transport-https dkms curl
|
||||||
|
|
||||||
|
# Remove all old nvidia Drivers
|
||||||
apt autoremove nvidia* --purge
|
apt autoremove nvidia* --purge
|
||||||
|
|
||||||
|
|
||||||
# Installs GPG-Keys
|
# 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
|
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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue