This article describes how to install the nvidia graphics card driver after ubuntu12.04 is installed.
First, declare the overview of the local machine:
Copy codeThe code is as follows: robinson @ robinson-homepc :~ /Downloads $ uname-
Linux robinson-homepc 3.11.0-15-generic #23 ~ Precise1-Ubuntu SMP Tue Dec 10 16:43:53 UTC 2013 i686 i686 i386 GNU/Linux
The video card is the Nvidia GTX650 that just came out this year. I don't know about it. it should be a built-in driver.
1. download the driver: http://www.nvidia.com/page/drivers.htmlafter download, it is usually put in the download folder like me.
2. uninstall the existing driver sudo apt-get remove -- purge nvidia *
3. click Ctrl + Alt + F1 to go to the first console. enter the user password (if num lock is on, press twice), and then enter the command to close X.
(You may be a little unfamiliar with switching the console. here I provide another solution, that is, using SSH to connect to the local machine, whether you are a Window or another system, this is what I do .)
Copy codeThe code is as follows: robinson @ robinson-homepc :~ /Downloads $ sudo stop TPD (note that generally, the default Ubuntu version is Lighttpd, and the installed version is)
4. run the installation file.
Copy codeThe code is as follows: robinson @ robinson-homepc :~ /Downloads $ sudo./NVIDIA-Linux-x86-331.20.run
Tip: you can first enter sudo sh in the terminal of the graphic interface, drag the run file into it, press enter, and cannot be installed, but this code will be recorded, in the non-graphic interface, you can find it in the direction.
5. after entering the installation interface, first accept the protocol. if you select "accept", you may be prompted that the old driver has been installed (depending on whether you have manually installed the driver) and whether to delete it, select yes. generally, a message is displayed, asking if the module is missing. if you select "no" for online download, you are prompted to compile the module by yourself, select "OK", and then start compiling and installation, finally, you are prompted to modify xorg. conf, whether to allow, select yes, complete the installation, and select OK.
(DKMS is required, because it is required to compile the kernel. when I upgrade the kernel, all the packages are installed, so it comes with DKMS, if a problem occurs during compilation, it may be that DKMS is not installed. When I installed it, I did ask, we need DKMS to compile your kernel module .)
6. start to see the effect.
Copy codeThe code is as follows: robinson @ robinson-homepc :~ /Downloads $ sudo start TPD