Ubuntu 18.04 install the latest NVIDIA drivers

Ubuntu 18.04 Ubuntu 20.04 before the last LTS version, suitable for long-term use, but Curry is not the latest N card driver, if you need to use CUDA you have installed the relevant drivers

Installation steps as follows

1, the open-source driving shield nouveau

sudo gedit /etc/modprobe.d/blacklist.conf

Files added at the end of two lines: 

new blacklist

new options modeset = 0

then

sudo update-initramfs -u

reboot

2, in NVIDIA official website to download the latest drivers for, is .run file format

Use Ctrl + Alt + F4 to enter tty4

sudo apt --purge remove nvidia * (NVIDIA driver installation is too)

sudo apt install build-essential (if not installed gcc)

sudo service lightdm stop

sudo chmod a+x NVIDIA-Linux-x86_64-XXX.run

sudo ./NVIDIA-Linux-x86_64-XXX.run -no-opengl-files (all the way to default)

3, restart, use the following command to test

nvidia-smi


final effect


17126506-96c3684928e3232d.png
Renderings


Now there is still the problem

First, screen tearing issues, you can refer to this

Second nvidia-settings can not be started, not yet resolved

Reproduced in: https: //www.jianshu.com/p/ca30ee4774f5

Guess you like

Origin blog.csdn.net/weixin_33721344/article/details/91057011