LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This 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.

Notices


Reply
  Search this Thread
Old 12-18-2003, 03:33 AM   #1
Q-collective
Member
 
Registered: Jun 2003
Location: Netherlands
Distribution: Gentoo, obviously
Posts: 113

Rep: Reputation: 15
Kernel installing


Ok, I want to install the kernel (version 2.4.23) and downloaded the linux-2.4.23.tar.bz2 to do so.
However, how do you compile the kernel anyway? The online kernel howto is offline for a long time now and I want to upgrade to fix the security issue that I now have (I'm now in kernel 2.4.22).
My guess is to compile in the ordinary way:
1. ./configure
2. make
3. make install

Is this the right way?
Thank you!

Last edited by Q-collective; 12-18-2003 at 04:26 AM.
 
Old 12-18-2003, 04:36 AM   #2
rootboy
Member
 
Registered: Oct 2001
Distribution: Mint 15
Posts: 770

Rep: Reputation: 51
You should be afraid, very afraid.

Read the kernel HowTo for starters,

http://www.icewalkers.com/Linux/Howto/Kernel-HOWTO.html


For the impatient (from the doc itself):

1) Unpack the sources
2) Optional - You can copy the .config file from your old linux kernel source tree to new kernel tree (may save time, if you want to reuse the old settings).
3) make clean; make mrproper
4) make xconfig
5) make dep
6) make
7) make bzImage
8) make modules
9) make modules_install
10) make install
11) configure LILO or GRUB.
12) Optional - make clean (If you want to free up disk space)

Make a boot disk before doing any of this and be sure that it works. There are no end of the number of things that can go wrong here and you will surely experience at least one of them.

FYI: The 2.6 kernel is out, if you are going to wreck your system anyway, why not go for the latest-n-greatest?


John
 
Old 12-18-2003, 10:21 AM   #3
timdsmith
Member
 
Registered: Nov 2003
Location: The Colony, TX
Distribution: Slackware, Debian Etch, FreeBSD, MicroSh*t free.
Posts: 209

Rep: Reputation: 30
Another FYI. If you want to use your old .config file, you'll want to copy it to your new source tree AFTER doing make mrproper. Because make mrproper wipes it out.
 
Old 12-24-2003, 03:41 AM   #4
rootboy
Member
 
Registered: Oct 2001
Distribution: Mint 15
Posts: 770

Rep: Reputation: 51
Quote:
Originally posted by timdsmith
Another FYI. If you want to use your old .config file, you'll want to copy it to your new source tree AFTER doing make mrproper. Because make mrproper wipes it out.
I think for 2.6 they warned you not to do this (usually you can).


John
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Installing Kernel 2.6.8.1 - Kernel Panic error shaun85 Linux - Newbie 10 07-16-2007 05:20 PM
Ndiswrapper - Cant find kernel sources while installing (Kernel 2.6.11) krayhze Linux - Wireless Networking 6 05-23-2006 07:30 AM
Kernel panic problem with all of my kernels after installing new kernel nosebleed Linux - Software 2 04-14-2006 10:48 PM
Kernel panic when installing a new Kernel NeeD_ResT Debian 2 10-16-2004 09:10 PM
installing 2.2.10 kernel on Redhat 8.0 (kernel 2.4.18-20) sumit_nus Linux - Software 5 07-31-2003 04:06 AM


All times are GMT -5. The time now is 02:20 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration