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.bak
1
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