Linux 下安装 NVIDIA 显卡驱动
参考此文整理:http://seisman.info/install-nvidia-drivers-under-linux.html
对centOs用户来说,有两种安装NVIDIA显卡驱动的方法,从ELRepo源中安装或者从源码编译驱动。
1 从ELRope源中安装驱动
1.1 添加ELRope源:
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
1.2 安装显卡检查程序
sudo yum install nvidia-detect
1.3 检测显卡型号
nvidia-detect -v
根据输出信息,安装显卡驱动。
1.4 安装显卡驱动
sudo yum install nvidia-xxx
1.5 安装过程中可能会给出软件冲突的警告,需要卸载以下软件包及其依赖(笔者没有遇到过)
sudo yum remove xorg-x11-glamor
1.6 重启
2 手动编译显卡驱动
(未验证过)
可以参照:http://seisman.info/install-nvidia-drivers-under-linux.html