Installing nVidia drivers on debian linux
Since I forget the steps every single time I try to install or upgrade linux I’ll write them down.
- download the drivers from www.nvidia.com (usually a file with .run extension)
- download the kernel header files — apt-get install linux-headers-$(uname -r)
- execute the command — sh path to the nvidia driver here
There is another method I found, that seems to work for a lot of people:
- apt-get install module-assistant
- m-a prepare
- m-a auto-install nvidia
$(uname -r) is a nice trick. i think `uname -r`might also work. not sure what the difference is, if any. sadly, i’ve just used copy and paste all these years…
`uname -r` is the Bourne shell (sh) convention to command quoting. $(uname -r) is a variant supported by BASH and ksh. http://www.mpi-inf.mpg.de/~uwe/lehre/unixffb/quoting-guide.html for more details.