Install driver on the graphics card in Ubuntu

Source: Internet
Author: User

Install the Ubuntu graphics card driver

NVIDIA graphics card:
Source Installation
$ Sudo gedit/etc/APT/sources. List
Add a row
Deb http://nvidia.limitless.lupine.me.uk/ubuntu edgy stable-9631
$ Sudo apt-Get update
$ Wget http://nvidia.limitless.lupine.me.uk/ubuntu/root@lupine.me.uk.gpg-o-| sudo apt-key add-
$ Sudo apt-Get install NVIDIA-Glx-d
$ Sudo apt-Get install NVIDIA-Glx
The conversion is as follows:
Install the NVIDIA official graphics card driver manually on Ubuntu
The following method is to manually compile and install the driver. If you want to train your skills, try it:
• Go To The http://www.nvidia.com/download the corresponding 32/64-bit version of the driver, placed in the main folder, easy to call.
• Delete the original driver (if you have installed the NVIDIA-Glx driver in the source, you can skip this step if you have manually installed the driver ):
Sudo apt-Get -- purge remove NVIDIA-Glx
Then use the original Xorg. conf backup to restore the X settings.
Sudo CP/etc/X11/Xorg. conf. Backup/etc/X11/Xorg. conf
Restart. Make sure the instance is started normally.
• Install the compiling environment and the preliminary steps:
Install the header file and compiling environment
Sudo apt-Get install linux-headers-$ (uname-R) Build-essential
Edgy has installed the latest GCC. If no GCC is installed, install it on your own.
Gksudo gedit/etc/default/Linux-restricted-modules-common
Add the Nv word to the last double quotation mark ("NV"
• Prevents startup x failure
Sudo CP/etc/X11/Xorg. CONF/etc/X11/Xorg. conf. mybackup
If X fails to be started, use sudo CP/etc/X11/Xorg. conf. mybackup/etc/X11/Xorg. conf
And then start
• The following are the key points for retaining data on the network. I have not installed Multiple machines. If not, I can try it (but it will delete the restricted data ).
Module, causing some other hardware to be unavailable): [not tested]
Sudo apt-Get -- purge remove NVIDIA-settings NVIDIA-kernel-common
Sudo RM/etc/init. d/NVIDIA -*
• Start installation (if you have manually installed the Nv driver, you can choose to uninstall the old version of the driver during installation ):
Take out a piece of paper and a pen and record the command, because we have to install it in a pure terminal.
After logging out, press CTRL + ALT + F1. After logging on, disable
Sudo/etc/init. d/gestation stop
Then start the installation (assuming that the downloaded file is in the home root directory)
Sudo sh NVIDIA-Linux-x86-1.0-9631-pkg1.run
If you download a 64-bit driver
Sudo sh NVIDIA-Linux-x86_64-1.0-9629-pkg1.run
After entering the installation interface, first accept the protocol and select "accept ". You may be prompted that the old driver has been installed
Whether you have manually installed the software on your own). If you want to delete the software, select YES. Generally, you will be prompted that the module is missing.
No online download, select "no", prompt to compile the module by yourself, select "OK", then start compilation and installation, and finally
The system prompts you to modify Xorg. conf, whether to allow, select Yes, finish installation, and select OK. Then return to the terminal interface,
Restart the target machine
Sudo/etc/init. d/gestation start
Or simply restart the system.
Now you can restart and try whether the driver is installed. Program -System Tools-nvidia x Server
The driver information is displayed in setting.
Tip: after each kernel update, you must reinstall the Nv driver! Repeat the steps at 5th.
Delete NVIDIA flag
• If you do not want to display the NVIDIA logo before starting the interface, you need to manually edit your Xorg configuration file.
• Select the applications menu at the top of the screen, and then select accessories attachment and terminal.
Run the following command:
Sudo gedit/etc/X11/Xorg. conf
Find the line where "NVIDIA" is located in the device section and add
Option "nologo"
Save the file and exit. Restart X.
Note:
My geforce4 mx440 agp8x graphics card,
1.0-9746 drivers are no longer supported and need to be used
1.0-96xx driver, that is, 1.0-9631
• The disadvantage of the third and fourth methods is that after each kernel-related package is updated (Linux-image or
Restricted-module, etc.), you need to re-install the graphics card driver
ATI graphics card:
[1] Do not use apt-get to install the driver. Go to the ATI official website to download the latest for Linux driver.
Name rule is fglrx-6-8-0_8.14.13-2_i386.rpm
[2] install GCC and kernel-header. In the subsequent installation process, you must:
Apt-Get install gcc
Sudo apt-Get install linux-kernel-Header
(The specific kernel version number is the same as that in your use)
[3] converting the RPM package driver into a deb package
Sudo dpkg-I -- force-overwrite fglrx-6-8-0_8.14.13-2_i386.deb
[4] The subsequent work must be completed on the Character interface, using CTRL + ALT + F1
Sudo sh/lib/modules/fglrx/build_mod/make. Sh
[5] after the previous command is complete, if it is normal, a prompt will be prompted to run the next command. If there is an error prompt, Please carefully read it
Check the prompt. In most cases, a package is missing. You can install it.
Sudo sh/lib/modules/fglrx/make_install.sh
[6] After the preceding commands, the installation is complete, but you still need to configure the driver. This step is
Required
Fglrxconfig
In the configuration process, do not blindly click Next, carefully view every option, when to the vertical and horizontal update rate (hsync
(Horizontal sync) and vsync (vertical sync) options, enter the update rate range. Specific value Parameters
Depending on the product specifications of the monitor, or view the original Xorg. conf file.
[7] install and configure the driver. Next we need to verify whether the driver is effective
Glxinfo
Check whether "direct rendering: yes" exists in the feedback. If yes, it indicates hardware 3D acceleration.
It is in use.
Glxgears
This command monitors the number of frames when the video card runs a 3D program. You can run the video card driver before and after installation.
This applet is used once to monitor whether the 3D acceleration driven by the video card is actually in use.

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.