1.
This command looks at the graphics card model.
Lspci | grep VGA
2.
Check to see if the video driver is installed.
glxinfo| grep Rendering
3.
To HTTP://WWW.NVIDIA.CN/DOWNLOAD/INDEX.ASPX?LANG=CN
Download driven by model
4.
Remove your own nouveau nvidia driver (important! )
sudo apt-get--purge Remove nvidia-*
sudo apt-get--purge Remove Xserver-xorg-video-nouveau
5.
Press Ctrl + Alt +F1 in the graphical interface to enter the TTY1 console
First we need to end the X-window service, otherwise the driver will not install properly
Enter User name password login
Type command: sudo service LIGHTDM stop
6.
4. Then run the installation file
sudo sh file name. Run
After entering the installation interface, first accept the agreement, select "Accept" may have prompted the installation of the old driver (depending on whether you have manually installed), whether to delete, choose Yes is, generally will prompt missing module, ask whether to download online, choose "No", prompted to compile the module, choose "OK", Then compile the installation start, finally prompted to modify the xorg.conf, whether allowed, choose Yes, complete the installation, select OK.
7.
sudo start LIGHTDM
ubuntu12.04 nvidia driver installation