LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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!

Notices


Reply
  Search this Thread
Old 02-14-2004, 02:32 PM   #1
dkretz
LQ Newbie
 
Registered: Nov 2003
Posts: 4

Rep: Reputation: 0
need direction to step by step process


can someone direct me to step by step instructions on how to download, compile, and implement a new kernel.

i've been fed up with redhat/fedora/suse/mandrake and am ready commit to debian until i can get it to work (have attempt a couple of installs that were thwarted by my nvidia geforce 2 - though i found a couple more resources for that). i can get through the install fine (except for g-card, of course), but i feel that not being able to compile my own kernel and apps from source is really holding my back from not going back to MS. i love apt-get as well.
basically what i'm looking for here is post deb 3 install command line instructions; ie:

1. wget ftp or http path/whatever.org/latest_stable_kernel
*what directory to save it to, and whatever other apts i may need to apt-get

2. if tar is needed, what are the best options to use ( -xv... )

3. what to use to compile it and it's -options

4. how to implement it and lose the old kernel


hopefully this is already out there somewhere.
- this would be greatly appreciated by someone who desperately wants to get away from MS products.

thanks a million


-dave
 
Old 02-14-2004, 02:43 PM   #2
DrOzz
Senior Member
 
Registered: May 2003
Location: Sydney, Nova Scotia, Canada
Distribution: slackware
Posts: 4,185

Rep: Reputation: 59
kernel compile howto

well the above link is a guide i wrote in step by step fashion with each step explained ...
as of tarballs it depends ...
if you have a file ending in tar.bz2 then use
tar -jxvf filename.tar.bz2
if it ends in tar.gz then you type
tar -zxvf filename.tar.gz

as of the other general questions i think you get your answers in some way shape of form in the link above ..
 
Old 02-15-2004, 02:36 PM   #3
dkretz
LQ Newbie
 
Registered: Nov 2003
Posts: 4

Original Poster
Rep: Reputation: 0
this tutorial is great but...

ok, heres where i am:

installed debian w/ 2.2 kernel.
wgot the the 2.6.2 kernel from kernel.org
changed directories to /usr/src
used "ls -alc" command which produced:

"total 8
drwxrwsr-x 2 root src 4096 Feb 14 17:51 .
drwxr-xr-x 13 root root 4096 Feb 14 19:07 .."

it appears the next instruction you give is "file linux". i get an error returned : "linux: can't stat 'linux' (No such file or directory)."

i moved on from there and tried your next command : "rm linux". in this case i get the following error message: "rm: cannotremove 'linux' : No such file or directory"

is there supposed to be a "linux" directory in /usr/src/ ?

i don't want to miss anything here; what am i doing wrong?

feeling close and needing assistance,

dave
 
Old 02-15-2004, 04:18 PM   #4
SciYro
Senior Member
 
Registered: Oct 2003
Location: hopefully not here
Distribution: Gentoo
Posts: 2,038

Rep: Reputation: 51
/usr/src/linux is usualy a symlink to your linux source tree(its not required and in reality is only there so some exretnal kernel modules (like alsa, or bestcrypt or some other moduels that come from outside the kernel) can just guess the source is /usr/src/linux it also makes it so you type less),

note :when you start configureing the kernel be sure to read the help for every option even if you think ou knwo what it is (just to be sure you knwo what it is, and what other options it might require you to ahve set/unset)
 
Old 02-15-2004, 07:25 PM   #5
heema
Senior Member
 
Registered: Sep 2003
Location: Egypt
Distribution: Arch
Posts: 1,528

Rep: Reputation: 47
u could check : http://www.desktop-linux.net/debkernel.htm

its for compiling kernal 2.6 on debian
 
Old 02-15-2004, 07:58 PM   #6
DrOzz
Senior Member
 
Registered: May 2003
Location: Sydney, Nova Scotia, Canada
Distribution: slackware
Posts: 4,185

Rep: Reputation: 59
Quote:

"total 8
drwxrwsr-x 2 root src 4096 Feb 14 17:51 .
drwxr-xr-x 13 root root 4096 Feb 14 19:07 .."

it appears the next instruction you give is "file linux". i get an error returned : "linux: can't stat 'linux' (No such file or directory)."
i moved on from there and tried your next command : "rm linux". in this case i get the following error message: "rm: cannotremove 'linux' : No such file or directory"
is there supposed to be a "linux" directory in /usr/src/ ?
i don't want to miss anything here; what am i doing wrong?
as you can see in the directory listing you don't have anything in there, so thats why you couldn't use the "file" command nor the "rm" command cause nothing is there to run them on ...
so no your not doing anything wrong, all that that meant is that you didn't have your kernel source install for whatever kernel your currently running ...

so you should have just skipped to the step that states :
tar -zxvf linux-x.x.x.tar.gz
**"unpack the tarball (new kernel)"**

to untar the new kernel and start the process ;-)
 
  


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
Step-By-Step Instruction to install Linksys WPC11 Ver.4 Wireless Card Zypher Linux - Hardware 8 08-12-2009 11:43 AM
Step by Step guied for Installation pent@net Dvb card under linux mobassir Linux - Networking 4 06-07-2006 08:31 PM
I need a step by step help to instal Suse 9.3 Pro on the same hdd as XP Home & 2003 suse91pro Linux - General 4 09-07-2005 02:15 PM
Step-by-Step: Making integrated Broadcome wireless adapter work with Mandrake 9.2 jmp875 Linux - Wireless Networking 16 06-30-2004 01:50 AM
Step-by-step to set up a RedHat Linux box for use as a Windows Server? Hercules Linux - Software 2 11-17-2003 12:16 AM


All times are GMT -5. The time now is 06:50 PM.

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