Install the nvidia graphics card driver for debian

Source: Internet
Author: User
Install the nvidia graphics card driver for debian-Debian Technology for the Linux release. See the following for details. I will share with you my experience in installing the nvidia graphics card driver In debian.

1. Installation Method: Download the official installation package and debian. Both methods have their own advantages. For details, see Andrew's article. The following method is to download the official installation package. This method is applicable to linux distributions.

2. Prepare for installation:

1, download and their own graphics card matching driver, address: http://www.nvidia.com/content/drivers/drivers.asp some old graphics card is no longer supported by this generic version of the driver installation package, such as TNT, TNT2. If you are using this type of graphics, download the legacy GPU driver http://www.nvidia.com/object/unix.html.

In appendix A of the official document, you can check whether the driver you downloaded supports your video card chip.

2. Exit the x environment and enter the character terminal mode.

The installation package cannot be installed in the x window environment. There are many ways to enter character terminals. If you do not have an install for the agent, you can directly log out. For other linux distributions, you can run the vi/etc/inittab command to modify the line id: n: runlevel, change n to 3, and restart.

3. Install the required package

During installation, the installer determines whether a pre-compiled kernel interface is running. If it does not exist, it will be searched on the ftp site of NVIDIA. If it finds a kernel interface that matches your currently running kernel, the program will automatically download it, and connect it to the binary part of the NVIDIA kernel module. If no program is available, a kernel interface will be compiled for you. Therefore, the kernel interface is the intermediate thing connecting the system kernel module and the NVIDIA kernel interface. When you can also compile it by yourself, please refer to Andrew's article for details. Here we let the program compile for us, which requires us to first install the required package for the installation program. If not, a prompt will be prompted during the installation process, and the installation will not continue. The following is the package we need:

Gcc, make, glibc, libc6, and kernel-header.

In debian, I run the aptitude command, find the corresponding package, and install it. Of course, you can also use apt-get.

Make sure that the installed gcc version is the same as the gcc version that compiles the current kernel. Run the following commands respectively:

Cat/proc/version (compile the gcc version of the current kernel)
Gcc-v (gcc version installed)

If the version is different, reinstall gcc to make it the same as the gcc version used to compile the kernel. Similarly, ensure that the kernel-header version is the same as that of the current system kernel.

3. Install the downloaded driver package:

Go to the download directory of the driver installation package and run the following command:
Sh NVIDIA-Linux-x86-1.0-7184-pkg1.run

Here, we use 1.0-7184 as an example. If this is not the case, modify it to the one you downloaded.

4. Modify the XF86Config-4 or xorg. conf file:

Most of this file will appear in the/etc/X11 directory, unless you have not installed x-window. I need to modify it. Find the following line:

Driver "nv"
(Or Driver "vesa ")
To:
Driver "nvidia"

In the Module section, make sure there is the Load "glx" line. Delete the following two rows:

Load "dri"
Load "GLcore"

Now that the nvidia graphics card driver is ready, you only need to change the/etc/inittab file you just modified to x-window and run startx again. Now you will see a huge nvidia logo.

Nvidia also has many options to set. For details, see Appendix D of the official document.

Well, this article ends, hoping to help new users like me. Please give me more advice and point out the shortcomings.
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.