The best thing you can do is just use the drivers in the repository by going to System -> Administration -> Hardware Drivers
Second best is to install Envy,
Code:
sudo apt-get install envyng-gtk
and subsequently install the drivers through the menu Applications -> System Tools -> EnvyNG
If you must use the drivers from nVidia, which aren't supported or tested by Canonical, you can, but it's not easy!
Prepare to compile by getting the necessary packages: (Note, all lines are separate commands and they are case sensitive!)
Code:
sudo apt-get update
sudo apt-get install gcc xserver-xorg-dev build-essential linux-headers-`uname -r`
sudo apt-get install linux-source-2.6.24
cd /usr/src
sudo tar xvjf ./linux-source-2.6.24.tar.bz2
sudo ln -s /usr/src/linux-source-2.6.24/ /usr/src/linux
Disable conflicting modules:
Code:
gksudo gedit /etc/default/linux-restricted-modules-common
Add nv nvidia_new to DISABLED_MODULES:
and save the file.
Prevent more conflictions: (see
http://www.nvnews.net/vbulletin/showthread.php?t=72490\)
Code:
sudo rm /lib/linux-restricted-modules/.nvidia_new_installed
sudo apt-get --purge remove nvidia-glx nvidia-glx-new nvidia-settings nvidia-kernel-common
sudo rm /etc/init.d/nvidia-*
****************BEGIN Installation
We can't install the nvidia driver with X running... so you might want to write down/print this section
Hit Ctrl + Alt+ f2 to get to a full screen tty. Login, and enter the following commands:
Code:
sudo /etc/init.d/gdm stop
cd <directory you downloaded to>
sudo chmod +x ./NVIDIA-linux-x86-71.86.06-pkg1.run
sudo ./NVIDIA-linux-x86-71.86.06-pkg1.run
Follow the on-screen steps. Choose yes when it asks if you would like to run the nvidia configuration utility. When all is said and done you can start the gui with:
Code:
sudo /etc/init.d/gdm start
*****************END
Important:
When there is an update to mesa you will need to reinstall the package by repeating the steps marked in the Installation region.
Also Important:
When you update your kernel, you will have to recompile the kernel module. You can have post-update scripts do this for you by following the instructions here:
http://ubuntuforums.org/showthread.php?t=835573
Bookmarks