can't find my kernel source on debian

Help
2005-04-14
2012-10-06
  • I can not find my linux kernel source on Debian to make a symlink. Can anybody help me?

     
    • ogott
      ogott
      2005-07-11

      you have to install a package called kernel-source-2.6.8 (if you're using linux 2.6.8).
      find out by typing 'uname -r' to see what kernel version you have and install the package that 'apt-cache search | grep uname -r' reports.
      then you'll have the zipped kernel source in /usr/src. go there, unzip it and set the link: 'ln -s kernel-source-2.6.8 linux' (or whatever the extracted directory is called).
      if you don't want to reconfigure the whole kernel, copy the current config (its called /proc/config or so, i can't check that right now) to /usr/src/linux/.config or load the file from the appropiate option in the menuconfig.