„nvidia.sh“ hinzufügen

This commit is contained in:
2021-11-25 07:11:15 +01:00
parent 3010d112f0
commit 11fcd31fe8

26
nvidia.sh Normal file
View File

@@ -0,0 +1,26 @@
# This scrip has to be executed manually with reboots in between
# Set Nvidia Driver version
NV_DRV_V=470.86
apt-get update
apt-get -y install linux-headers-$(uname -r) build-essential libglvnd-dev pkg-config
mkdir -p /tmp/nvidia && cd /tmp/nvidia
wget http://download.nvidia.com/XFree86/Linux-x86_64/${NV_DRV_V}/NVIDIA-Linux-x86_64-${NV_DRV_V}.run
chmod +x NVIDIA-Linux-x86_64-${NV_DRV_V}.run
echo "blacklist nouveau
options nouveau modeset=0" > /etc/modprobe.d/blacklist-nouveau.conf
export PATH=$PATH:/usr/bin:/usr/sbin
update-initramfs -u
systemctl set-default multi-user.target
reboot now
# After the reboot you are in the command line, login as root
cd /tmp/nvidia
./NVIDIA-Linux-x86_64-*.run
# At the installer select "Yes" at "Install 32-bit compatibility libraries" and "Would you
# like to run the nvidia-xconfig utility to automatically update your X configuration"
systemctl set-default graphical.target
rm -rf /tmp/nvidia
reboot now