CentOS 7
Sponsored Link

Install NVIDIA Graphic Driver2018/01/28

 
If your Computer has NVIDIA Graphic cards, Install NVIDIA Graphic Driver to improve Graphics related performance.
If you would update kernel like [yum update kernel], it needs to update Graphic Driver again, too.
[1]
If you are using Desktop Environment, change to CUI, refer to here. It's OK to fall back to GUI after finishing setting up Graphic Driver.
[2] Disable nouveau driver which is loaded by default as general graphic driver.
[root@dlp ~]#
lsmod | grep nouveau

nouveau              1622010  1
video                  24520  1 nouveau
mxm_wmi                13021  1 nouveau
wmi                    19070  2 mxm_wmi,nouveau
i2c_algo_bit           13413  1 nouveau
drm_kms_helper        159169  1 nouveau
ttm                    99345  1 nouveau
drm                   370825  4 ttm,drm_kms_helper,nouveau
i2c_core               40756  5 drm,i2c_i801,drm_kms_helper,i2c_algo_bit,nouveau

[root@dlp ~]#
vi /etc/modprobe.d/blacklist-nouveau.conf
# add to the end (create new if it does not exist)

blacklist nouveau
options nouveau modeset=0
[root@dlp ~]#
dracut --force
[root@dlp ~]#
reboot
[3] Install required packages.
[root@dlp ~]#
yum -y install kernel-devel-$(uname -r) kernel-header-$(uname -r) gcc make
[4] Download Graphic Driver for your Computer from NVIDIA site.
⇒ https://www.nvidia.com/Download/index.aspx?lang=en
# confirm the cards on your computer

[root@dlp ~]#
lspci | grep VGA

03:00.0 VGA compatible controller: NVIDIA Corporation GP106 [GeForce GTX 1060 6GB] (rev a1)
# run the installer which you downloaded

[root@dlp ~]#
bash NVIDIA-Linux-x86_64-384.111.run

Verifying archive integrity... OK
Uncompressing NVIDIA Accelerated Graphics Driver for Linux-x86_64 384.111

  NVIDIA Accelerated Graphics Driver for Linux-x86_64 (384.111)


  Please read the following LICENSE and then select either "Accept" to 
  accept the license and continue with the
  installation, or select "Do Not Accept" to abort the installation.

  # agree to terms of use and select [Accept]
         Accept                              Do Not Accept

            License For Customer Use of NVIDIA Software


 IMPORTANT NOTICE -- READ CAREFULLY: This License For Customer Use of
 NVIDIA Software ("LICENSE") is the agreement which governs use of
 the software of NVIDIA Corporation and its subsidiaries ("NVIDIA")
 downloadable herefrom, including computer software and associated
 printed materials ("SOFTWARE").  By downloading, installing, copying,
 or otherwise using the SOFTWARE, you agree to be bound by the terms
 of this LICENSE.  If you do not agree to the terms of this LICENSE,
 do not download the SOFTWARE.

 RECITALS

 Use of NVIDIA's products requires three elements: the SOFTWARE, the
 hardware on a graphics controller board, and a personal computer. The
 SOFTWARE is protected by copyright laws and international copyright
 treaties, as well as other intellectual property laws and treaties.
 The SOFTWARE is not sold, and instead is only licensed for use,
 strictly in accordance with this document.  The hardware is protected
 by various patents, and is sold, but this agreement does not cover
 that sale, since it may not necessarily be sold as a package with
 the SOFTWARE.  This agreement sets forth the terms and conditions
 of the SOFTWARE LICENSE only.

 1.  DEFINITIONS

 1.1  Customer.  Customer means the entity or individual that
 downloads the SOFTWARE.

.....
.....

  Install NVIDIA's 32-bit compatibility libraries?
  # select [Yes] on here
     Yes                                    No


  Would you like to run the nvidia-xconfig utility to automatically update 
  your X configuration file so that the
  NVIDIA X driver will be used when you restart X?  Any pre-existing X configuration 
  file will be backed up.
  # select [Yes] on here
     Yes                                    No


  Your X configuration file has been successfully updated.  Installation of the NVIDIA 
  Accelerated Graphics Driver for
  Linux-x86_64 (version: 384.111) is now complete.

                        OK

# verify installation to show Graphic cards' status

[root@dlp ~]#
nvidia-smi

Mon Jan 27 11:07:28 2018
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 384.111                Driver Version: 384.111                   |
|-------------------------------+----------------------+----------------------+
| GPU  Name        Persistence-M| Bus-Id        Disp.A | Volatile Uncorr. ECC |
| Fan  Temp  Perf  Pwr:Usage/Cap|         Memory-Usage | GPU-Util  Compute M. |
|===============================+======================+======================|
|   0  GeForce GTX 106...  Off  | 00000000:03:00.0 Off |                  N/A |
|  1%   50C    P0    15W / 120W |      0MiB /  6072MiB |      0%      Default |
+-------------------------------+----------------------+----------------------+

+-----------------------------------------------------------------------------+
| Processes:                                                       GPU Memory |
|  GPU       PID   Type   Process name                             Usage      |
|=============================================================================|
|  No running processes found                                                 |
+-----------------------------------------------------------------------------+
Matched Content