Summary of installation of Nvidia graphics card driver under CentOS 6
1. Download the driver http://www.geforce.cn/drivers from the official website based on the specific models of nvidia graphics card
Note that the driver file should not be placed in the Chinese directory; otherwise, the directory will not be available in terminal mode.
2. Install the compiling environment: gcc kernel-devel kernel-headers
[Plain] view plaincopy
- [Root @ localhost ~] # Yum-yinstallgcckernel-develkernel-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.
[Plain] view plaincopy
- # Listingamoduleherepreventsthehotplugscriptsfromloadingit.
- # Usuallythat 'dbesothatsomeotherverwillbinditinstead,
- # Nomatterwhichdriverhappenstogetprobedfirst. Sometimesuser
- # Modetoolscanalsocontroldriverbinding.
- #
- # Syntax: seemodprobe. conf (5 ).
- #
- # Watchdogdrivers
- Blacklisti8xx_tco
- # Framebufferdrivers
- Blacklistaty128fb
- Blacklistatyfb
- Blacklistradeonfb
- Blacklisti810fb
- Blacklistcirrusfb
- Blacklistintelfb
- Blacklistkyrofb
- Blacklisti2c-matroxfb
- Blacklisthgafb
- # Blacklistnvidiafb
- Blacklistrivafb
- Blacklistsavagefb
- Blacklistsstfb
- Blacklistneofb
- Blacklisttridentfb
- Blacklisttdfxfb
- Blacklistvirgefb
- Blacklistvga16fb
- Blacklistviafb
- Blacklistnouveau
- # ISDN-seebugs154799, 159068
- Blacklisthisax
- Blacklisthisax_fcpcipnp
- # Sounddrivers
- Blacklistsnd-pcsp
- # I/Odynamicconfigurationsupportfors390x (bz #563228)
- Blacklistchsc_sch
4. Recreate the initramfs image File
[Plain] view plaincopy
- [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 boot into 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
[Plain] view plaincopy
- [Root @ localhost ~] # Rebootnow
7. Enter the root and password to enter the root user mode. Make sure the nouveau kernel driver is not loaded.
[Plain] view plaincopy
- [Root @ localhost ~] # Lsmod | grepnouveau
8. Switch su to the root mode, enter the directory where the driver is located, and start installation.
[Plain] view plaincopy
- [Root @ localhost ~] #./NVIDIA-Linux-x86-331.20.run
Select "accept", "yes", or "OK" as prompted. One of the options is 32-bit. Select "no" here.
An error is reported during installation !! Error: unable to find the kernel source tree for the currently running kernel .........
Replace the preceding statement:
[Plain] view plaincopy
- #./NVIDIA-XXXX.run -- kernel-source-path =/usr/src/kernels/kernel number (2 + Tab key automatically appears)
This error can be solved.
The above error is missing, but the new error is generated: unable to load the kernel module 'nvidia. ko '.........
What should I do ??? Changing. Change the preceding statement:
[Plain] view plaincopy
- #./NVIDIA-XXXX.run -- kernel-source-path =/usr/src/kernels/kernel number-k $ (uname-r)
9. After the installation is complete, modify the/etc/inittab and return to the interface mode.