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)
微信
支付宝