NVIDIA graphics card driver compilation and Installation Guide

Source: Internet
Author: User
Tags driver manager
Article Title: NVIDIA graphics card driver compilation and Installation Guide. Linux is a technology channel of the IT lab in China. Including desktop applications, Linux system management, kernel research, embedded systems and open source, and other basic categories 1. Download Driver (. Run file), put it in your home directory (/home/), and change the name (for example, display. run)
 
There are a lot of download places, and nVidia's own website can be used, but I prefer to use mydrivers.com. When extracting the package, make sure that there is no error in the file.
 
2. Uninstall all restricted drivers of the video card. In "Add/delete ......" You can also use apt.
 
3. Uninstall the restricted driver manager and go to "Add/delete ......" You can also use apt. The restricted driver manager often causes trouble in compiling and installing drivers. If you do not want to use the driver in the source but use the driver compiled by yourself, you can simply delete it.
 
4. installation:
 
Sudo apt-get install libc6-dev
 
Sudo apt-get install gcc +
 
Sudo apt-get install build-essential pkg-config xserver-xorg-dev linux-headers-'uname-R'
 
If apt is not found, go to the wiki to find the Quick Setting guide to add cn99 or other sources.
 
5. delete things that may affect installation. Here, I would like to remind you to develop a good habit. before deleting something, do not be too troublesome. It is best to first cd into the Directory and then rm, in case that the rm command has not been completed before the press enter, the trouble is very high. For an extreme example (sudo rm-rf/), never knock it out.
 
1) content in/lib/linux-restricted-modules/, if hidden. Nvidia-new-installer should also be deleted
 
Cd/lib/linux-restricted-modules
 
Ls-al
 
Sudo rm-rf *
 
Ls-al
 
2)/etc/init. d/nvidia-glx (if any)
 
Cd/etc/init. d/
 
Ls-al
 
Sudo rm-rf nvidia-glx
 
Ls-al
 
3)/etc/init. d/nvidia-kernel (if any)
 
Cd/etc/init. d/
 
Ls-al
 
Sudo rm-rf nvidia-kernel
 
Ls-al
 
6. Modify the/etc/default/linux-restricted-modules-common file.
 
Sudo gedit/etc/default/linux-restricted-modules-common
 
Put
 
Change DISABLED_MODULES = ""
 
DISABLED_MODULES = "nv nvidia_new"
 
And back up/etc/X11/xorg. conf
 
Sudo cp/etc/X11/xorg. conf/etc/X11/xorg. conf. before
 
7. Make sure that all preparations are complete. After the installation is complete, press Ctrl + Alt + F2 to enter the command line. We recommend that you use root to access the system. The initial account can also be installed successfully.
 
8. Disable Gnome.
 
Sudo/etc/init. d/gestation stop
 
If the command succeeds, a [OK] prompt will be displayed on the right side.
 
9. Run the installer
 
Sudo sh/home // display. run
 
During the installation process, you will first be asked whether to uninstall the installed video card driver. YES. If you forget to answer YES, you can answer YES.
 
10. After the installation is complete, return to the command line. If sudo reboot is normal, you will be able to see the nVidia logo after the usplash startup screen.
 
If you do not want to see the nVidia startup flag, modify xorg. conf and add a line in Section "Device:
 
Option "NoLogo"
 
Then, you will not see the nVidia logo.
 
11. After Entering Gnome, you can enter
 
Nvidia-settings
 
To set your video card.
 
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.