Just install the kernel source. Unzip it in /usr/src
ln -s /usrc/src/kernel-source-2.4.27 linux
Copy your config from /boot for your current kernel, name it .config (copy into the kernel source directory)
make mrproper (for some reason i'm not sure if this is right, but is what I have written down previously, maybe just 'make clean' would do)
make prepare ( this is for 2.6 kernels and installs the headers. I think for 2.4 you just need to make oldconfig and you should have headers.)
This is what I did to get the headers to compile slmodem for my machine. (befor e I compiled a new kernel) Unfortunately I continue to kill my brain with beer and its all a little foggy exactly how I did it. At least this way you dont have to compile a whole kernel, (well you sort go almost all the way) but you could always do the whole thing anyway and kill off all the modules that you dont need. Am sure someone will come up with something if this doesnt work for ya.
Last edited by short101; 03-13-2005 at 02:33 AM.