个人工具

“UbuntuHelp:Latest Nvidia Dapper”的版本间的差异

来自Ubuntu中文

跳转至: 导航, 搜索
(New page: {{From|https://help.ubuntu.com/community/Latest_Nvidia_Dapper}} {{Languages|php5}} == Ubuntu 7.04 (Feisty) == The easiset method by far is to use '''System -> Administration -> Restrict...)
 
第71行: 第71行:
 
<pre><nowiki>
 
<pre><nowiki>
 
sudo apt-get install linux-386
 
sudo apt-get install linux-386
</nowiki></code>
+
</nowiki></pre>
  
 
Or you can put "686", "k7", etc. instead of "386", according to your architecture, which you can check out by typing:
 
Or you can put "686", "k7", etc. instead of "386", according to your architecture, which you can check out by typing:
第77行: 第77行:
 
<pre><nowiki>
 
<pre><nowiki>
 
uname -r
 
uname -r
</nowiki></code>
+
</nowiki></pre>
  
 
After you do that the restricted modules will be installed every time your kernel is updated (unless you install a kernel for a different architecture, e.g. you have a 386 kernel and install a 686 kernel).
 
After you do that the restricted modules will be installed every time your kernel is updated (unless you install a kernel for a different architecture, e.g. you have a 386 kernel and install a 686 kernel).
第103行: 第103行:
 
<pre><nowiki>
 
<pre><nowiki>
 
uname -r
 
uname -r
</nowiki></code>
+
</nowiki></pre>
  
 
(You will get something like this: 2.6.15-25-k7 )
 
(You will get something like this: 2.6.15-25-k7 )
第112行: 第112行:
 
<pre><nowiki>
 
<pre><nowiki>
 
sudo apt-get install linux-k7
 
sudo apt-get install linux-k7
</nowiki></code>
+
</nowiki></pre>
  
 
(of course you need to use your architecture instead of k7)
 
(of course you need to use your architecture instead of k7)
第123行: 第123行:
 
<pre><nowiki>
 
<pre><nowiki>
 
sudo apt-get install nvidia-glx
 
sudo apt-get install nvidia-glx
</nowiki></code>
+
</nowiki></pre>
  
 
OR (If you need Legacy drivers, i.e. your graphic card is in the list at the end of the page or you need driver 7174)
 
OR (If you need Legacy drivers, i.e. your graphic card is in the list at the end of the page or you need driver 7174)
第132行: 第132行:
 
<pre><nowiki>
 
<pre><nowiki>
 
sudo cp /etc/X11/xorg.conf /etc/X11/xorg.conf_backup
 
sudo cp /etc/X11/xorg.conf /etc/X11/xorg.conf_backup
</nowiki></code>
+
</nowiki></pre>
  
 
NOTE: if you lost your old xorg.conf or that doesn't work type this:
 
NOTE: if you lost your old xorg.conf or that doesn't work type this:
 
<pre><nowiki>
 
<pre><nowiki>
 
dpkg-reconfigure -phigh xserver-xorg
 
dpkg-reconfigure -phigh xserver-xorg
</nowiki></code>
+
</nowiki></pre>
  
 
5) Enable the driver in your xorg:
 
5) Enable the driver in your xorg:
第143行: 第143行:
 
<pre><nowiki>
 
<pre><nowiki>
 
sudo nvidia-xconfig
 
sudo nvidia-xconfig
</nowiki></code>
+
</nowiki></pre>
  
 
'''NOTE: if you own a GeForce4 420/440 Go you should follow also point 7 of the PROBLEMS SECTION.'''
 
'''NOTE: if you own a GeForce4 420/440 Go you should follow also point 7 of the PROBLEMS SECTION.'''
第151行: 第151行:
 
<pre><nowiki>
 
<pre><nowiki>
 
gksudo gedit /usr/share/applications/NVIDIA-Settings.desktop
 
gksudo gedit /usr/share/applications/NVIDIA-Settings.desktop
</nowiki></code>
+
</nowiki></pre>
  
 
OR (if you use KDE)
 
OR (if you use KDE)
 
<pre><nowiki>
 
<pre><nowiki>
 
kdesu kate /usr/share/applications/NVIDIA-Settings.desktop
 
kdesu kate /usr/share/applications/NVIDIA-Settings.desktop
</nowiki></code>
+
</nowiki></pre>
  
 
OR (if you use Xfce)
 
OR (if you use Xfce)
 
<pre><nowiki>
 
<pre><nowiki>
 
gksudo mousepad /usr/share/applications/NVIDIA-Settings.desktop
 
gksudo mousepad /usr/share/applications/NVIDIA-Settings.desktop
</nowiki></code>
+
</nowiki></pre>
  
 
'''NOTE: do not worry if the file is empty'''
 
'''NOTE: do not worry if the file is empty'''
第177行: 第177行:
 
Type=Application
 
Type=Application
 
Categories=Application;System;
 
Categories=Application;System;
</nowiki></code>
+
</nowiki></pre>
  
 
Save the edited file.
 
Save the edited file.
第192行: 第192行:
 
<pre><nowiki>
 
<pre><nowiki>
 
sudo cp /etc/X11/xorg.conf_backup /etc/X11/xorg.conf
 
sudo cp /etc/X11/xorg.conf_backup /etc/X11/xorg.conf
</nowiki></code>
+
</nowiki></pre>
  
 
''NOTE: if the backup of your old xorg.conf doesn't work or you lost it try this command (so as to regenerate a clean xorg.conf):  
 
''NOTE: if the backup of your old xorg.conf doesn't work or you lost it try this command (so as to regenerate a clean xorg.conf):  
第200行: 第200行:
 
<pre><nowiki>
 
<pre><nowiki>
 
sudo apt-get --purge remove nvidia-glx linux-restricted-modules-`uname -r` linux-restricted-modules-common
 
sudo apt-get --purge remove nvidia-glx linux-restricted-modules-`uname -r` linux-restricted-modules-common
</nowiki></code>
+
</nowiki></pre>
  
 
OR (If you need Legacy drivers, i.e. your graphic card is in the list at the end of the page or you need driver 7174)
 
OR (If you need Legacy drivers, i.e. your graphic card is in the list at the end of the page or you need driver 7174)
 
<pre><nowiki>
 
<pre><nowiki>
 
sudo apt-get --purge remove nvidia-glx-legacy nvidia-xconfig nvidia-settings linux-restricted-modules-`uname -r` linux-restricted-modules-common
 
sudo apt-get --purge remove nvidia-glx-legacy nvidia-xconfig nvidia-settings linux-restricted-modules-`uname -r` linux-restricted-modules-common
</nowiki></code>
+
</nowiki></pre>
  
 
Log out and press CTRL+ALT+BACKSPACE (so as to restart the xserver).
 
Log out and press CTRL+ALT+BACKSPACE (so as to restart the xserver).
第216行: 第216行:
 
<pre><nowiki>
 
<pre><nowiki>
 
sudo apt-cdrom add
 
sudo apt-cdrom add
</nowiki></code>
+
</nowiki></pre>
  
 
then it should ask you to insert Ubuntu's cd.
 
then it should ask you to insert Ubuntu's cd.
第224行: 第224行:
 
<pre><nowiki>
 
<pre><nowiki>
 
sudo apt-get update
 
sudo apt-get update
</nowiki></code>
+
</nowiki></pre>
  
 
<pre><nowiki>
 
<pre><nowiki>
 
sudo apt-get install linux-386
 
sudo apt-get install linux-386
</nowiki></code>
+
</nowiki></pre>
  
  
第248行: 第248行:
 
<pre><nowiki>
 
<pre><nowiki>
 
sudo cp /etc/X11/xorg.conf /etc/X11/xorg.conf_backup
 
sudo cp /etc/X11/xorg.conf /etc/X11/xorg.conf_backup
</nowiki></code>
+
</nowiki></pre>
  
 
NOTE: if you lost your old xorg.conf or that doesn't work type this:
 
NOTE: if you lost your old xorg.conf or that doesn't work type this:
 
<pre><nowiki>
 
<pre><nowiki>
 
dpkg-reconfigure -phigh xserver-xorg
 
dpkg-reconfigure -phigh xserver-xorg
</nowiki></code>
+
</nowiki></pre>
  
 
Then IF AND ONLY IF the installation of the package went fine, set up your xorg.conf:
 
Then IF AND ONLY IF the installation of the package went fine, set up your xorg.conf:
第259行: 第259行:
 
<pre><nowiki>
 
<pre><nowiki>
 
sudo nano -w /etc/X11/xorg.conf
 
sudo nano -w /etc/X11/xorg.conf
</nowiki></code>
+
</nowiki></pre>
  
 
Get to the Section "Module" and put a "#" before load dri and load glcore so that it looks like this:
 
Get to the Section "Module" and put a "#" before load dri and load glcore so that it looks like this:
第277行: 第277行:
 
     Load          "vbe"
 
     Load          "vbe"
 
EndSection
 
EndSection
</nowiki></code>
+
</nowiki></pre>
  
 
Then get to the Section device and set the driver to "nvidia" (instead of "nv" or "vesa"):
 
Then get to the Section device and set the driver to "nvidia" (instead of "nv" or "vesa"):
第283行: 第283行:
 
<pre><nowiki>
 
<pre><nowiki>
 
Driver "nvidia"
 
Driver "nvidia"
</nowiki></code>
+
</nowiki></pre>
  
 
CTRL+X to exit (save the file)
 
CTRL+X to exit (save the file)
第307行: 第307行:
 
<pre><nowiki>
 
<pre><nowiki>
 
sudo apt-get install linux-headers-`uname -r` build-essential gcc gcc-3.4 xserver-xorg-dev
 
sudo apt-get install linux-headers-`uname -r` build-essential gcc gcc-3.4 xserver-xorg-dev
</nowiki></code>
+
</nowiki></pre>
  
 
'''NOTE: please make sure you use a ` instead of a common apostrophe '. If you don't know how to type a ` then you can use this $(uname -r) instead of `uname -r` (which is pretty much the same).'''
 
'''NOTE: please make sure you use a ` instead of a common apostrophe '. If you don't know how to type a ` then you can use this $(uname -r) instead of `uname -r` (which is pretty much the same).'''
第317行: 第317行:
 
<pre><nowiki>
 
<pre><nowiki>
 
sudo apt-get --purge remove linux-restricted-modules-`uname -r` linux-restricted-modules-common nvidia-glx nvidia-settings nvidia-kernel-common
 
sudo apt-get --purge remove linux-restricted-modules-`uname -r` linux-restricted-modules-common nvidia-glx nvidia-settings nvidia-kernel-common
</nowiki></code>
+
</nowiki></pre>
  
 
It will ask you to remove also several files (among which linux-386, etc.): answer Yes.  
 
It will ask you to remove also several files (among which linux-386, etc.): answer Yes.  
第324行: 第324行:
 
<pre><nowiki>
 
<pre><nowiki>
 
sudo rm /etc/init.d/nvidia-*
 
sudo rm /etc/init.d/nvidia-*
</nowiki></code>
+
</nowiki></pre>
  
 
'''NOTE: Don't worry if the system complains that the file cannot be removed.'''
 
'''NOTE: Don't worry if the system complains that the file cannot be removed.'''
第333行: 第333行:
 
<pre><nowiki>
 
<pre><nowiki>
 
sudo /etc/init.d/gdm stop (OR "kdm stop" if you use KDE)
 
sudo /etc/init.d/gdm stop (OR "kdm stop" if you use KDE)
</nowiki></code>
+
</nowiki></pre>
  
 
<pre><nowiki>
 
<pre><nowiki>
 
cd “directory_where_you_have_the_nvidia_installer”
 
cd “directory_where_you_have_the_nvidia_installer”
</nowiki></code>
+
</nowiki></pre>
 
'''NOTE: of course you have to replace “directory_where_you_have_the_nvidia_installer” with the directory in which you have the nvidia installer'''
 
'''NOTE: of course you have to replace “directory_where_you_have_the_nvidia_installer” with the directory in which you have the nvidia installer'''
  
第343行: 第343行:
 
<pre><nowiki>
 
<pre><nowiki>
 
sh /path_to_the_installer/NVIDIA-Linux-x86-1.0-8756-pkg1.run --extract-only
 
sh /path_to_the_installer/NVIDIA-Linux-x86-1.0-8756-pkg1.run --extract-only
</nowiki></code>
+
</nowiki></pre>
  
 
'''NOTE: of course you will have to replace "NVIDIA-Linux-x86-1.0-8756-pkg1.run" with the name of the installer you want to use (e.g. NVIDIA-Linux-x86_64-1.0-8756-pkg2.run, etc.)'''
 
'''NOTE: of course you will have to replace "NVIDIA-Linux-x86-1.0-8756-pkg1.run" with the name of the installer you want to use (e.g. NVIDIA-Linux-x86_64-1.0-8756-pkg2.run, etc.)'''
第352行: 第352行:
 
<pre><nowiki>
 
<pre><nowiki>
 
cd NVIDIA-Linux-x86-1.0-8756-pkg1
 
cd NVIDIA-Linux-x86-1.0-8756-pkg1
</nowiki></code>
+
</nowiki></pre>
  
 
Make a backup of your xorg.conf  
 
Make a backup of your xorg.conf  
第364行: 第364行:
 
<pre><nowiki>
 
<pre><nowiki>
 
sudo ln -sf /usr/bin/gcc-3.4 /usr/bin/gcc
 
sudo ln -sf /usr/bin/gcc-3.4 /usr/bin/gcc
</nowiki></code>
+
</nowiki></pre>
  
 
'''NOTE: if you do not know which version your kernel is you can see it by typing this command:
 
'''NOTE: if you do not know which version your kernel is you can see it by typing this command:
 
<pre><nowiki>
 
<pre><nowiki>
 
uname -r
 
uname -r
</nowiki></code>
+
</nowiki></pre>
  
 
8) Install the driver:  
 
8) Install the driver:  
第375行: 第375行:
 
<pre><nowiki>
 
<pre><nowiki>
 
sudo ./nvidia-installer -n -s --x-prefix=/usr/lib/xorg/ --kernel-source-path=/usr/src/linux-headers-`uname -r`
 
sudo ./nvidia-installer -n -s --x-prefix=/usr/lib/xorg/ --kernel-source-path=/usr/src/linux-headers-`uname -r`
</nowiki></code>
+
</nowiki></pre>
 
'''OR (if you use Ubuntu 64bit)'''
 
'''OR (if you use Ubuntu 64bit)'''
 
<pre><nowiki>
 
<pre><nowiki>
 
sudo ./nvidia-installer -n -s --x-prefix=/usr/lib64/xorg/ --kernel-source-path=/usr/src/linux-headers-`uname -r`
 
sudo ./nvidia-installer -n -s --x-prefix=/usr/lib64/xorg/ --kernel-source-path=/usr/src/linux-headers-`uname -r`
</nowiki></code>
+
</nowiki></pre>
  
  
第387行: 第387行:
 
<pre><nowiki>
 
<pre><nowiki>
 
sudo ./nvidia-installer -n -s --x-prefix=/usr/lib/xorg/ --kernel-source-path=/usr/src/kernel-headers-`uname -r`
 
sudo ./nvidia-installer -n -s --x-prefix=/usr/lib/xorg/ --kernel-source-path=/usr/src/kernel-headers-`uname -r`
</nowiki></code>
+
</nowiki></pre>
 
'''OR (if you use Ubuntu 64bit)'''
 
'''OR (if you use Ubuntu 64bit)'''
 
<pre><nowiki>
 
<pre><nowiki>
 
sudo ./nvidia-installer -n -s --x-prefix=/usr/lib64/xorg/ --kernel-source-path=/usr/src/linux-headers-`uname -r`
 
sudo ./nvidia-installer -n -s --x-prefix=/usr/lib64/xorg/ --kernel-source-path=/usr/src/linux-headers-`uname -r`
</nowiki></code>
+
</nowiki></pre>
  
  
第407行: 第407行:
 
<pre><nowiki>
 
<pre><nowiki>
 
sudo cp /usr/src/name_of_your_source/arch/i386/Makefile.cpu /usr/src/kernel-headers-`uname -r`/arch/i386/
 
sudo cp /usr/src/name_of_your_source/arch/i386/Makefile.cpu /usr/src/kernel-headers-`uname -r`/arch/i386/
</nowiki></code>
+
</nowiki></pre>
  
 
'''NOTE: you have to replace "name_of_your_source" with the name of your source, such as linux-2.6.16, etc.)'''
 
'''NOTE: you have to replace "name_of_your_source" with the name of your source, such as linux-2.6.16, etc.)'''
第413行: 第413行:
 
<pre><nowiki>
 
<pre><nowiki>
 
cd /usr/src/kernel-headers-`uname -r`/
 
cd /usr/src/kernel-headers-`uname -r`/
</nowiki></code>
+
</nowiki></pre>
  
 
<pre><nowiki>
 
<pre><nowiki>
 
sudo make prepare
 
sudo make prepare
</nowiki></code>
+
</nowiki></pre>
  
 
<pre><nowiki>
 
<pre><nowiki>
 
sudo make prepare scripts
 
sudo make prepare scripts
</nowiki></code>
+
</nowiki></pre>
  
 
<pre><nowiki>
 
<pre><nowiki>
 
cd $HOME
 
cd $HOME
</nowiki></code>
+
</nowiki></pre>
  
 
<pre><nowiki>
 
<pre><nowiki>
 
cd “directory_where_you_have_the_nvidia_installer”
 
cd “directory_where_you_have_the_nvidia_installer”
</nowiki></code>
+
</nowiki></pre>
  
 
<pre><nowiki>
 
<pre><nowiki>
 
cd NVIDIA-Linux-x86-1.0-8756-pkg1
 
cd NVIDIA-Linux-x86-1.0-8756-pkg1
</nowiki></code>
+
</nowiki></pre>
  
 
<pre><nowiki>
 
<pre><nowiki>
 
sudo ./nvidia-installer -n -s --x-prefix=/usr/lib/xorg/ --kernel-source-path=/usr/src/kernel-headers-`uname -r`
 
sudo ./nvidia-installer -n -s --x-prefix=/usr/lib/xorg/ --kernel-source-path=/usr/src/kernel-headers-`uname -r`
</nowiki></code>
+
</nowiki></pre>
 
'''OR (if you use Ubuntu 64bit)'''
 
'''OR (if you use Ubuntu 64bit)'''
 
<pre><nowiki>
 
<pre><nowiki>
 
sudo ./nvidia-installer -n -s --x-prefix=/usr/lib64/xorg/ --kernel-source-path=/usr/src/linux-headers-`uname -r`
 
sudo ./nvidia-installer -n -s --x-prefix=/usr/lib64/xorg/ --kernel-source-path=/usr/src/linux-headers-`uname -r`
</nowiki></code>
+
</nowiki></pre>
  
  
第458行: 第458行:
 
<pre><nowiki>
 
<pre><nowiki>
 
sudo ln -sf /usr/bin/gcc-4.0 /usr/bin/gcc
 
sudo ln -sf /usr/bin/gcc-4.0 /usr/bin/gcc
</nowiki></code>
+
</nowiki></pre>
  
  
第466行: 第466行:
 
<pre><nowiki>
 
<pre><nowiki>
 
sudo apt-get install nvidia-xconfig
 
sudo apt-get install nvidia-xconfig
</nowiki></code>
+
</nowiki></pre>
  
 
Enable the driver in your xorg:  
 
Enable the driver in your xorg:  
 
<pre><nowiki>
 
<pre><nowiki>
 
sudo nvidia-xconfig
 
sudo nvidia-xconfig
</nowiki></code>
+
</nowiki></pre>
  
 
11) Restart the login manager:  
 
11) Restart the login manager:  
第477行: 第477行:
 
<pre><nowiki>
 
<pre><nowiki>
 
sudo /etc/init.d/gdm restart (or "kdm restart" if you use KDM)
 
sudo /etc/init.d/gdm restart (or "kdm restart" if you use KDM)
</nowiki></code>
+
</nowiki></pre>
  
 
Congratulations, you have installed the new nvidia driver!  
 
Congratulations, you have installed the new nvidia driver!  
第487行: 第487行:
 
<pre><nowiki>
 
<pre><nowiki>
 
sudo apt-get install nvidia-settings
 
sudo apt-get install nvidia-settings
</nowiki></code>
+
</nowiki></pre>
  
 
Then  
 
Then  
 
<pre><nowiki>
 
<pre><nowiki>
 
gksudo gedit /usr/share/applications/NVIDIA-Settings.desktop
 
gksudo gedit /usr/share/applications/NVIDIA-Settings.desktop
</nowiki></code>
+
</nowiki></pre>
  
 
OR (if you use KDE)  
 
OR (if you use KDE)  
 
<pre><nowiki>
 
<pre><nowiki>
 
kdesu kate /usr/share/applications/NVIDIA-Settings.desktop
 
kdesu kate /usr/share/applications/NVIDIA-Settings.desktop
</nowiki></code>
+
</nowiki></pre>
  
 
OR (if you use any other Desktop Environment)  
 
OR (if you use any other Desktop Environment)  
 
<pre><nowiki>
 
<pre><nowiki>
 
nano /usr/share/applications/NVIDIA-Settings.desktop
 
nano /usr/share/applications/NVIDIA-Settings.desktop
</nowiki></code>
+
</nowiki></pre>
  
 
Insert the following lines into the new file:  
 
Insert the following lines into the new file:  
第515行: 第515行:
 
Type=Application
 
Type=Application
 
Categories=Application;System;
 
Categories=Application;System;
</nowiki></code>
+
</nowiki></pre>
  
  
第535行: 第535行:
 
<pre><nowiki>
 
<pre><nowiki>
 
sudo /etc/init.d/gdm stop (OR "kdm stop" if you use KDE)
 
sudo /etc/init.d/gdm stop (OR "kdm stop" if you use KDE)
</nowiki></code>
+
</nowiki></pre>
  
 
Restore your old xorg.conf  
 
Restore your old xorg.conf  
 
<pre><nowiki>
 
<pre><nowiki>
 
sudo cp /etc/X11/xorg.conf_backup /etc/X11/xorg.conf
 
sudo cp /etc/X11/xorg.conf_backup /etc/X11/xorg.conf
</nowiki></code>
+
</nowiki></pre>
  
 
'''NOTE: if the backup of your old xorg.conf doesn't work or you lost it try this command (so as to regenerate a clean xorg.conf): sudo dpkg -reconfigure -phigh xserver-xorg '''
 
'''NOTE: if the backup of your old xorg.conf doesn't work or you lost it try this command (so as to regenerate a clean xorg.conf): sudo dpkg -reconfigure -phigh xserver-xorg '''
第549行: 第549行:
 
sudo ./nvidia-installer --uninstall
 
sudo ./nvidia-installer --uninstall
 
sudo rm /etc/init.d/nvidia-*
 
sudo rm /etc/init.d/nvidia-*
</nowiki></code>
+
</nowiki></pre>
  
 
'''NOTE: don't you worry if the file you're trying to remove does not exist.'''
 
'''NOTE: don't you worry if the file you're trying to remove does not exist.'''
第557行: 第557行:
 
<pre><nowiki>
 
<pre><nowiki>
 
sudo dpkg-reconfigure xserver-xorg
 
sudo dpkg-reconfigure xserver-xorg
</nowiki></code>
+
</nowiki></pre>
  
 
and the program will ask you a few questions. If you don't know the answer just press ENTER to use the default one. Make sure you choose either "nv" or "vesa" when it asks you about which driver you want to use.
 
and the program will ask you a few questions. If you don't know the answer just press ENTER to use the default one. Make sure you choose either "nv" or "vesa" when it asks you about which driver you want to use.
第564行: 第564行:
 
<pre><nowiki>
 
<pre><nowiki>
 
sudo /etc/init.d/gdm restart (or "kdm restart" if you use KDE)
 
sudo /etc/init.d/gdm restart (or "kdm restart" if you use KDE)
</nowiki></code>
+
</nowiki></pre>
  
  
第575行: 第575行:
 
<pre><nowiki>
 
<pre><nowiki>
 
sudo apt-get install nvidia-glx linux-restricted-modules-`uname -r`
 
sudo apt-get install nvidia-glx linux-restricted-modules-`uname -r`
</nowiki></code>
+
</nowiki></pre>
  
 
OR (If you need Legacy drivers, i.e. your graphic card is in the list at the end of the page or you need driver 7174)
 
OR (If you need Legacy drivers, i.e. your graphic card is in the list at the end of the page or you need driver 7174)
第581行: 第581行:
 
<pre><nowiki>
 
<pre><nowiki>
 
sudo apt-get install nvidia-glx-legacy linux-restricted-modules-`uname -r`
 
sudo apt-get install nvidia-glx-legacy linux-restricted-modules-`uname -r`
</nowiki></code>
+
</nowiki></pre>
  
 
3) Switch from "nv" to "nvidia" (which you can find in the Section "Device", beside the word Driver) in your /etc/X11/xorg.conf ( type <pre><nowiki>gksudo gedit /etc/X11/xorg.conf
 
3) Switch from "nv" to "nvidia" (which you can find in the Section "Device", beside the word Driver) in your /etc/X11/xorg.conf ( type <pre><nowiki>gksudo gedit /etc/X11/xorg.conf
</nowiki></code> or <pre><nowiki>sudo nano /etc/X11/xorg.conf
+
</nowiki></pre> or <pre><nowiki>sudo nano /etc/X11/xorg.conf
</nowiki></code> to open the file)
+
</nowiki></pre> to open the file)
  
 
4) Restart your computer and both the new kernel and the drivers will work.
 
4) Restart your computer and both the new kernel and the drivers will work.
第615行: 第615行:
 
GeForce2 Ultra 0x0152
 
GeForce2 Ultra 0x0152
 
Quadro2 Pro 0x0153
 
Quadro2 Pro 0x0153
</nowiki></code>
+
</nowiki></pre>
  
  
第634行: 第634行:
 
'/var/log/nvidia-installer.log' for details.
 
'/var/log/nvidia-installer.log' for details.
 
...
 
...
</nowiki></code>
+
</nowiki></pre>
  
 
This means the installer tries to use gcc-3.4 instead of gcc-3.3(the right one in this case).Type this before launching NVIDIA installer:
 
This means the installer tries to use gcc-3.4 instead of gcc-3.3(the right one in this case).Type this before launching NVIDIA installer:
第641行: 第641行:
 
CC=gcc-3.3
 
CC=gcc-3.3
 
export CC
 
export CC
</nowiki></code>
+
</nowiki></pre>
  
 
The number of the version of gcc has to be the same as the 2nd one reported in the error by nvidia installer.
 
The number of the version of gcc has to be the same as the 2nd one reported in the error by nvidia installer.
第654行: 第654行:
 
that you have the package 'gcc' installed. If gcc is installed on your
 
that you have the package 'gcc' installed. If gcc is installed on your
 
system, then please check that `cc` is in your PATH.
 
system, then please check that `cc` is in your PATH.
</nowiki></code>
+
</nowiki></pre>
  
 
Make sure you have gcc-3.4 installed
 
Make sure you have gcc-3.4 installed
 
<pre><nowiki>
 
<pre><nowiki>
 
sudo apt-get install gcc-3.4
 
sudo apt-get install gcc-3.4
</nowiki></code>
+
</nowiki></pre>
  
 
Then let's make the system use gcc-3.4 instead of gcc-4.0 by default:
 
Then let's make the system use gcc-3.4 instead of gcc-4.0 by default:
 
<pre><nowiki>
 
<pre><nowiki>
 
sudo ln -sf /usr/bin/gcc-3.4 /usr/bin/gcc
 
sudo ln -sf /usr/bin/gcc-3.4 /usr/bin/gcc
</nowiki></code>
+
</nowiki></pre>
  
 
Run the Nvidia installer again (this time it won't complain)
 
Run the Nvidia installer again (this time it won't complain)
第671行: 第671行:
 
<pre><nowiki>
 
<pre><nowiki>
 
sudo ln -sf /usr/bin/gcc-4.0 /usr/bin/gcc
 
sudo ln -sf /usr/bin/gcc-4.0 /usr/bin/gcc
</nowiki></code>
+
</nowiki></pre>
  
 
'''4) If you have an AGP graphic card and your system freezes but you can still move the mouse pointer''' you will have to do this:
 
'''4) If you have an AGP graphic card and your system freezes but you can still move the mouse pointer''' you will have to do this:
 
<pre><nowiki>
 
<pre><nowiki>
 
sudo nano /etc/X11/xorg.conf
 
sudo nano /etc/X11/xorg.conf
</nowiki></code>
+
</nowiki></pre>
  
 
Add the lines which begin with the word "Option" in this section of the file:
 
Add the lines which begin with the word "Option" in this section of the file:
第691行: 第691行:
 
Option "AllowGLXWithComposite" "Off"
 
Option "AllowGLXWithComposite" "Off"
 
EndSection
 
EndSection
</nowiki></code>
+
</nowiki></pre>
  
 
Then save the file and exit. Press CTRL+ALT+Backspace in order to restart the xserver.
 
Then save the file and exit. Press CTRL+ALT+Backspace in order to restart the xserver.
第699行: 第699行:
 
<pre><nowiki>
 
<pre><nowiki>
 
Option "Accel" "Off"
 
Option "Accel" "Off"
</nowiki></code>
+
</nowiki></pre>
  
 
If this doesn't work for you try asking on the Unofficial Nvidia Forum and you might be talking to some of the developers of the NVIDIA drivers (there's a Linux section) (it's very useful)
 
If this doesn't work for you try asking on the Unofficial Nvidia Forum and you might be talking to some of the developers of the NVIDIA drivers (there's a Linux section) (it's very useful)
第709行: 第709行:
 
<pre><nowiki>
 
<pre><nowiki>
 
sudo dpkg-reconfigure xserver-xorg
 
sudo dpkg-reconfigure xserver-xorg
</nowiki></code>
+
</nowiki></pre>
  
 
When it asks you about your graphic card select it manually (don't do autodetect).
 
When it asks you about your graphic card select it manually (don't do autodetect).
第729行: 第729行:
 
<pre><nowiki>
 
<pre><nowiki>
 
sudo apt-get install linux-headers-`uname -r`
 
sudo apt-get install linux-headers-`uname -r`
</nowiki></code>
+
</nowiki></pre>
  
 
Then run the installer again in the following way:
 
Then run the installer again in the following way:
第735行: 第735行:
 
<pre><nowiki>
 
<pre><nowiki>
 
sudo sh NVIDIA-installer-that-you-used  --kernel-source-path=/usr/src/linux-headers-`uname -r`
 
sudo sh NVIDIA-installer-that-you-used  --kernel-source-path=/usr/src/linux-headers-`uname -r`
</nowiki></code>
+
</nowiki></pre>
  
 
'''7) If you own a GeForce4 420/440 Go or a GeForce4 MX 440''' you should follow these steps:
 
'''7) If you own a GeForce4 420/440 Go or a GeForce4 MX 440''' you should follow these steps:
 
<pre><nowiki>
 
<pre><nowiki>
 
sudo nano /etc/modprobe.d/options
 
sudo nano /etc/modprobe.d/options
</nowiki></code>
+
</nowiki></pre>
  
 
Add this option at the end of the file:
 
Add this option at the end of the file:
 
<pre><nowiki>
 
<pre><nowiki>
 
options nvidia NVreg_SoftEDIDs=0 NVreg_Mobile=1
 
options nvidia NVreg_SoftEDIDs=0 NVreg_Mobile=1
</nowiki></code>
+
</nowiki></pre>
  
 
CTRL+O to save
 
CTRL+O to save
第753行: 第753行:
 
<pre><nowiki>
 
<pre><nowiki>
 
sudo nano /etc/X11/xorg.conf
 
sudo nano /etc/X11/xorg.conf
</nowiki></code>
+
</nowiki></pre>
  
 
Get to the "Section Screen" and add the following options
 
Get to the "Section Screen" and add the following options
第760行: 第760行:
 
     Option        "ExactModeTimingsDVI"  "TRUE"
 
     Option        "ExactModeTimingsDVI"  "TRUE"
 
     Option        "ModeValidation"  "DFP-0: NoEdidDFPMaxSizeCheck, NoVesaModes"
 
     Option        "ModeValidation"  "DFP-0: NoEdidDFPMaxSizeCheck, NoVesaModes"
</nowiki></code>
+
</nowiki></pre>
  
 
If you added the options that section should (approximately) look like the example below:
 
If you added the options that section should (approximately) look like the example below:
第780行: 第780行:
 
     EndSubSection
 
     EndSubSection
 
EndSection
 
EndSection
</nowiki></code>
+
</nowiki></pre>
  
 
If those options do not work then you may replace them with the following:
 
If those options do not work then you may replace them with the following:
第787行: 第787行:
 
Option "UseEdidDpi" "FALSE"
 
Option "UseEdidDpi" "FALSE"
 
Option "ModeValidation" "NoEdidDFPMaxSizeCheck, NoVesaModes"
 
Option "ModeValidation" "NoEdidDFPMaxSizeCheck, NoVesaModes"
</nowiki></code>
+
</nowiki></pre>
  
  
第794行: 第794行:
 
<pre><nowiki>
 
<pre><nowiki>
 
options nvidia NVreg_SoftEDIDs=0 NVreg_Mobile=4
 
options nvidia NVreg_SoftEDIDs=0 NVreg_Mobile=4
</nowiki></code>
+
</nowiki></pre>
  
  
第804行: 第804行:
 
<pre><nowiki>
 
<pre><nowiki>
 
Option  "RenderAccel"  "false"
 
Option  "RenderAccel"  "false"
</nowiki></code>
+
</nowiki></pre>
  
 
Then restart the xserver (i.e. log out and press CTRL+ALT+Backspace)
 
Then restart the xserver (i.e. log out and press CTRL+ALT+Backspace)
第815行: 第815行:
 
   Option "HWcursor" "Disabled"
 
   Option "HWcursor" "Disabled"
 
   Option "SWcursor" "Enabled"
 
   Option "SWcursor" "Enabled"
</nowiki></code>
+
</nowiki></pre>
  
 
Then log out and press CTRL+ALT+Backspace
 
Then log out and press CTRL+ALT+Backspace
第823行: 第823行:
 
<pre><nowiki>
 
<pre><nowiki>
 
Option "UseEDID" "False"
 
Option "UseEDID" "False"
</nowiki></code>
+
</nowiki></pre>
  
 
Then get to the Section "Screen" and set you resolution and refresh rate in the following way:
 
Then get to the Section "Screen" and set you resolution and refresh rate in the following way:
第848行: 第848行:
 
     EndSubSection
 
     EndSubSection
 
EndSection
 
EndSection
</nowiki></code>
+
</nowiki></pre>
  
  
第865行: 第865行:
 
<pre><nowiki>
 
<pre><nowiki>
 
sudo cp /lib/modules/$(uname -r)/volatile/ath_hal.ko /lib/modules/$(uname -r)/kernel/
 
sudo cp /lib/modules/$(uname -r)/volatile/ath_hal.ko /lib/modules/$(uname -r)/kernel/
</nowiki></code>
+
</nowiki></pre>
  
 
   
 
   
第871行: 第871行:
 
<pre><nowiki>
 
<pre><nowiki>
 
sudo depmod -a $(uname -r)
 
sudo depmod -a $(uname -r)
</nowiki></code>
+
</nowiki></pre>
  
 
Uninstall the restricted modules package:
 
Uninstall the restricted modules package:
 
<pre><nowiki>
 
<pre><nowiki>
 
sudo apt-get --purge remove linux-restricted-modules-`uname -r`
 
sudo apt-get --purge remove linux-restricted-modules-`uname -r`
</nowiki></code>
+
</nowiki></pre>
  
 
Then, reboot and do the driver install.
 
Then, reboot and do the driver install.
第891行: 第891行:
 
  compiz.real: Failed to manage screen: 0
 
  compiz.real: Failed to manage screen: 0
 
  compiz.real: No managable screens found on display :0.0
 
  compiz.real: No managable screens found on display :0.0
</nowiki></code>
+
</nowiki></pre>
  
 
first try this:
 
first try this:
第897行: 第897行:
 
<pre><nowiki>
 
<pre><nowiki>
 
sudo apt-get install libgl1-mesa --reinstall
 
sudo apt-get install libgl1-mesa --reinstall
</nowiki></code>
+
</nowiki></pre>
  
 
If thats not working try:
 
If thats not working try:
第903行: 第903行:
 
<pre><nowiki>
 
<pre><nowiki>
 
sudo dpkg -i /var/cache/apt/archives/libgl1-mesa_6.5.0-0ubuntu5_i386.deb
 
sudo dpkg -i /var/cache/apt/archives/libgl1-mesa_6.5.0-0ubuntu5_i386.deb
</nowiki></code>
+
</nowiki></pre>
  
 
and replace "libgl1-mesa_6.5.0-0ubuntu5_i386.deb" with your version.
 
and replace "libgl1-mesa_6.5.0-0ubuntu5_i386.deb" with your version.
第914行: 第914行:
 
<pre><nowiki>
 
<pre><nowiki>
 
sudo nano -w /boot/grub/menu.lst
 
sudo nano -w /boot/grub/menu.lst
</nowiki></code>
+
</nowiki></pre>
  
 
look for this line:
 
look for this line:
 
<pre><nowiki>
 
<pre><nowiki>
 
# defoptions=quiet splash
 
# defoptions=quiet splash
</nowiki></code>
+
</nowiki></pre>
  
  
第930行: 第930行:
 
<pre><nowiki>
 
<pre><nowiki>
 
sudo update-grub
 
sudo update-grub
</nowiki></code>
+
</nowiki></pre>
  
 
and restart your computer
 
and restart your computer
第948行: 第948行:
 
<pre><nowiki>
 
<pre><nowiki>
 
nvidia-settings --load-config-only
 
nvidia-settings --load-config-only
</nowiki></code>
+
</nowiki></pre>
  
 
Then click on "Close".
 
Then click on "Close".

2007年5月13日 (日) 12:50的版本


Ubuntu 7.04 (Feisty)

The easiset method by far is to use System -> Administration -> Restricted Drivers Manager. If that fails, see below.

Ububuntu 6.06 LTS (Dapper Drake)

This guide was written by Alberto Milone (aka Tseliot)

Introduction

This howto will guide you through the installation of the Nvidia drivers. Why should you install Nvidia proprietary drivers?

a) If you want to enable 3D acceleration.

b) If you want to make the most of your Graphic Card (also videoclips look better)

c) If your graphic card is not supported (or only partially supported) by the Opensource driver "nv"

<!> This guide works ONLY on Ubuntu Dapper Drake 6.06 LTS

REQUIREMENTS

1) an installed Ubuntu system (don't try it on a livecd)

2) an Nvidia graphic card

3) an Internet connection (better if broadband)

NOTE If you do not have an Internet connection available in Ubuntu you can use Method1 (see the section about the Offline installation).

<!> If you have an Intel integrated card and your Nvidia card makes your computer freeze if you try to use it you should follow this guide instead:

HOWTO: install an Nvidia card instead of your Intel integrated card


EXPLANATION OF THE 3 METHODS

METHOD 1

It is the usual (and easiest) way to install the Nvidia drivers. It allows you to install nvidia driver 8762 OR 7174, i.e. the Legacy driver that you need ONLY IF your graphic card belongs to the list in the "NOTES SECTION", which you will find near the end of the guide. [WARMLY RECOMMENDED TO NEWBIES]. It works only with the kernels which you can find in Ubuntu's repository.

METHOD 1 - OFFLINE

Like Method 1 but Offline.

METHOD 2

If you need another driver version (e.g. the latest version if it is not available in the Ubuntu's repositories) or you have problems with Method 1 or you are using a kernel you have compiled yourself (thus lacking the restricted modules required for method one) or you want to try something different then Method 2 is for you. This Method works ONLY with driver 8756 and 8762!


<!> Method 2 REQUIRES THE REMOVAL OF THE RESTRICTED MODULES. Therefore if you use a wireless card (or another device) which requires the restricted modules, please avoid using Method 2.


METHOD 3

This Method isn't necessary at all. You should use either Method 1 or Method 2 first. If both Method 1 and Method 2 do not work for you Method 3 will NOT solve your problems (in this case, you should ask for help on the forums). ONLY if you want to learn something or to make your own restricted modules as .deb files (installable just like any other application) you can compile a new kernel (every step is carefully described in the guide. [GENERALLY NOT RECOMMENDED]

WHAT HAPPENS IF YOU CHANGE YOUR KERNEL OR IF YOUR KERNEL IS UPDATED

Every time you change or upgrade your kernel you will have to reinstall the Nvidia driver, no matter which method you used to install the driver.

'If you used Method 1'

Make sure you install also the restricted modules for the new kernel you decide to install:

sudo apt-get install linux-386

Or you can put "686", "k7", etc. instead of "386", according to your architecture, which you can check out by typing:

uname -r

After you do that the restricted modules will be installed every time your kernel is updated (unless you install a kernel for a different architecture, e.g. you have a 386 kernel and install a 686 kernel).

'If you used Method 2'

Just follow Method 2 again.

WHAT TO DO IF THE METHOD YOU CHOSE DID NOT WORK OR WORKED PARTIALLY

If you have any problems with the methods you should have a look at the PROBLEMS SECTION which you can find at the end of the guide. If you can't find the answer to your problem in that section then you can post your problems in the thread the link to which you can find at the end of this page and I will try to help you.



METHOD 1

Make sure you have both the Universe and Multiverse repositories enabled.


1) Identify the architecture of your kernel (e.g. 386 or k7,etc. )

Open Terminal or Konsole and type:

uname -r

(You will get something like this: 2.6.15-25-k7 )


2) Now that you know the architecture (k7 in my case but it could be 386, 686, k8, etc.), type:

sudo apt-get install linux-k7

(of course you need to use your architecture instead of k7)

In this way you will install a dummy package which will always provide you with the latest kernel image, headers and restricted modules.

3) Install the Nvidia driver:

sudo apt-get install nvidia-glx

OR (If you need Legacy drivers, i.e. your graphic card is in the list at the end of the page or you need driver 7174) sudo apt-get install nvidia-glx-legacy nvidia-xconfig nvidia-settings

4) Backup your xorg.conf

sudo cp /etc/X11/xorg.conf /etc/X11/xorg.conf_backup

NOTE: if you lost your old xorg.conf or that doesn't work type this:

dpkg-reconfigure -phigh xserver-xorg

5) Enable the driver in your xorg:

sudo nvidia-xconfig

NOTE: if you own a GeForce4 420/440 Go you should follow also point 7 of the PROBLEMS SECTION.

6) Create a link to the “Nvidia-Settings” Panel in your application menu:

gksudo gedit /usr/share/applications/NVIDIA-Settings.desktop

OR (if you use KDE)

kdesu kate /usr/share/applications/NVIDIA-Settings.desktop

OR (if you use Xfce)

gksudo mousepad /usr/share/applications/NVIDIA-Settings.desktop

NOTE: do not worry if the file is empty

Insert the following lines into the new file:

[Desktop Entry]
Name=NVIDIA Settings
Comment=NVIDIA X Server Settings
Exec=nvidia-settings
Icon=
StartupNotify=true
Terminal=false
Type=Application
Categories=Application;System;

Save the edited file.

Log out and press CTRL+ALT+BACKSPACE (so as to restart the xserver).

In case of problems, please read the PROBLEMS SECTION


HOW TO UNINSTALL THE DRIVER (from Method 1)

Restore your old xorg.conf

sudo cp /etc/X11/xorg.conf_backup /etc/X11/xorg.conf

NOTE: if the backup of your old xorg.conf doesn't work or you lost it try this command (so as to regenerate a clean xorg.conf): sudo dpkg -reconfigure -phigh xserver-xorg

If you used the nvidia driver 8178 (not the legacy one)

sudo apt-get --purge remove nvidia-glx linux-restricted-modules-`uname -r` linux-restricted-modules-common

OR (If you need Legacy drivers, i.e. your graphic card is in the list at the end of the page or you need driver 7174)

sudo apt-get --purge remove nvidia-glx-legacy nvidia-xconfig nvidia-settings linux-restricted-modules-`uname -r` linux-restricted-modules-common

Log out and press CTRL+ALT+BACKSPACE (so as to restart the xserver).

METHOD 1 - OFFLINE INSTALLATION

1) Install the restricted modules for your kernel:

Type:

sudo apt-cdrom add

then it should ask you to insert Ubuntu's cd.

Then (after the previous process finishes) type:

sudo apt-get update
sudo apt-get install linux-386


2) Download this package from another computer (in which you have an internet connection):

Use this package if you run Ubuntu 32bit:

Nvidia_package_32

OR this package if you run Ubuntu 64bit:

Nvidia_package_64

Then move the package to your computer with Ubuntu (use a USB pen for example): Double click on the .deb file and install it.

Backup your xorg.conf

sudo cp /etc/X11/xorg.conf /etc/X11/xorg.conf_backup

NOTE: if you lost your old xorg.conf or that doesn't work type this:

dpkg-reconfigure -phigh xserver-xorg

Then IF AND ONLY IF the installation of the package went fine, set up your xorg.conf:

sudo nano -w /etc/X11/xorg.conf

Get to the Section "Module" and put a "#" before load dri and load glcore so that it looks like this:

Section "Module"
    Load           "i2c"
    Load           "bitmap"
    #Load           "dri"
    #Load           "glcore"
    Load           "ddc"
    Load           "extmod"
    Load           "freetype"
    Load           "glx"
    Load           "int10"
    Load           "type1"
    Load           "vbe"
EndSection

Then get to the Section device and set the driver to "nvidia" (instead of "nv" or "vesa"):

Driver		"nvidia"

CTRL+X to exit (save the file)

Then log out and press CTRL+ALT+Backspace

NOTE: if you need to uninstall the driver you have to read the section "HOW TO UNINSTALL THE DRIVER" which you can find right after Method 1 (the online installation)

METHOD 2

If you follow this method you will use the nvidia installer, in this way you can install version 8756 or higher of the Nvidia driver (i.e. usually also the latest release of the driver)

Warning|Method 2 REQUIRES THE REMOVAL OF THE RESTRICTED MODULES. Therefore if you use a wireless card (or another device) which requires the restricted modules, please avoid using Method 2.

Make sure you graphic card is not among the ones which are NOT SUPPORTED by looking at the list that you will find in the NOTES SECTION. If your card is among the ones listed you have to use driver 7174 (or lower) (you can install it by going to the archive if nvidia drivers in the Nvidia website)

REMEMBER: every time your kernel is upgraded or changed with another one you have to reinstall the drivers.

1) Download the installer from this page according to your architecture (32bit or 64bit) http://www.nvidia.com/object/unix.html

2) Open Terminal or Konsole and type:

sudo apt-get install linux-headers-`uname -r` build-essential gcc gcc-3.4 xserver-xorg-dev

NOTE: please make sure you use a ` instead of a common apostrophe '. If you don't know how to type a ` then you can use this $(uname -r) instead of `uname -r` (which is pretty much the same).

NOTE: if APT complains because it can't find any package to remove in the following steps it's not a problem at all and you can go ahead with the next steps. If there are other errors, please report to me.

3) Then open Terminal or Konsole and type:

sudo apt-get --purge remove linux-restricted-modules-`uname -r` linux-restricted-modules-common nvidia-glx nvidia-settings nvidia-kernel-common

It will ask you to remove also several files (among which linux-386, etc.): answer Yes.

4) remove the file manually:

sudo rm /etc/init.d/nvidia-*

NOTE: Don't worry if the system complains that the file cannot be removed.

5) Press CTRL-ALT-F1 (so as to get to the command line, not a windowed terminal, but out of the graphical interface GUI)

login with your username and password (if required)

sudo /etc/init.d/gdm stop (OR "kdm stop" if you use KDE)
cd “directory_where_you_have_the_nvidia_installer”

NOTE: of course you have to replace “directory_where_you_have_the_nvidia_installer” with the directory in which you have the nvidia installer

6) Extract the content of the installer:

sh /path_to_the_installer/NVIDIA-Linux-x86-1.0-8756-pkg1.run --extract-only

NOTE: of course you will have to replace "NVIDIA-Linux-x86-1.0-8756-pkg1.run" with the name of the installer you want to use (e.g. NVIDIA-Linux-x86_64-1.0-8756-pkg2.run, etc.)

NOTE: of course you have to replace "/path_to_the_installer/" with the path (e.g. /home/your_username/your_directory/) to the installer (i.e. the path in which the installer is located)

A new folder will be created

cd NVIDIA-Linux-x86-1.0-8756-pkg1

Make a backup of your xorg.conf sudo cp /etc/X11/xorg.conf /etc/X11/xorg.conf_backup

[In this way if anything goes wrong and you have problems with the xserver (i.e. if it doesn't start) you can type:

sudo cp /etc/X11/xorg.conf_backup /etc/X11/xorg.conf ]

7) IF AND ONLY IF you have a kernel 2.6.12.x or lower (the default on Ubuntu Dapper is 2.6.15.x) then type the following line, OTHERWISE just skip this step:

sudo ln -sf /usr/bin/gcc-3.4 /usr/bin/gcc

NOTE: if you do not know which version your kernel is you can see it by typing this command:

uname -r

8) Install the driver: IF you are using the kernel that comes by default with Ubuntu (or if you don't know what a kernel is) then type:

sudo ./nvidia-installer -n -s --x-prefix=/usr/lib/xorg/ --kernel-source-path=/usr/src/linux-headers-`uname -r`

OR (if you use Ubuntu 64bit)

sudo ./nvidia-installer -n -s --x-prefix=/usr/lib64/xorg/ --kernel-source-path=/usr/src/linux-headers-`uname -r`


OTHERWISE if you are using a kernel which you compiled from vanilla sources (i.e. from kernel.org) then you have two options:

a) if you are using kernel 2.6.13 or lower you have to type:

sudo ./nvidia-installer -n -s --x-prefix=/usr/lib/xorg/ --kernel-source-path=/usr/src/kernel-headers-`uname -r`

OR (if you use Ubuntu 64bit)

sudo ./nvidia-installer -n -s --x-prefix=/usr/lib64/xorg/ --kernel-source-path=/usr/src/linux-headers-`uname -r`


Then go to Step 9

NOTE: please make sure you use a ` instead of a common apostrophe '. If you don't know how to type a ` then you can use this $(uname -r) instead of `uname -r` (which is pretty much the same).


NOTE: if you own a GeForce4 420 Go or a GeForce4 440 Go you should follow also point 7 of the PROBLEMS SECTION.


b) if you are using kernel 2.6.14 or higher you have to type:

sudo cp /usr/src/name_of_your_source/arch/i386/Makefile.cpu /usr/src/kernel-headers-`uname -r`/arch/i386/

NOTE: you have to replace "name_of_your_source" with the name of your source, such as linux-2.6.16, etc.)

cd /usr/src/kernel-headers-`uname -r`/
sudo make prepare
sudo make prepare scripts
cd $HOME
cd “directory_where_you_have_the_nvidia_installer”
cd NVIDIA-Linux-x86-1.0-8756-pkg1
sudo ./nvidia-installer -n -s --x-prefix=/usr/lib/xorg/ --kernel-source-path=/usr/src/kernel-headers-`uname -r`

OR (if you use Ubuntu 64bit)

sudo ./nvidia-installer -n -s --x-prefix=/usr/lib64/xorg/ --kernel-source-path=/usr/src/linux-headers-`uname -r`


Then go to next step


NOTE: please make sure you use a ` instead of a common apostrophe '. If you don't know how to type a ` then you can use this $(uname -r) instead of `uname -r` (which is pretty much the same).


NOTE: if you own a GeForce4 420 Go, a GeForce4 440 Go or a GeForce4 MX 440 you should follow also point 7 of the PROBLEMS SECTION.


9) IF AND ONLY IF you followed step 7 then type the following command, OTHERWISE skip this step:

sudo ln -sf /usr/bin/gcc-4.0 /usr/bin/gcc


10) IF AND ONLY IF you use the nvidia installer version 8174 or higher you can go straight to the next command (sudo nvidia-xconfig).

Install the xorg configurator by Nvidia

sudo apt-get install nvidia-xconfig

Enable the driver in your xorg:

sudo nvidia-xconfig

11) Restart the login manager:

sudo /etc/init.d/gdm restart (or "kdm restart" if you use KDM)

Congratulations, you have installed the new nvidia driver!


12) NOTE: the following step is NOT needed for driver 8174 or higher (therefore you can go to the next step ). If you want a "control panel" which shows the settings of your card you might want to install "nvidia-settings" although they driver works fine also without it (the choice it's up to you).

Open Terminal or Konsole and type

sudo apt-get install nvidia-settings

Then

gksudo gedit /usr/share/applications/NVIDIA-Settings.desktop

OR (if you use KDE)

kdesu kate /usr/share/applications/NVIDIA-Settings.desktop

OR (if you use any other Desktop Environment)

nano /usr/share/applications/NVIDIA-Settings.desktop

Insert the following lines into the new file:

[Desktop Entry]
Name=NVIDIA Settings
Comment=NVIDIA X Server Settings
Exec=nvidia-settings
Icon=
StartupNotify=true
Terminal=false
Type=Application
Categories=Application;System;


Save the file and exit.

13) Log out and restart the xserver by pressing CTRL+ALT+Backspace

You will be able to see "Nvidia settings" in the menu (the one from which you launch all the applications)

REMEMBER: every time your kernel is upgraded or changed with another one you have to reinstall the drivers.

HOW TO UNINSTALL THE DRIVER (FROM METHOD 2)

Press CTRL-ALT-F1 (so as to get to the command line, not a windowed terminal, but out of the graphical interface GUI)

Login with your username and password (if required)

Stop the xserver:

sudo /etc/init.d/gdm stop (OR "kdm stop" if you use KDE)

Restore your old xorg.conf

sudo cp /etc/X11/xorg.conf_backup /etc/X11/xorg.conf

NOTE: if the backup of your old xorg.conf doesn't work or you lost it try this command (so as to regenerate a clean xorg.conf): sudo dpkg -reconfigure -phigh xserver-xorg

Uninstall the driver

cd NVIDIA-Linux-x86-1.0-8756-pkg1 (the name of this folder varies accordin to the installer you used)
sudo ./nvidia-installer --uninstall
sudo rm /etc/init.d/nvidia-*

NOTE: don't you worry if the file you're trying to remove does not exist.

IF AND ONLY IF you don't want to use the Nvidia driver any more you will have to reconfigure the Xserver in order to use either "nv", the opensource driver (which doesn't support all cards flawlessly), or "vesa", the more generic (but also more compatible) driver (OTHERWISE you can skip this step but you will have to reinstall the Nvidia driver). Type:

sudo dpkg-reconfigure xserver-xorg

and the program will ask you a few questions. If you don't know the answer just press ENTER to use the default one. Make sure you choose either "nv" or "vesa" when it asks you about which driver you want to use.

Restart the xserver

sudo /etc/init.d/gdm restart (or "kdm restart" if you use KDE)


METHOD 3

1) Compile your kernel (with modules) as described in my guide (which is meant for newbies therefore there are many explanations and redundancies) HOWTO: Kernel Compilation for Newbies

2) Open Terminal or Konsole and type:

sudo apt-get install nvidia-glx linux-restricted-modules-`uname -r`

OR (If you need Legacy drivers, i.e. your graphic card is in the list at the end of the page or you need driver 7174)

sudo apt-get install nvidia-glx-legacy linux-restricted-modules-`uname -r`
3) Switch from "nv" to "nvidia" (which you can find in the Section "Device", beside the word Driver) in your /etc/X11/xorg.conf ( type
gksudo gedit /etc/X11/xorg.conf
or
sudo nano /etc/X11/xorg.conf
to open the file)

4) Restart your computer and both the new kernel and the drivers will work.


Enjoy!


NOTES SECTION

  • Below are the legacy GPUs that are no longer supported in the unified driver.

These GPUs will continue to be maintained through the special legacy NVIDIA GPU driver releases.

NVIDIA chip name Device PCI ID
------------------------------- -------------------------------
RIVA TNT 0x0020
RIVA TNT2/TNT2 Pro 0x0028
RIVA TNT2 Ultra 0x0029
Vanta/Vanta LT 0x002C
RIVA TNT2 Model 64/Model 64 Pro 0x002D
Aladdin TNT2 0x00A0
GeForce 256 0x0100
GeForce DDR 0x0101
Quadro 0x0103
GeForce2 GTS/GeForce2 Pro 0x0150
GeForce2 Ti 0x0151
GeForce2 Ultra 0x0152
Quadro2 Pro 0x0153


PROBLEMS SECTION

1) If the installer reports that the Framebuffer kernel module conflicts with the drivers you will have to recompile your kernel and disable this function

Here's a HOWTO for kernel compilation for newbies HOWTO: Kernel Compilation for Newbies

2) If the installer (in Method 2) complains in this way (this is an example of part of the error):

...
nvidia: version magic '2.6.10-5-386 preempt 386 gcc-3.4' should be
'2.6.10-5-386 preempt 386 gcc-3.3'
ERROR: Installation has failed. Please see the file
'/var/log/nvidia-installer.log' for details.
...

This means the installer tries to use gcc-3.4 instead of gcc-3.3(the right one in this case).Type this before launching NVIDIA installer:

CC=gcc-3.3
export CC

The number of the version of gcc has to be the same as the 2nd one reported in the error by nvidia installer.

Then run Nvidia installer again.

3) If the installer complains in this way and you are using a Breezy kernel or a version 2.6.12-x:

...
ERROR: Unable to find the development tool `cc` in your path; please make sure
that you have the package 'gcc' installed. If gcc is installed on your
system, then please check that `cc` is in your PATH.

Make sure you have gcc-3.4 installed

sudo apt-get install gcc-3.4

Then let's make the system use gcc-3.4 instead of gcc-4.0 by default:

sudo ln -sf /usr/bin/gcc-3.4 /usr/bin/gcc

Run the Nvidia installer again (this time it won't complain)

IF everything went fine you can switch back to your old gcc settings (so as to use gcc-4.0 by default)

sudo ln -sf /usr/bin/gcc-4.0 /usr/bin/gcc

4) If you have an AGP graphic card and your system freezes but you can still move the mouse pointer you will have to do this:

sudo nano /etc/X11/xorg.conf

Add the lines which begin with the word "Option" in this section of the file:

Section "Device"
Identifier "NVIDIA Corporation NV40 [GeForce 6200 TurboCache]"
Driver "nvidia"
BusID "PCI:1:0:0"
Option "NvAGP" "0"
Option "RenderAccel" "Off"
Option "IgnoreDisplayDevices" "DFP,TV"
Option "NoRenderExtension" "Off"
Option "AllowGLXWithComposite" "Off"
EndSection

Then save the file and exit. Press CTRL+ALT+Backspace in order to restart the xserver.

IF it doesn't work yet then you can add also the following line which will disable 3d acceleration:

Option "Accel" "Off"

If this doesn't work for you try asking on the Unofficial Nvidia Forum and you might be talking to some of the developers of the NVIDIA drivers (there's a Linux section) (it's very useful) " http://www.nvnews.net/vbulletin/forumdisplay.php?f=14


5) If you have problems with the Resolution and/or Refresh rate of your display, please do the following steps OR follow this excellent guide by Heimo HOWTO: change resolution/refresh rate in Xorg:

sudo dpkg-reconfigure xserver-xorg

When it asks you about your graphic card select it manually (don't do autodetect).

Select the "advanced" when it asks you about the refresh rate (make sure you know the horizontal and vertical refresh rate supported by your monitor (try in google or if you have a manual of the monitor) OR use "autodetect" (the easy one).

It will ask you your desired resolutions, select the ones you need by pressing the SPACEBAR.

If you don't know how to answer the other questions you can use the suggested answers (which will work) by pressing ENTER (without typing anything).

After you finish, log out and press CTRL+ALT+BACKSPACE

Log in and see if everything is displayed correctly and if your card is well detected.

6) If the installer says that it can't find the kernel sources

Make sure you have installed the headers for your kernel:

sudo apt-get install linux-headers-`uname -r`

Then run the installer again in the following way:

sudo sh NVIDIA-installer-that-you-used  --kernel-source-path=/usr/src/linux-headers-`uname -r`

7) If you own a GeForce4 420/440 Go or a GeForce4 MX 440 you should follow these steps:

sudo nano /etc/modprobe.d/options

Add this option at the end of the file:

options nvidia NVreg_SoftEDIDs=0 NVreg_Mobile=1

CTRL+O to save CTRL+X to exit

Edit your xorg.conf:

sudo nano /etc/X11/xorg.conf

Get to the "Section Screen" and add the following options

    Option         "ExactModeTimingsDVI"   "TRUE"
    Option         "ModeValidation"   "DFP-0: NoEdidDFPMaxSizeCheck, NoVesaModes"

If you added the options that section should (approximately) look like the example below:

Section "Screen"
    Identifier  	"Screen[0]"
    Device      	"Device[0]"
    Monitor     	"Monitor[0]"
    DefaultDepth    24
    Option         "ExactModeTimingsDVI"   "TRUE"
    Option         "ModeValidation"   "DFP-0: NoEdidDFPMaxSizeCheck, NoVesaModes"
    SubSection     "Display"
        Depth       16
        Modes      "1280x1024" "1024x768" "832x624" "800x600" "720x400" "640x480"
    EndSubSection
    SubSection     "Display"
        Depth       24
        Modes      "1280x1024" "1024x768" "832x624" "800x600" "720x400" "640x480"
    EndSubSection
EndSection

If those options do not work then you may replace them with the following:

Option "ExactModeTimingsDVI"
Option "UseEdidDpi" "FALSE"
Option "ModeValidation" "NoEdidDFPMaxSizeCheck, NoVesaModes"


If that did not work for your card you can try setting the following option instead of the one you put before in your /etc/modprobe.d/options:

options nvidia NVreg_SoftEDIDs=0 NVreg_Mobile=4


NOTE: In this case you will have to specify my modes and metamodes for twinview to work (provided you use Twinview).


8) If texts in Firefox look bad after the installation of the Nvidia Driver try disabling RenderAccel (which is enabled by default) by adding the following option in your Section Device of your xorg.xconf:

Option  "RenderAccel"   "false"

Then restart the xserver (i.e. log out and press CTRL+ALT+Backspace)

9) If (after installing the Nvidia driver) you are not able to see your mouse cursor or it blinks and this bothers you try this:

Add the following options to the Section Device of your xorg.conf:

  Option "HWcursor" "Disabled"
  Option "SWcursor" "Enabled"

Then log out and press CTRL+ALT+Backspace

10) If the driver ignores the modelines (and therefore the Resolution and Refresh Rate are not right) which (worked with version 8178) you have to add the following option to the Section "Device" in your xorg.conf:

Option "UseEDID" "False"

Then get to the Section "Screen" and set you resolution and refresh rate in the following way:

Put the desired Refresh rate beside the resolution you need to use. For example if you want to set the resolution to 1280x1024 and the refresh rate to 75hz you have to write 1280x1024_75 . See the example below:

Quote|Section "Screen"
    Identifier  	"Screen[0]"
    Device      	"Device[0]"
    Monitor     	"Monitor[0]"
    DefaultDepth    24
    SubSection     "Display"
         Depth       15
        Modes      "1280x1024" "1024x768" "832x624" "800x600" "720x400" "640x480"
    EndSubSection
    SubSection     "Display"
        Depth       16
        Modes      "1280x1024_75" "1024x768" "832x624" "800x600" "720x400" "640x480"
    EndSubSection
    SubSection     "Display"
        Depth       24
        Modes      "1280x1024_75" "1024x768" "832x624" "800x600" "720x400" "640x480"
    EndSubSection
EndSection


11) If you want to use Method 2 or my script but you need the restricted modules for your wifi connection you shoud try this method suggested by chemist109:

Copy the modules you want to keep from

/lib/modules/$(uname -r)/volatile/ to /lib/modules/$(uname -r)/kernel/

before you uninstall the linux-restricted-modules package.

e.g. for the madwifi driver you should do this:

sudo cp /lib/modules/$(uname -r)/volatile/ath_hal.ko /lib/modules/$(uname -r)/kernel/


Then:

sudo depmod -a $(uname -r)

Uninstall the restricted modules package:

sudo apt-get --purge remove linux-restricted-modules-`uname -r`

Then, reboot and do the driver install.

You will have to do this each time you upgrade the kernel.

12) If u have problems with XGL after installing the latest driver

Like this:

 $ thefuture
 $ compiz.real: GLX_EXT_texture_from_pixmap is missing
 compiz.real: Failed to manage screen: 0
 compiz.real: No managable screens found on display :0.0

first try this:

sudo apt-get install libgl1-mesa --reinstall

If thats not working try:

sudo dpkg -i /var/cache/apt/archives/libgl1-mesa_6.5.0-0ubuntu5_i386.deb

and replace "libgl1-mesa_6.5.0-0ubuntu5_i386.deb" with your version.

this workaround was suggested by sYs^

13) If you own a Nvidia FX5900 or a 5700 card (but not only) you might be affected by a bug which prevents (or shows buggy graphics when) users from logging out, switching to another user, shutting down or changing to a console (ALT-(F1-6)).

Try this:

sudo nano -w /boot/grub/menu.lst

look for this line:

# defoptions=quiet splash


Remove the word "splash" from it.

Save and exit: press CTRL+X

Then type this in Terminal or Konsole:

sudo update-grub

and restart your computer

After that, you will have no pretty usplash screen to look at anymore but the bug should be gone.

14) If you have an Intel integrated card and your Nvidia card makes your computer freeze if you try to use it you should follow this guide instead: HOWTO: install an Nvidia card instead of your Intel integrated card

15) If "nvidia-settings" loses its settings every time you reboot Get to the following menus (if you use GNOME): System -> Preferences -> Sessions -> Startup Programs

Then click on "Add"

And insert this command:

nvidia-settings --load-config-only

Then click on "Close".

16) If you can hear drums (greeting) sound when you Ubuntu boots but there is no output on the monitor: See point 10 of this Problems Section.

Ask for help on the forums

You can ask further questions on this thread:

[1]


CategoryDocumentation CategoryHardware