compiling

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

thanks
antmanAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

s_turner99Commented:
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!
0
DVBCommented:
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.
0
mzehnerCommented:
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.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Linux

From novice to tech pro — start learning today.