Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

A newbie here. I am trying to set up Eclipse for Linux Kernel Programming. The guide says set the project location as the root directory of the kernel. Where's the root directory of the kernel now? According to Linux file hierarchy system, it lists /lib as the root directory for shared libraries and kernel modules. I also see /lib32 and /lib64. However, I tried selecting /lib as the location and eclipse doesn't allow me to create the project.

share|improve this question
up vote 2 down vote accepted

For develop a kernel module you need the headers of kernel , you can install a package kernel-headers-KERNEL_VERSION like kernel-headers-3.2.0-25 and the root directory is /usr/src/linux-headers-KERNEL_VERSION

share|improve this answer
Thanks for the reply. I need to create an eclipse project in the root directory. However, it does not allow me to! Would you know how to give permission to the user? – user592748 Jun 22 '12 at 20:05
Ok, I found how to change permissions to a folder – user592748 Jun 22 '12 at 20:17

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.