天天看點

linux更新n卡驅動,Centos 7 更新 NVIDIA 驅動

linux更新n卡驅動,Centos 7 更新 NVIDIA 驅動

8種機械鍵盤軸體對比

本人程式員,要買一個寫代碼的鍵盤,請問紅軸和茶軸怎麼選?

系統版本CentOS Linux release 7.5.1804 (Core)

Linux localhost.localdomain 3.10.0-862.3.2.el7.x86_64

問題描述

桌上型電腦安裝了Centos,在啟動的時候直接黑屏,然後沒法直接進圖形化界面。

報了如下報錯:nouveau 0000:01:00:0: secboot : error during falcon reset : -110

nouveau 0000:01:00:0: gr : init failed, -110

檢查了下目前的裝置:[[email protected] ~]# lspci | grep -i vga

01:00.0 VGA compatible controller: NVIDIA Corporation GP106 [GeForce GTX 1060 6GB] (rev a1)

[[email protected] ~]# lspci

...

01:00.1 Audio device: NVIDIA Corporation GP106 High Definition Audio Controller (rev a1)

Subsystem: Micro-Star International Co., Ltd. [MSI] Device 8c94

Flags: bus master, fast devsel, latency 0, IRQ 17

Memory at f7080000 (32-bit, non-prefetchable) [size=16K]

Capabilities: [60] Power Management version 3

Capabilities: [68] MSI: Enable- Count=1/1 Maskable- 64bit+

Capabilities: [78] Express Endpoint, MSI 00

Capabilities: [100] Advanced Error Reporting

Kernel driver in use: snd_hda_intel

Kernel modules: snd_hda_intel

...

更新步驟:

1.下載下傳對應的驅動:登入網站:

https://www.nvidia.cn/Download/index.aspx?lang=cn

2.加載EPEL源,安裝DKMS:yum -y install epel-release

yum -y install dkms

3. 更新和安裝需要的包:yum -y update

yum -y install kernel-devel

yum -y groupinstall "GNOME Desktop" "Development Tools"

4. 修改grub檔案:在/etc/default/grub,修改如下行

GRUB_CMDLINE_LINUX="crashkernel=auto rhgb quiet rd.driver.blacklist=nouveau nouveau.modeset=0"

grub2-mkconfig -o /boot/grub2/grub.cfg

注釋nouveau子產品

在/etc/modprobe.d/blacklist.conf檔案内,添加以下内容:

blacklist nouveau

備份舊的initramfs,并且建立新的initramfs

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

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

5. 修改啟動項:需要将啟動項目修改為init3

systemctl isolate multi-user.target

6. 重新開機系統:reboot

7. 安裝驅動:sh NVIDIA-Linux-x86_64-*.run

安裝完成後,重新開機系統

設定啟動後為圖形化界面:

systemctl set-default graphical.target

大功告成~

參考連結:http://www.advancedclustering.com/act_kb/installing-nvidia-drivers-rhel-centos-7/