1.添加ELRepo源:
$ sudo rpm --import https://www.elrepo.org/RPM-GPG-KEY-elrepo.org
$ sudo rpm -Uvh http://www.elrepo.org/elrepo-release-7.0-2.el7.elrepo.noarch.rpm
2.安装显卡检查程序:
$ sudo yum install nvidia-detect
3.检测显卡型号,并选择对应的驱动:
$ nvidia-detect -v
Probing for supported NVIDIA devices...
[10de:0def] NVIDIA Corporation GF108M [NVS 5400M]
This device requires the current 361.42 NVIDIA driver kmod-nvidia
根据
nvidia-detect 的输出信息,可以知道显卡的型号,以及要使用的驱动版本 361.42
4.安装显卡驱动:
sudo yum install nvidia-x11-drv
5.重启
[原文网址]http://seisman.info/install-nvidia-drivers-under-linux.html