CentOS 8 disable nouveau and install NVIDIA driver

Dowaload driver from
https://www.nvidia.com.tw/Download/index.aspx?lang=tw
( if file name is  NVIDIA-Linux-x86_64-430.50.run)


1. remove nouveau driver
$ su -
$ dnf remove xorg-x11-driver-nouveau*

2. disable grub load module (option)
add
rd.driver.blacklist=nouveau
in /etc/default/grub
GRUB_CMDLINE_LINUX variable

make grub2 config for efi boot or mbr boot

sudo grub2-mkconfig -o /etc/grub2-efi.cfg
sudo grub2-mkconfig -o /etc/grub2.cfg


3. add contents  
# generated by nvidia-installer
blacklist nouveau
options nouveau modeset=0

------------------------------------------------------------------
in
/etc/modprobe.d/nvidia-installer-disable-nouveau.conf

and
/usr/lib/modprobe.d/nvidia-installer-disable-nouveau.conf

4.
chmod 755  NVIDIA-Linux-x86_64-430.50.run
./NVIDIA-Linux-x86_64-430.50.run

5. Follow their(NVIDIA) instruction guide.

6. startx and open terminal
$ nvidia-smi



這個網誌中的熱門文章

取消Excel與word網際網路與網路路徑超連結自動格式

Installing VMware workstation pro on Ubuntu 22.X (Jammy Jellyfish)