1.安装nvidia-detect,用于检查显卡
yum install nvidia-detect
2.运行命令 nvidia-detect -v 返回结果:
[ranlk@ranlk ~]$ nvidia-detect -vProbing for supported NVIDIA devices...
[10de:13bb] NVIDIA Corporation GM107GL
[Quadro K620]This device requires the current 390.67 NVIDIA driver kmod-nvidia
[8086:1912] Intel Corporation HD Graphics 530An Intel display controller was also detected
注意这里的信息 [Quadro K620] 和390.67
下载 NVIDIA-Linux-x86_64-390.67.run
地址 https://www.nvidia.com/object/linux-amd64-display-archive.html
3.安装前的一系列准备工作
yum -y update //若系统很久没跟新,这句可能耗时较长
yum -y groupinstall "GNOME Desktop" "Development Tools"
yum -y install kernel-devel
yum -y install epel-release
yum -y install dkms
4.禁用nouveau
vim /etc/default/grub #在“GRUB_CMDLINE_LINUX”中添加 rd.driver.blacklist=nouveau nouve