Add debian/nvidia-drivers
This commit is contained in:
parent
2ce987fc54
commit
8fb6566ccd
1 changed files with 15 additions and 0 deletions
15
debian/nvidia-drivers
vendored
Normal file
15
debian/nvidia-drivers
vendored
Normal file
|
@ -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
|
Loading…
Add table
Add a link
Reference in a new issue