个人工具

UbuntuHelp:RestrictedDrivers/NVIDIAOfficial

来自Ubuntu中文

Wikibot讨论 | 贡献2008年4月23日 (三) 11:55的版本

跳转至: 导航, 搜索

It's always a possibility to download the drivers for your NVIDIA graphics card through the Ubuntu repositories, but if you're looking to use the official NVIDIA drivers, it gets slightly trickier, but it's still a pretty easy bit of maintenance. It really shouldn't be necessary for the average end-user, but for the ones who are interested in doing so, here's a guide on how to do so. First, ensure that the card you have is an NVIDIA card:

lspci | grep -i nvidia

You should get an output similar to this:

03:00.0 VGA compatible controller: nVidia Corporation Unknown device 0295 (rev a1)

If so, you're ready to continue.

Acquiring and installing

The first thing you should do, is to navigate to NVIDIA's driver page, choose 'Graphics driver' in step 1, your card in step 2 and Linux x86/x64, depending on your architecture. Once you've done that, click 'Go' and proceed to download the .run file. Since I have an NVIDIA GeForce 7950GT running on Ubuntu 7.04 x86, I choose 'Graphics Driver', 'GeForce 7 Series' and 'Linux x86'. The next step is to kill your X session: after terminating all your running applications, press CTRL+ALT+1 to go to a terminal. Log in with your user information. Depending on whether you use GNOME or KDE, run either of the following commands:

sudo /etc/init.d/gdm stop
sudo /etc/init.d/kdm stop

That's gdm for GNOME, kdm for KDE. Next up, change to the directory to which you downloaded the .run file; this is most likely in your home directory (/home/yourname) or your on your desktop (/home/yourname/Desktop). In my case, it's in my home folder, so I type cd ~/ to go to my home folder. To execute the file, it must also be executable. To make it such, run this command:

chmod +x NVIDIA-Linux-x86-100.14.11-pkg1.run

Substitute filename with the filename of your package. Once you've done this, the file should be ready to install. Type the following command:

sudo ./NVIDIA-Linux-x86-100.14.11-pkg1.run

Again, substituting the filename for whatever file you've downloaded. A simple graphical installer should start.