First check whether the video card is installed
Run: glxinfo | grep Rendering
If "direct rendering: yes" is displayed
(If there is no glxinfo, UBUNTU will prompt you to execute the installation command as needed)
1. Download the driver
Http://www.nvidia.com/page/home.html
(This step is also very important. You must find the corresponding graphics driver on the NVIDIA official website.
Run the following command: lspci to view the video card model:)
2. Delete the original driver package
Sudo apt-Get -- purge remove NVIDIA-Glx-New (This step has not been successfully executed. It seems that there is no NVIDIA-Glx-New)
Delete/lib/Linux-restricted-modules/2.6.22-14-generic/From the NVIDIA folder. Here is the built-in driver of the kernel.
Check whether the two files exist,
/Etc/init. d/NVIDIA-Glx
/Etc/init. d/NVIDIA-Kernel
If yes, delete it.
3. Install the required software
Sudo apt-Get install build-essential PKG-config xserver-Xorg-dev Linux-headers-'uname-R'
Install the compilation package.
4. Backup
Sudo CP/etc/default/Linux-restricted-modules-Common/etc/default/linux-restricted-modules-common.backup
Sudo CP/etc/X11/Xorg. CONF/etc/X11/Xorg. conf. Backup
(I don't have these two files in my system. Why?)
5. disable the system from using the default driver.
Sudo gedit/etc/default/Linux-restricted-modules-common
Add NV nvidia_new to the final double quotes to change "" in the file to "NV nvidia_new"
If the previous step is complete, you do not need to perform this step.
(This step does not need to be executed.)
6. Stop the running of the running Agent agent
Sudo/etc/init. d/gestation stop
Press CTRL + ALT + F1 and log on to step 2.
(After entering step 1, when the message "login" is displayed, I entered "root". In order to write less sudo, I found that the kernel was not successfully installed,
After the restart, the non-root user is successfully installed. However, when the system is restarted and re-entered, the taskbar panel disappears,
I can't help playing with me. I started the terminal with CTRL + ALT + T and used the sudo gnome-panel command to retrieve the Panel. However, the function is incomplete. And when I
When the terminal is started in applicaiont, it is like a root user!)
7. Go to the directory where the driver is located (use the LS command to confirm that the file is not in the directory)
Sudo sh NVIDIA-Linux-x86-xx.xx.xx-pkg1.run (The driver downloaded in step 1)
During installation,
If you are prompted to have an old driver, check whether the old driver is deleted. Select Yes;
If the system prompts that the module is missing, check whether the module is downloaded online and select No;
If you are prompted to compile the module, check whether the module is compiled and select OK;
If you are prompted to modify Xorg. conf, check whether yes is allowed;
The next step is to wait for the installation to complete.
8. After the installation is complete, go back to the terminal and restart the device.
Sudo/etc/init. d/MCM restart
Okay. When you see the Nv logo, the installation is successful.
If you really don't want to see the NVIDIA logo, you can modify/etc/X11/Xorg. conf.
Add option "nologo" "true" to section "device"
For example:
Section "device"
Identifier "general display card"
Driver "NVIDIA"
Option "nologo" "true"
Endsection