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.
Hi, I have been using Linux on and off for a while and always seem to hit a brick wall with the same problem.
On this occasion I was trying to install Paragon NTFS for Linux (Demo) under Fedroa Core. The shell script keeps prompting me that it cannot find the Kernel Sources (I have had similar errors under RedHat,Suse etc). Logic dictates that I download the Kernel source rpms and install, which I did.
Once again, running the ./install.sh file gives the same error. When the install.sh file is viewed, the script is looking to /usr/src/linux for the kernel headers. This doesn't match the dir structure in Fedora which appears to be /usr/scr/redhat/SOURCES. I tried creating the required dir structure and copied the contents of the /usr/scr/redhat/SOURCES folder to it but then got another error message saying it couldn't determin which kernel I was running
Has anyone attempted to install the Paragon NTFS driver in Fedroa or RedHat and if so did you get similar problem???
I have got read access working using another driver, but the retail paragon product offers write access which I need. I would gladly buy it if I can get the demo product working.
"Be careful to make sure that you don't install something called "kernel<somenumber>.src.rpm" because this is not the kernel source but the sourcecode for the rpm (a different thing altogether)."
Ok, you've him the nail on the head here. I have been trying for months using Suse, RedHat,Mandrake,Debain to get a grip of the "Kernel headers" & "kernel source" meaning. Despite countless searchs, queries amonst peers, no-one has clarified it for me.
As it turns out, you are exactly right, I installed the kernel-source.rpm.
It is at this point that my experiences with Linux in general show a common theme. No matter what distro I try, and I have tried LOTS, I always get stuck with this "kernel headers" or "kernel sources" problem. It's clear from your reply that I have mis-understood this and would greatly appreciate it if you could clarify how I would go about obtaining the correct files and installing then to the correct location to satisfy the dependencies of not only the Paragon NTFS problem, but other apps that fail to install due to the same dependency.
I now realise my problem is a generic one that applies to all distros, so if you could give me any advice that is not distro specific I woulld really appreciate it.
What I'm striving to learn is;
1) How do I know if the Kernel Headers/Source is installed?
2) How do I install the Kernel Headers?
3) Once installed, do I need to compile anything?
I'm sorry I seem to have led you astray. I am still running FC2 and I didn't realise that as of FC3 Red Hat no longer supply "sourcecode" rpms. You can, however use the .src.rpm file as descibed here....
I reproduce the relevant section below :
In order to eliminate the redundancy inherent in providing a separate package for the kernel source code when that source code already exists in the kernel's .src.rpm file, Fedora Core 3 no longer includes the kernel-source package. Users that require access to the kernel sources can find them in the kernel .src.rpm file. To create an exploded source tree from this file, perform the following steps (note that <version> refers to the version specification for your currently-running kernel):
Obtain the kernel-<version>.src.rpm file from one of the following sources:
The SRPMS directory on the appropriate "SRPMS" CD iso image
The FTP site where you got the kernel package
By running the following command:
up2date --get-source kernel
Install kernel-<version>.src.rpm (given the default RPM configuration, the files this package contains will be written to /usr/src/redhat/)
Change directory to /usr/src/redhat/SPECS/, and issue the following command:
rpmbuild -bp --target=<arch> kernel.spec
(Where <arch> is the desired target architecture.)
On a default RPM configuration, the kernel tree will be located in /usr/src/redhat/BUILD/.
In resulting tree, the configurations for the specific kernels shipped in Fedora Core 3 are in the /configs/ directory. For example, the i686 SMP configuration file is named /configs/kernel-<version>-i686-smp.config. Issue the following command to place the desired configuration file in the proper place for building:
cp <desired-file> ./.config
Issue the following command:
You can then proceed as usual.
You can find the rpm (the answer to step 1) here...
Having downloaded that to a location of your choice you can do step 2 with the command
rpm -Uvh kernel-2.6.10-1.760_FC3.src.rpm
After that I'm afraid you will have to hope that someone else here can help you with the next steps. It's not something I've done - or needed to do as yet.
Mark, thanks for the info.
I'll have a look into that when I get home from work. I did try using VNC to access my PC but unfortunately I've set grub to boot to XP by default so I can only access XP from work, unless these is a way I can edit the boot loader via Windows to change the default OS!
Will post the results of your post this evening.