Posted on 1999-11-26
Medium Priority
Last Modified: 2013-12-15
where or how do I get the source and the program to compile my kernel "just want to see how much damage I can cause to my system" is it with the distribution disk for redhat
when I was loading it it showed me that it was going to be installed but I havent seen it yet

Question by:antman

Expert Comment

ID: 2237072
I installed RedHat 6.0 (2 CD-ROMs), and saw some notes that the source code was on the second CD-ROM.  But, it turns out that source code *was* copied from that first CD-ROM while I was installing Linux.  If you want to download it you can try www.redhat.com, but it would be a rather large download.  The source is also available from numerous other sites.

The program used to compile the kernel is simply the GNU C compiler, it is typically invoked from the "make" command.

You may want to try the following commands to recompile the kernel:

# cd /usr/src/linux
# make clean
# make config   (or make menuconfig or make xconfig)
# make dep
# make bzImage

(This info. originally came from rwenzla@lc)

Best of luck to you!

Expert Comment

ID: 2238888
The source is installed in /usr/src/linux directory. If it isn't there check for any srpm file on the CD. If that fails try linux*source*.rpm. Otherwise you can download the source from redhat.
There is an excellent HOWTO on recompiling th kernel. That should be in the /usr/docs directory.

Accepted Solution

mzehner earned 20 total points
ID: 2308367
The above two comments are correct.  However while you are doing the compile, on another terminal, reference the file "usr/src/linux/Documentation/Configure.help" and search on the various configurations you don't understand.  There are hundreds of options and it may take 2-4 hours to set your options while doing the "make config" command.  The system uses a ".config" file in the directory "/usr/src/linux" to store the setup from the last compile.  You can back this file up before changing it.  Also, if you use modules with your kernel, (you probably do) you will also have to do a "make modules", and "make modules_install".  
Note:  Before recompiling your kernel, you should back up your kernel (in "/boot", probably called vmlinux-2.2.12-20 or some variation thereof.) and backup your kernel modules in "/modules".  Also you should have an alternate way of getting to your system such as an emergency boot or another linux system on the same machine so if your new kernel crashes, you can recover.

Featured Post

Take Control of Web Hosting For Your Clients

As a web developer or IT admin, successfully managing multiple client accounts can be challenging. In this webinar we will look at the tools provided by Media Temple and Plesk to make managing your clients’ hosting easier.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I. Introduction There's an interesting discussion going on now in an Experts Exchange Group — Attachments with no extension . This reminded me of questions that come up here at EE along the lines of, "How can I tell the type of file from its cont…
This installment of Make It Better gives Media Temple customers the latest news, plugins, and tutorials to make their Grid shared hosting experience that much smoother.
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
Suggested Courses

594 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question