Install Nvidia graphics driver in centos7.0: disable TheNouveaukerneldriver
Download the driver from the Nvidia website and go to the text mode to directly run the installation. the following error is displayed:
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.
The solution is as follows:
Disable Nouveau:
1) add the driver to the blacklist:/etc/modprobe. d/blacklist. conf. add the following:
Blacklist nouveau
2) use dracut to recreate the initramfs image file:
* Back up the initramfs file
$ Sudo mv/boot/initramfs-$ (uname-r). img/boot/initramfs-$ (uname-r). img. bak
* Recreate the initramfs file
$ Sudo dracut-v/boot/initramfs-$ (uname-r). img $ (uname-r)
3) restart the system to the text mode. init 3 can modify the/etc/inittab file init 3 to the text mode,
Init 5 is in graphic interface mode. after restart, the text mode is displayed. In fact, the font size is increased, that is, the driver is not loaded, and Nouveau is disabled successfully.
4) Check nouveau driver to ensure it is not loaded!
$ Lsmod | grep nouveau
5) run the installation file
$ Sudo./NVIDIA-Linux-x86_64-195.36.15-pkg2.run
Sh NVIDIA-Linux-x86-275.09.07.run
Summary: At The beginning, yum uodate can directly display The resolution of 1366X768, and The driver is installed, but not The nvidia driver. Therefore, you must exit The graphic interface and disable The Nouveau kernel driver, to complete the installation.