Here is the simplest way to install nVidia drivers in Debian that I found (have tried them all, I think
).
I have not tried it on a clean installation of Sarge yet. But I guess this is all, might be on package I forgot.
*work*
*work*
Now I have tried it out myself
INSTALLATION:
Installation of nVidias X-server driver "nvidia"
1) Log in as root "sudo bash" or "su -"
2) Add "contrib non-free" to end of each deb-line in /etc/apt/source.list
3) Update apt database of packages "apt-get update"
4) Install module-assistant et al "apt-get -u install module-assistant build-essential fakeroot patchutils kernel-package devscripts"
5) Install kernel kernel header files "apt-get -u install kernel-headers-`uname -r`"
6) Update module-assistant's databas "module-assistant update"
7) Install nvidia-kernel-common "apt-get -u install nvidia-kernel-common"
8) Download, build and install nvida-kernel-source package "module-assistant a-i nvidia-kernel-source"
9) Install nvidia-glx 'apt-get -u install nvidia-glx'
10) Do one of 10a) or 10b)
10a) Reconfigure "hotplug" to probe graphic cards "dpkg-reconfigure hotplug". Do NOT change anything else.
10b) If you didn't reconfigure hotplug add "nvidia" to end of /etc/modules "echo 'nvidia' >> /etc/modules"
11) Reconfigure xserver-xfree86 "dpkg-reconfigure -plow xserver-xfree86". Change only four things. Answer with en "Enter" on everything else. Do NOT change anything else. The four things are:
a) "Select the desire X server driver": Select "nvidia" instead of "nv"
b) "Select the XFree86 server modules that should be loaded by default.": Unselect "GLcore"
c) Same place: unselect "dri"
d) Same place: select "glc"
12) Add users that will run OpenGL to group video "addgroup jaxån video"
13) Log out and restart the X-server with "/usr/init.d/gdm restart" if you use gdm (This is the "right" way, change apr. if you use kdm or xdm) or try this "Ctrl-Alt-BackSpace"
14) Look at the nice nVidia logo when the Xserver starts
UPDATE:
To update this later, you only need to do this:
1) Log in as root (see Installation 1)
2) Update apt database "apt-get update"
3) Upgrade packages in your machine "apt-get -u upgrade"
4) Build new modules and install "module-assistent update; module-assistent a-i"
5) Restart gdm (or kdm or xdm) or X server (see Installation 13)
6) Do like 14) in installation
PROBLEMS:
A problem will be when you change/update kernel to a new one. Remeber to update kernel-headers to same version. Reboot machien (X won't start). Go throug 4) - 6) in update section. Finnished.
If you have problem and the X-server don't start. CHeck that you havn't updated to a new version of your kernel "uname -r", if so, do UPDATE:. Check that module "nvidia" is loaded to the kernel "lsmod| grep nvidia". If not, check that you have changed hotplug so that it adds the driver or added the driver to /etc/modules. See 10) in INSTALLATION.
OTHER PACKAGES:
Have a look at package "nvidia-settings" and/or "nvtv". The program "nvtv" is in main, so it also works with xfree86 nVidia driver "nv".
INFORMATION:
For more information, read the documentation for module-assistant, nvidia-kernel-source and nvidia-glx. You will find them under /usr/share/doc/ in subdirectory named after each package. Have a look in each file README.Debian.
Good luck.