Install the nvidia graphics card driver in CentOS 6.5
Install the nvidia graphics card driver in CentOS 6.5.
Tools/Raw Materials
Installation preparation
- 1
Download the driver from the official website according to the specific models of nvidia graphics card, my is NVIDIA-Linux-x86-331.20.run
Http://www.geforce.cn/drivers
- 2
Install the compiling environment: gcc, kernel-devel, and kernel-headers
[Root @ localhost ~] # Yum-y install gcc kernel-devel kernel-headers
- 3
Modify the/etc/modprobe. d/blacklist. conf file to prevent nouveau module from being loaded.
Method: Add blacklist nouveau and comment out blacklist nvidiafb.
The modified content is as follows:
#
# Listing a module here prevents the hotplug scripts from loading it.
# Usually that 'd be so that some other driver will bind it instead,
# No matter which driver happens to get probed first. Sometimes user
# Mode tools can also control driver binding.
#
# Syntax: see modprobe. conf (5 ).
#
# Watchdog drivers
Blacklist i8xx_tco
# Framebuffer drivers
Blacklist aty128fb
Blacklist atyfb
Blacklist radeonfb
Blacklist i810fb
Blacklist cirrusfb
Blacklist intelfb
Blacklist kyrofb
Blacklist i2c-matroxfb
Blacklist hgafb
# Blacklist nvidiafb
Blacklist rivafb
Blacklist savagefb
Blacklist sstfb
Blacklist neofb
Blacklist tridentfb
Blacklist tdfxfb
Blacklist virgefb
Blacklist vga16fb
Blacklist viafb
Blacklist nouveau
# ISDN-see bugs 154799,159 068
Blacklist hisax
Blacklist hisax_fcpcipnp
# Sound drivers
Blacklist snd-pcsp
# I/O dynamic configuration support for s390x (bz #563228)
Blacklist chsc_sch
- 4
Recreate the initramfs image File
[Root @ localhost ~] # Mv/boot/initramfs-$ (uname-r). img/boot/initramfs-$ (uname-r). img. bak
[Root @ localhost ~] # Dracut/boot/initramfs-$ (uname-r). img $ (uname-r)
- 5
Modify the/etc/inittab to enable the system to start in init 3 text mode:
Change the last line "id: 5: initdefault:" to "id: 3: initdefault:" (excluding quotation marks)
Note: 5 indicates that the x-window Graphic Interface is entered by default when the system is started, and 3 indicates that the terminal mode is entered by default.
- 6
Restart
[Root @ localhost ~] # Reboot now
END
Install the NVIDIA driver
Enter the root and password to enter the root user mode. Make sure the nouveau kernel driver is not loaded.
[Root @ localhost ~] # Lsmod | grep nouveau
Go to the driver directory and start installation.
[Root @ localhost ~] # Chmod + x NVIDIA-Linux-x86-331.20.run
[Root @ localhost ~] #./NVIDIA-Linux-x86-331.20.run
During installation, Select accept, yes, or OK as prompted to complete installation:
If you are prompted to have an old driver, check whether the old driver is deleted. Select Yes;
If the system prompts that the module is missing, check whether the module is downloaded online and select no;
If you are prompted to compile the module, check whether the module is compiled and select OK;
If you are prompted to modify xorg. conf, check whether Yes is allowed;
The next step is to wait for the installation to complete.
Modify the/etc/inittab to enable the system to enter the init 5 graphical interface mode.
Change the last line "id: 3: initdefault:" to "id: 5: initdefault :"
Restart
[Root @ localhost ~] # Reboot now
After the Nvidia logo is displayed, the installation is successful. After logging on to the system, you can view the nvidia x Server Settings menu in system-preferences. You can view basic information and perform some Settings.
END
Notes