Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
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 RH9 with a recompiled kernel, named 2.4.20-mykernel . I downloaded preempt-kernel-rml-2.4.20-3.patch and put it in /usr/src. How do I install it? I tried "patch -p0 --verbose <preempt-kernel-rml-2.4.20-3.patch" but it said "Hmm... Looks like a unified diff to me...
can't find file to patch at input line 101
Perhaps you used the wrong -p or --strip option?" Once I get through patching, do I have to recompile the kernel again? Do I have to enable preempting in the kernel options? Should I bother with the low-latency patch while I'm at it? Thanks a lot!!
$ cd /usr/src/linux-2.4
$ patch -p0 < ../preempt-kernel-rml-2.4.20-3.patch
You were trying to run it from one level higher up in the directory hierarcy than intended. (If you're interested, try "$ less patchfile" to see what it looks like, you'll see that the filenames listed are similar to the files in /usr/src/linux-2.4.
If the patch file contents looked like this:
Then you'd want to run the patch from the / level. Or better yet, still do a "$ cd /usr/src/linux-2.4" and the "$ patch -p3 < patchfile" to strip off the first three directory levels from the patchfile. You can't trust everybody, and if you run a patchfile from / some nefarious soul might try to patch your /etc/passwd or something.
Anyway, you will need to recompile your kernel, follow instructions in /usr/src/linux-2.4/README or see the RedHat guides for instructions on compiling a custom kernel. Not sure if RedHat already has applied this patch to their distribution's kernel, you'll probably know if the patch fails.
It looks like it partially worked, but didn't finish? Is there something strange about Redhat's kernel in the /net section? I've had the kernel recompile process segfault and produce errors ("error 2") before, when working in the /net directory. Thanks, sorry for my slowness.
try the wolk version of kernel 2.4.20, it works great and has about 8 patches that make it the most kick ass kernel around (its got low latency and a ton of other crap (including preemptile) in it and they all have bugfixes) ps, just do cat (or zcat or bzcat depending on what compression the patches are in) like this: bzcat blah-2.4.20-2.4.21.bz2 | patch -p1 from inside the kernel source directory with the patches in there too
The WOLK project looks neat. I'm looking at the files in http://sourceforge.net/project/showf...ease_id=127402 . I'm confused about whether this is a patch or a kernel? Can I get all the good stuff by just downloading linux-2.4.20-wolk4.0s-to-4.1s.patch.bz2 ? Or do I need an entire WOLK kernel? I can really only download patches, as I have EXTREMELY slow dialup. Please let me know. Thanks!
if you have the original 2.4.20 kernel source untouched by anything at all, then all you must do is download the biggest patch that says 2.4.20-2.4.20wolk4.0s. But most likely you'll probabbly want to (and have to) start out with wolks "full kernel" hm, they now offer a 4.9 full kernel though so you could also download that instead of all those patches with the exception of the patch after that file.