[普通]centos nvidia 驱动安装

作者(passion) 阅读(1373次) 评论(0) 分类( 软件)

lspci | grep -i vga


systemctl get-default 



通过以上显示,目前系统为命令行模式


更改模式命令:

systemctl set-default graphical.target由命令行模式更改为图形界面模式


systemctl set-default multi-user.target由图形界面模式更改为命令行模式






ERROR: The Nouveau kernel driver is currently in use by your system. This  driver is incompatible with the NVIDIA driver, and must be disabled before proceeding.


Please consult the NVIDIA driver README and your Linux distribution's documentation


 for details on how to correctly  disable the Nouveau kernel driver.




解决办法:


关闭Nouveau


[root@localhost~]# cd /etc/modprobe.d


如果没有blacklist.conf文件,则需要创建


[root@localhostmodprobe.d]# touch blacklist.conf


编辑blacklist.conf文件,在其中添加blacklist nouveau


[root@localhostmodprobe.d]# gedit blacklist.conf


使用dracut重新建立 initramfs image file


[root@localhostmodprobe.d]# sudo mv /boot/initramfs-$(uname -r).img /boot/initramfs-$(uname -r).img.bak


重新建立the initramfs file


[root@localhostmodprobe.d]# sudo dracut -v /boot/initramfs-$(uname -r).img $(uname -r)


« 上一篇:wifi共享上网(至尊版wifi)
« 下一篇:gcc 7.3.0编译
在这里写下您精彩的评论
  • 微信

  • QQ

  • 支付宝

返回首页
返回首页 img
返回顶部~
返回顶部 img