And how do I get the kernel source tree?
I downloaded the kernel-source, kernel-headers, and kernel-tree things with the Synaptic package manager. Then in /usr/src/ I saw a bzip2 file so I extracted it etc, ended up with a kernel-source-2.6.8 (something similar) folder.
(What I'm trying to do is install the NVIDIA display driver now.)
So I start the NVIDIA installer (sh nvidia-xxxxx.bin) and it says it can't find kernel source tree, specify with argument kernel-source-tree=. So I pointed it to the /usr/src then it said can't find version.h. So I found out version.h was in the headers and so I just decided to merge all the source headers and tree things in to one directory (source) since it seems that's what the NVIDIA installer wanted. I gave it headers, it needed something from source. I gave it source, it needed something from headers. So I did that, then it can't find a .config file. I found the .config file with locate and put it in the merged directory and then finally the NVIDIA thing went, until it couldn't install nvidia.ko. It says it disagrees with the version of symbol struct_module. Well it looked like it almost installed.
All that was probably a really nasty hack though (just trying to figure something out myself though). What's the proper way to get the kernel source I need to compile the display driver? I didn't find any of my errors in the NVIDIA FAQ. With Mandriva all I had to do was install kernel-source then the NVIDIA installer automatically detected it and did everything fine but apparently I didn't install something I needed on Debian for it to do the same thing. I installed the same kernel-source, -header, -tree, kbuild as what my kernel version was and everything.
I downloaded the kernel-source, kernel-headers, and kernel-tree things with the Synaptic package manager. Then in /usr/src/ I saw a bzip2 file so I extracted it etc, ended up with a kernel-source-2.6.8 (something similar) folder.
(What I'm trying to do is install the NVIDIA display driver now.)
So I start the NVIDIA installer (sh nvidia-xxxxx.bin) and it says it can't find kernel source tree, specify with argument kernel-source-tree=. So I pointed it to the /usr/src then it said can't find version.h. So I found out version.h was in the headers and so I just decided to merge all the source headers and tree things in to one directory (source) since it seems that's what the NVIDIA installer wanted. I gave it headers, it needed something from source. I gave it source, it needed something from headers. So I did that, then it can't find a .config file. I found the .config file with locate and put it in the merged directory and then finally the NVIDIA thing went, until it couldn't install nvidia.ko. It says it disagrees with the version of symbol struct_module. Well it looked like it almost installed.
All that was probably a really nasty hack though (just trying to figure something out myself though). What's the proper way to get the kernel source I need to compile the display driver? I didn't find any of my errors in the NVIDIA FAQ. With Mandriva all I had to do was install kernel-source then the NVIDIA installer automatically detected it and did everything fine but apparently I didn't install something I needed on Debian for it to do the same thing. I installed the same kernel-source, -header, -tree, kbuild as what my kernel version was and everything.