Alienware15 install the latest Nvidia graphics driver on Ubuntu18.04

Brief introduction

Today, suddenly think of it, hold drive for their Alien notebook. Later began using a laptop partial point cloud processing, desktop or holding uncomfortable.
Ado. Currently installed encountered two pit. One is close Nouveau, the other is about 32 error associated libraries. Now the record about solutions.

Driver Installation

Method 1: Using PPA automated storage installation, the following steps.

Step 1: Add ppa: graphics-drivers / ppa repository to your system

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

Step2: identify and get your recommended NVIDIA drivers

$ ubuntu-drivers devices
== /sys/devices/pci0000:00/0000:00:01.0/0000:01:00.0 ==
modalias : pci:v000010DEd000013D9sv00001028sd00000685bc03sc02i00
vendor   : NVIDIA Corporation
model    : GM204M [GeForce GTX 965M]
manual_install: True
driver   : nvidia-driver-415 - third-party free
driver   : nvidia-driver-390 - distro non-free
driver   : nvidia-driver-396 - third-party free
driver   : nvidia-driver-410 - third-party free
driver   : nvidia-driver-418 - third-party free
driver   : nvidia-driver-430 - third-party free recommended
driver   : xserver-xorg-video-nouveau - distro free builtin

Step3: automatic installation of dependencies

$ sudo ubuntu-drivers autoinstall

Step4: The Recommended install the corresponding drivers

$ sudo apt-get install nvidia-driver-430

Step5: Reboot

$ sudo reboot

Second way: manual installation

Step1: Get your computer-driven models

$  lshw -numeric -C display
或者
$ lspci -vnn | grep VGA

Step2: go to the official website to download the corresponding driver

As shown below:
Choose the corresponding card type
Click to search

Step3: Installation

$ sudo ./NVIDIA-Linux-x86_64-430.34.run

You may encounter pits

1 system Nouveau default, this thing is installed by default on each system, although not as NVIDIA's driver, but it does allow machines with discrete graphics have good results, manufacturers are installed by default.

ERROR: The Nouveau kernel driver is currently in use by your system.  This driver is incompatible with the NVIDIA driver, and must be disabled before proceeding.  Please consult the NVIDIA driver README and  
         your Linux distribution's documentation for details on how to correctly disable the Nouveau kernel driver.

Solutions are as follows:

Step1: Close Nouveau
$ sudo vim /etc/modprobe.d/blacklist.conf
在文件末尾添加下面两句:
blacklist nouveau
options nouveau modeset=0
Step2: update configuration can restart
$ sudo update-initramfs -u
$ sudo reboot

Question 2: This may appear in the manual installation process, can be ignored, but if for some games to install the driver must be installed on the platform, the solution is as follows.

WARNING: Unable to find suitable destination to install 32-bit compatibility libraries

Step 1:

$ sudo dpkg --add-architecture i386
$ sudo apt update
$ sudo apt install libc6:i386

Step2: loaded once again

$ sudo ./NVIDIA-Linux-x86_64-430.34.run

postscript

Unconsciously, already entered CSDN5年了, a little ashamed, write something relatively small, recently finally finished the exam, I would like to sink in mind to do some research, multiple-output some quality articles, and share together, progress together.
Have any questions please contact, the soul is always interesting encounter.
[. 1]: https://linuxconfig.org/how-to-install-the-nvidia-drivers-on-ubuntu-18-04-bionic-beaver-linux

Guess you like

Origin blog.csdn.net/ckkboy/article/details/97000276