Ubuntu driver installation------official guide version

Ubuntu driver installation------official guide version

foreword

After reading a lot of tutorials, but without success, I finally refer to the official tutorial and get it right in one step. The original tutorial is in English , and three methods are proposed. I use the first method, which is the simplest and most recommended. The third method is the most complicated. Many Chinese tutorials use some of the third method. Steps and methods one or two sutures. The following is a simple translation of the original English content for your convenience

method one

Step 1: Use the following commands to determine the graphics card model and recommended driver version

 $ ubuntu-drivers devices
== /sys/devices/pci0000:00/0000:00:01.0/0000:01:00.0 ==
modalias : pci:v000010DEd00001180sv00001458sd0000353Cbc03sc00i00
vendor   : NVIDIA Corporation
model    : GP106 [GeForce GTX 1060 6GB]
driver   : nvidia-304 - distro non-free
driver   : nvidia-340 - distro non-free
driver   : nvidia-390 - distro non-free recommended
driver   : xserver-xorg-video-nouveau - distro free builtin

== cpu-microcode.py ==
driver   : intel-microcode - distro free

From the output above, we can see that the current graphics card model is GTX 1060, and the recommended driver version is 390

Step 2: Automatically install the recommended version of the driver:

$ sudo ubuntu-drivers autoinstall

Or install the specified version of the driver

$ sudo apt install nvidia-340

Step 3: Wait for the installation to end, then restart the system, and use nvidia-smi to confirm whether the installation is successful

Method Two

Step 1: Add the PPA library

$ sudo add-apt-repository ppa:graphics-drivers/ppa
$ sudo apt update

Step 2: Determine the graphics card model and recommended driver version

$ ubuntu-drivers devices
== /sys/devices/pci0000:00/0000:00:01.0/0000:01:00.0 ==
modalias : pci:v000010DEd00001C03sv00001043sd000085ABbc03sc00i00
vendor   : NVIDIA Corporation
model    : GP106 [GeForce GTX 1060 6GB]
driver   : nvidia-driver-390 - third-party free
driver   : nvidia-driver-410 - third-party free recommended
driver   : nvidia-driver-396 - third-party free
driver   : xserver-xorg-video-nouveau - distro free builtin

The third and fourth steps: the same as the second and third steps of method 1

method three

Installing by downloading the driver file locally is too complicated and will not be described in detail. For those who are interested, please refer to the reference materials for details. In method three, the operation of disabling the default nouveau driver appeared , method one and method two do not need

References

[1]: Install NVIDIA drivers on Ubuntu 18.04

Guess you like

Origin blog.csdn.net/qq_42811827/article/details/125026311