Linux - NewbieThis 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!
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
I was gonna install a driver for my modem, and the help document it came with said I needed the following.
1. root access
2. bash shell to run install scripts
3. an Intel536ep modem
4. KERNEL SOURCE HEADERS FOR THE KERNEL YOU ARE RUNNING.
and programming development tools installed as well
My question is about number 4. I have no idea what that means. I know I have programming development tools installed, but I don't know what "kernel source headers for the Kernel you are running" means. Do those header files need to be copied over to the directory i'm running the script in? If so, where are they? Do they need to be installed? Please help.
you will need to install the kernel-headers package. you've given squit all info abuot what system you're running, but i'd guess it's RPM based... in which case the rpm will be on your distro's cd's. you will not need to actually do anythign once they are installed.
Originally posted by acid_kewpie you will need to install the kernel-headers package. you've given squit all info abuot what system you're running, but i'd guess it's RPM based... in which case the rpm will be on your distro's cd's. you will not need to actually do anythign once they are installed.
As I'm a newb tho, could I ask for a little clarification on a couple of things?
* In my /usr/src directory there's a folder called linux-2.4.20-8
So do I put a symlink to this in the directory I'm building my drivers in? I tried a few variations on that but it still fails.
* At boot time (and in response to a DEPMOD command) I recieve two warnings about unresolved symbols. For the files '536ep.o' and '536epcore.o'. Is this because I'm not linking in the headers properly when I compile?
Also, I said what I did (about there being no kernel source headers) because when I tried using the latest drivers from Intel for RH9 instead of the boxed ones then it fails again. Except this time it complained that two files were missing. 'vmlinuz.version.h' and 'vmlinuz.autoconf.h'
But these two headers are not anywhere on my system. I even downloaded the kernel source from ftp.kernel.org and compiled that but those headers didn't appear. I've installed every rpm on the RH9 CD's and do have the glib package mentioned earlier.
I think I'm maybe not understanding something basic about this whole process but I don't know what it is
All the kernel source headers are are the include files for your kernel source. You just need the source to the red hat kernel or whatever you compiled yourself and the do a symlink to /usr/src/linux.
I just need to reply to this... if you compiled your own kernel, you must not symlink those to the /usr/src/linux directory! Here is a quote from Linus Torvalds to the Linux kernel mailinglist:
I would suggest that people who compile new kernels should:
- not have a single symbolic link in sight (except the one that the
kernel build itself sets up, namely the “linux/include/asm”
symlink that is only used for the internal kernel compile itself)
And yes, this is what I do. My /usr/src/linux still has the old 2.2.13
header files, even though I haven't run a 2.2.13 kernel in a _loong_
time. But those headers were what Glibc was compiled against, so those
headers are what matches the library object files.
And this is actually what has been the suggested environment for at
least the last five years. I don't know why the symlink business keeps
on living on, like a bad zombie. Pretty much every distribution still
has that broken symlink, and people still remember that the linux
sources should go into “/usr/src/linux” even though that hasn't
been true in a _loong_ time.
I got this quote from the Linux From Scratch book.