Install the nvidia graphics card driver in CentOS 6.5

Source: Internet
Author: User

Install the nvidia graphics card driver in CentOS 6.5

Install the nvidia graphics card driver in CentOS 6.5.

Tools/Raw Materials
  • NVIDIA driver

Installation preparation
  1. 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. 2

    Install the compiling environment: gcc, kernel-devel, and kernel-headers

    [Root @ localhost ~] # Yum-y install gcc kernel-devel kernel-headers

  3. 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. 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. 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. 6

    Restart

    [Root @ localhost ~] # Reboot now

    END
Install the NVIDIA driver
  1. 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

  2. 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.

  3. 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 :"

  4. 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
  • Remember not to place the downloaded driver in a path with Chinese characters


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.