Summary of installation of Nvidia graphics card driver under CentOS 6

Source: Internet
Author: User

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
  1. [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
  1. # Listingamoduleherepreventsthehotplugscriptsfromloadingit.
  2. # Usuallythat 'dbesothatsomeotherverwillbinditinstead,
  3. # Nomatterwhichdriverhappenstogetprobedfirst. Sometimesuser
  4. # Modetoolscanalsocontroldriverbinding.
  5. #
  6. # Syntax: seemodprobe. conf (5 ).
  7. #
  8. # Watchdogdrivers
  9. Blacklisti8xx_tco
  10. # Framebufferdrivers
  11. Blacklistaty128fb
  12. Blacklistatyfb
  13. Blacklistradeonfb
  14. Blacklisti810fb
  15. Blacklistcirrusfb
  16. Blacklistintelfb
  17. Blacklistkyrofb
  18. Blacklisti2c-matroxfb
  19. Blacklisthgafb
  20. # Blacklistnvidiafb
  21. Blacklistrivafb
  22. Blacklistsavagefb
  23. Blacklistsstfb
  24. Blacklistneofb
  25. Blacklisttridentfb
  26. Blacklisttdfxfb
  27. Blacklistvirgefb
  28. Blacklistvga16fb
  29. Blacklistviafb
  30. Blacklistnouveau
  31. # ISDN-seebugs154799, 159068
  32. Blacklisthisax
  33. Blacklisthisax_fcpcipnp
  34. # Sounddrivers
  35. Blacklistsnd-pcsp
  36. # I/Odynamicconfigurationsupportfors390x (bz #563228)
  37. Blacklistchsc_sch

4. Recreate the initramfs image File

[Plain] view plaincopy
  1. [Root @ localhost ~] # Mv/boot/initramfs-$ (uname-r). img/boot/initramfs-$ (uname-r). img. bak
  2. [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
  1. [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
  1. [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
  1. [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
  1. #./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
  1. #./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.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.