Compile and install the NVIDIA driver in Ubuntu 8.04

Source: Internet
Author: User
Tags driver manager
After multiple installation of Ubuntu 7.10 and multiple installation of the graphics driver 169.07 and 169.09, this method has been successfully installed on several machines near me by 100% (both N cards). The following is a summary:

1. Download the driver (. Run file) and put it in your home directory (/home/<yourname>). Change the name that is easy to knock on (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 driver of the video card. You can simply add/Delete the driver in "Add/delete...". You can also use apt.

3. Uninstall the restricted driver manager and click "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:

Code:
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/should be deleted if there is a hidden. NVIDIA-New-installer.

Code:
CD/lib/Linux-restricted-Modules
Ls-Al
Sudo Rm-RF *
Ls-Al

2)/etc/init. d/NVIDIA-Glx (if any)

Code:
CD/etc/init. d/
Ls-Al
Sudo Rm-rf nvidia-Glx
Ls-Al

3)/etc/init. d/NVIDIA-kernel (if any)

Code:
CD/etc/init. d/
Ls-Al
Sudo Rm-rf nvidia-Kernel
Ls-Al

6. Modify the/etc/default/Linux-restricted-modules-common file.

Code:
Sudo gedit/etc/default/Linux-restricted-modules-common


Put
Change disabled_modules = ""
Disabled_modules = "NV nvidia_new"

And back up/etc/X11/Xorg. conf

Code:
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.

Code:
Sudo/etc/init. d/gestation stop


If the command succeeds, a [OK] prompt will be displayed on the right side.

9. Run the installer

Code:
Sudo sh/home/<yourname>/display. Run


During the installation process, you will first be asked whether to uninstall the installed graphics card driver, yes. If you forget to answer yes, you can answer yes.

10. After the installation is complete, return to the command line, sudo reboot. If it is normal, after the usplash boot screen, you will be able to see the NVIDIA logo.
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

Code:
NVIDIA-settings


To set your video card.

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.