方方长长

方方长长

Installing Graphics Card Driver on CentOS

Disable the built-in Nouveau graphics card driver.

Modify the configuration file using the vim editor as follows:#

vim /lib/modprobe.d/dist-blacklist.conf#

Add the following two lines at the bottom:
blacklist nouveau
options nouveau modeset=0

Comment out the line with nvidiafb.#

blacklist nvidiafb#

Save and exit.
Rebuild the initramfs image kernel.
Backup:
mv /boot/initramfs-$(uname -r).img /boot/initramfs-$(uname -r).img.bak
Rebuild:
dracut /boot/initramfs-$(uname -r).img $(uname -r)

Change the system runlevel to text mode.#

systemctl set-default multi-user.target#

Restart the system.#

reboot#

After the system restarts, log in as the root user in text mode.#

Check if the nouveau graphics card driver has been disabled. If there is no output after executing this command, it means it has been disabled.#

lsmod | grep nouveau#

Make it an executable file.
chmod +x NVIDIA_driver
Install the driver.
./NVIDIA_driver

During the installation process, choose accept. If prompted to modify xorg.conf, choose yes.#

nvidia-smi#

Change the system runlevel to graphical mode.#

systemctl set-default graphical.target#

Restart

reboot#

Loading...
Ownership of this post data is guaranteed by blockchain and smart contracts to the creator alone.