CentOS 8/ Fedora 30安装Nvidia驱动

启动nvidia源

YUM安装

sudo yum install xorg-x11-drv-nvidia

查找nvidia模块 sudo find / -name nvi*ko | grep -v Permission

签名模块:

sudo /usr/src/kernels/uname -r/scripts/sign-file sha256 ./MOK.priv ./MOK.der $(modinfo -n nvidia)
sudo /usr/src/kernels/uname -r/scripts/sign-file sha256 ./MOK.priv ./MOK.der $(modinfo -n nvidia-uvm)
sudo /usr/src/kernels/uname -r/scripts/sign-file sha256 ./MOK.priv ./MOK.der $(modinfo -n nvidia-drm)
sudo /usr/src/kernels/uname -r/scripts/sign-file sha256 ./MOK.priv ./MOK.der $(modinfo -n nvidia-modeset)

成功截图: