LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-05-2012, 09:45 PM   #1
msxenix
LQ Newbie
 
Registered: Oct 2012
Location: Bristol, CT
Distribution: Debian Wheezy + LXDE
Posts: 26

Rep: Reputation: 1
Question Kernel-Headers (3.5.5)


Hi,

I just compiled and installed the Linux 3.5.5 and installed the appropriate Modules as well. The only thing I'm unsure of is where I can get a copy of the Linux-Headers. The Nvidia proprietary drivers require them and I'm not really sure how to get a hold of them.

Any ideas?

I'm running Mint 13 w/ compiled 3.5.5 (Core2Duo x86-64) Kernel

System Specs

Gigabyte GA-G31m-S2L
Core2Duo E6600 @ 3.15Ghz
2 GB Memory
Nvidia Geforce 9800GT


Thanks
 
Old 10-05-2012, 10:45 PM   #2
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware
Posts: 6,435
Blog Entries: 6

Rep: Reputation: Disabled
Not sure if you want to use YUM or not but these articles refer to a few differnt ways of How To Install Headers for the Kernel.

http://www.clearfoundation.com/compo...view/id,40863/
http://blog.gambliser.com/2012/08/in...on-oracle-6-3/

You might want to consider the backports and maybe the gcc tools for other architectures depending on your target architecture.

http://forums.linuxmint.com/viewtopic.php?f=47&t=108436

I'm still learning how to as well but I hope this helps.

Last edited by Ztcoracat; 10-05-2012 at 10:52 PM. Reason: Spelling
 
Old 10-05-2012, 11:08 PM   #3
andrewthomas
Senior Member
 
Registered: May 2010
Location: Chicago Metro
Distribution: Arch, Gentoo, Slackware
Posts: 1,690

Rep: Reputation: 308Reputation: 308Reputation: 308Reputation: 308
How did you build your kernel?

Did you build any packages?

Back when I used Debian, I used to build my kernels using the following method:

Alternate Build Method: The Old-Fashioned Debian Way

https://help.ubuntu.com/community/Ke...ned_Debian_Way

which will generate a kernel-headers .deb along with the kernel-image .deb
 
1 members found this post helpful.
Old 10-06-2012, 12:37 AM   #4
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware
Posts: 6,435
Blog Entries: 6

Rep: Reputation: Disabled
I'm not sure how msxenix built his/her 3.5.5 kernel but I'm wondering how as well-

So; msxenix; do tell.....
 
Old 10-06-2012, 01:37 AM   #5
msxenix
LQ Newbie
 
Registered: Oct 2012
Location: Bristol, CT
Distribution: Debian Wheezy + LXDE
Posts: 26

Original Poster
Rep: Reputation: 1
I downloaded the source from kernel.org (tar.gz file)
I extracted the source directory to a location in my home directory. (/home/msxenix/src)
I ran a 'make mrproper' in order to make sure that the source was clean
i configured the kernel with 'make menuconfig'
I ran 'make' to build the kernel
I ran 'sudo make install' to install the kernel
I ran 'sudo make modules_install' to install the modules

The kernel boot successfully to Linux 3.5.5. Everything works great, and the GUI might be more responsive.

The only problem is that I can't install the nvidia drivers due to not having the kernel headers.

I'm guessing there may be a step I may have overlooked. I used the directions included with the kernel but I didn't see any mention of installation of Kernel-Headers.
 
Old 10-06-2012, 01:50 AM   #6
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware
Posts: 6,435
Blog Entries: 6

Rep: Reputation: Disabled
This article might be your answer.
http://www.cyberciti.biz/faq/howto-i...aders-package/
It's for Debian or Ubuntu but it should help you to get the understanding you need to perform the task to install kernel headers.

Make sure you do an update first as the article recommends it.

I'm thinking you need to run:
Code:
apt-get install linux-headers-$(uname -r)
Does your Mint 13 have Cinnamon?
I'll keep looking to help you-

Last edited by Ztcoracat; 10-06-2012 at 01:55 AM. Reason: Post website and ask additional question
 
Old 10-06-2012, 02:07 AM   #7
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware
Posts: 6,435
Blog Entries: 6

Rep: Reputation: Disabled
Just for grins and giggles I looked in my synaptic package manager.
There are multipule 'kernel headers"
Check your package manager the headers that you need may already be in there.

If not try looking in /usr/src or lib/modules

Here's the driver instructions for your Nvidia drivers for your distro-
http://www.aoaforums.com/forum/linux...s-install.html

Last edited by Ztcoracat; 10-06-2012 at 02:12 AM.
 
1 members found this post helpful.
Old 10-06-2012, 02:18 AM   #8
msxenix
LQ Newbie
 
Registered: Oct 2012
Location: Bristol, CT
Distribution: Debian Wheezy + LXDE
Posts: 26

Original Poster
Rep: Reputation: 1
I have the copy with MATE rather than cinnamon.

Modules are present in the /lib/modules

I only have the original 3.2 headers in /usr/src

I'm trying this command right now. It was in one of the links

'fakeroot make-kpkg --initrd --append-to-version=-some-string-here kernel-image kernel-headers'

I had to get kernel-package from apt-get. It's going to take some time to run. I'll let you know if that helped.

Thanks for all the help so far though :-)
 
Old 10-06-2012, 02:35 AM   #9
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware
Posts: 6,435
Blog Entries: 6

Rep: Reputation: Disabled
Quote:
Originally Posted by msxenix View Post
I have the copy with MATE rather than cinnamon.

Modules are present in the /lib/modules

I only have the original 3.2 headers in /usr/src

I'm trying this command right now. It was in one of the links

'fakeroot make-kpkg --initrd --append-to-version=-some-string-here kernel-image kernel-headers'

I had to get kernel-package from apt-get. It's going to take some time to run. I'll let you know if that helped.

Thanks for all the help so far though :-)
Your Welcome
 
Old 10-06-2012, 09:22 AM   #10
msxenix
LQ Newbie
 
Registered: Oct 2012
Location: Bristol, CT
Distribution: Debian Wheezy + LXDE
Posts: 26

Original Poster
Rep: Reputation: 1
Ok I have the kernel-headers installed using the fakeroot make-kpkg command i listed.

I was able to get the Nvidia drivers installed in recovery mode afterwards.

Thanks everyone.
 
Old 10-06-2012, 01:56 PM   #11
andrewthomas
Senior Member
 
Registered: May 2010
Location: Chicago Metro
Distribution: Arch, Gentoo, Slackware
Posts: 1,690

Rep: Reputation: 308Reputation: 308Reputation: 308Reputation: 308
Quote:
Originally Posted by msxenix View Post
I'm trying this command right now. It was in one of the links

'fakeroot make-kpkg --initrd --append-to-version=-some-string-here kernel-image kernel-headers'
Yes, it was here
Quote:
Originally Posted by andrewthomas View Post
Back when I used Debian, I used to build my kernels using the following method:

Alternate Build Method: The Old-Fashioned Debian Way

https://help.ubuntu.com/community/Ke...ned_Debian_Way

which will generate a kernel-headers .deb along with the kernel-image .deb
It is probably a good idea to generate packages that apt/dpkg is aware of, unless you are using a build script that cleans up old versions, such as:

Code:
 #!/bin/sh
cd /usr/src/linux-3.6.0-gentoo
cp /boot/config-gentoo .config
make oldconfig
make menuconfig
make -j7 && make modules_install
cp System.map /boot/System.map-3.6.0-gentoo
cp .config /boot/config-3.6.0-gentoo
cp arch/x86_64/boot/bzImage /boot/kernel-3.6.0-gentoo
make mrproper
cp /boot/config-3.6.0-gentoo .config
cd /boot
rm config
rm System.map
rm vmlinuz
rm System.map-3.4.5-gentoo
rm config-3.4.5-gentoo
rm kernel-3.4.5-gentoo
ln -s System.map-3.6.0-gentoo System.map
ln -s config-3.6.0-gentoo config
ln -s kernel-3.6.0-gentoo vmlinuz
rm -r /lib/modules/3.4.5-gentoo
rm -r /usr/src/linux-3.4.5-gentoo
grub2-mkconfig -o /boot/grub2/grub.cfg
 
1 members found this post helpful.
Old 10-07-2012, 01:12 AM   #12
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware
Posts: 6,435
Blog Entries: 6

Rep: Reputation: Disabled
Glad to hear you got the kernel-headers installed and your Nvidia drivers installed!

Good for you Msxenix
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Trying to install ethernet adapter driver, not finding kernel-devel or kernel-headers oneFishtwoFish Red Hat 5 08-31-2010 07:24 PM
Zypper wants to dl the wrong kernel headers... YaST doesnt have current headers zorb SUSE / openSUSE 2 11-28-2009 12:12 PM
Automatic removal of kernel headers package when kernel packages are removed bgoodr Debian 3 12-30-2008 09:14 PM
Errors Compiling Kernel 2.6 on Slackware 10.2 - Old kernel headers required? Dave S. Slackware 8 03-04-2006 01:15 AM
send packets with kernel routing and without kernel messing with headers bassdemon Programming 5 02-08-2005 07:29 PM


All times are GMT -5. The time now is 08:58 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration