-
Notifications
You must be signed in to change notification settings - Fork 0
/
Cuda-install-drivers-nvidia.sh
36 lines (34 loc) · 1.09 KB
/
Cuda-install-drivers-nvidia.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#! /bin/bash
cd Documents/
mkdir projetos
cd projetos
wget http://developer.download.nvidia.com/compute/cuda/11.0.2/local_installers/cuda_11.0.2_450.51.05_linux.run
sudo apt-get install build-essential
sudo nano /etc/modprobe.d/nivida-graphics-drivers.conf
#adicionar no conf
blacklist nouveau
options nouveau modeset=0
wget https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git/tree/rtl_nic/rtl8125a-3.fw
wget https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git/tree/rtl_nic/rtl8168fp-3.fw
sudo cp *.fw /lib/firmware/rtl_nic/
sudo update-initramfs -u
sudo reboot
sudo sh cuda_11.0.2_450.51.05_linux.run
cat <<EOF | sudo tee /usr/share/X11/xorg.conf.d/80-nvidia.conf
Section "Device"
Identifier "Device0"
Driver "nvidia"
VendorName "NVIDIA Corporation"
Option "RegistryDwords" "EnableBrightnessControl=1"
EndSection
EOF
ls
tar -xvf cudnn-11.0-linux-x64-v8.0.5.39.tgz
sudo cp cudnn-*-archive/include/cudnn*.h /usr/local/cuda/include
ls
cd cuda/
ls
sudo cp cudnn-*-archive/include/cudnn*.h /usr/local/cuda/include
sudo apt-get install zlib1g
ls
cd ~/