CentOS 7.5 NVIDIA-1080TI GPU驱动安装

1、yum -y install gcc-c++

2、检测显卡驱动及型号 添加ELPepo源

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

3、安装NVIDIA驱动检测

sudo yum install nvidia-detect

nvidia-detect -v

4、下载对应的驱动

下载地址:https://www.geforce.cn/drivers

wget -r -np -nd https://us.download.nvidia.com/XFree86/Linux-x86_64/410.66/NVIDIA-Linux-x86_64-410.66.run

wget -r -np -nd http://cn.download.nvidia.com/XFree86/Linux-x86_64/410.73/NVIDIA-Linux-x86_64-410.73.run

5、 编辑 /etc/modprobe.d/blacklist.conf ,加入blacklist nouveau 

重新建立initramfs image文件

echo -e "blacklist nouveau\noptions nouveau modeset=0" > /etc/modprobe.d/blacklist.conf

mv /boot/initramfs-$(uname -r).img /boot/initramfs-$(uname -r).img.bak

sudo dracut -v /boot/initramfs-$(uname -r).img $(uname -r)

6、在线安装内核

yum install kernel-devel-3.10.0-862.el7.x86_64

7、安装驱动

chmod +x NVIDIA-Linux-x86_64-410.66.run

sh ./NVIDIA-Linux-x86_64-410.66.run


评论