Install the Nvidia graphics card driver on CentOS

Source: Internet
Author: User

Install the Nvidia graphics card driver on CentOS

When the NVIDIA driver is installed in a newer version, the following error is prompted:

"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."

Nouveau is an open-source project used to replace Nvidia drivers. It has better performance than Nvidia.

To redo the kernel, We need to install the necessary tools:

1 yum groupinstall "Development Tools"

The following dkms package can avoid re-installing the Nvidia driver for each kernel upgrade,

1 yum install kernel-devel kernel-headers dkms

Use the following command to obtain the video card model:

1 lspci | grep VGA

Download the driver at the following URL:

Http://www.nvidia.com/Download/index.aspx

Then add the following statement to/etc/modprobe. d/blacklist. conf.

1 blacklist nouveau

Then execute the following command

1 mv /boot/initramfs- $( uname -r).img /boot/initramfs- $( uname -r).img.bak1 dracut - v /boot/initramfs- $( uname -r).img $( uname -r)

Run the following command to close Xwindow to go to the command line interface and install the Nvidia driver,

(Please read this article before executing the command, because once you execute it, you will not be able to go back to the next command, unless you start Xwindow again)

1 sbin /init 3

Test

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.