Koozali.org: home of the SME Server

Kernel Source

treydock

Kernel Source
« on: September 28, 2006, 03:01:30 AM »
I am trying to install a VPN client and it prompts me for the path to my kernel source...usually it auto detects but it didn't and it's blank.  Where do I find the kernel source?

"Directory containing linux kernel source code"  I've tried /lib/modules/2.6.9-34.ELsmp and nothing, can't seem to find the kernel source, not really sure what it would look like had I come across it.

THanks
Trey

Offline meanpenguin

  • ****
  • 138
  • +0/-0
kernel-sourcecode for sme 7.0
« Reply #1 on: September 28, 2006, 06:32:39 AM »
If you need it it's here...

http://mirror.contribs.org/smeserver/releases/7/builds/rpms/RPMS/noarch/

After installing, it should be in /usr/src/linux-2.6.9-34.0.2.EL.
You should ln -s /usr/src/linux-2.6.9-34.0.2.EL /usr/src/linux

Ed

Offline william_syd

  • *****
  • 1,608
  • +0/-0
  • Nothing to see here.
    • http://www.magicwilly.info
Kernel Source
« Reply #2 on: September 28, 2006, 09:10:31 AM »
Quote from: "Centos Support Foums"
If you need the full kernel source and not just the headers (the kernel-devel package) then download the full-source package (the latest is kernel-2.6.9-34.0.2.EL.src.rpm) from one of the mirrors, for example (notice the SRPMS directory location);

$ /usr/bin/wget ftp://mirrors.kernel.org/centos/4.3/updates/SRPMS/kernel-2.6.9-34.0.2.EL.src.rpm

Install it;

# rpm -ivh kernel*.src.rpm

A fun way to do both (download and install) at the same time;

# rpm -ivh ftp://mirrors.kernel.org/centos/4.3/updates/SRPMS/kernel-2.6.9-34.0.2.EL.src.rpm

Prep it;

# cd /usr/src/redhat/SPECS
# rpmbuild -bp --target $(arch) kernel-2.6.spec

Move and link it;

# cd /usr/src/redhat/BUILD/kernel-<version> /usr/src/
# mv linux-<version> /usr/src/
# cd /usr/src
# ln -s ./linux-<version> linux
# cd /usr/src/linux

Edit the Makefile (your choice of text editor) and remove the "prep portion" from the EXTRAVERSION line.

Note: <version> is the version number of the full kernel sources and should match your running kernel version.
Hint: uname -a


Original link is here.
Regards,
William

IF I give advise.. It's only if it was me....

duncan

Kernel Source
« Reply #3 on: September 29, 2006, 01:56:18 AM »
You will also need to copy the smp config file from /boot and rename it .config in the source directory - run make oldconfig and the make.

Don`t go any further than make however.