LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
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-19-2004, 07:28 PM   #1
HoosTrax
Member
 
Registered: Feb 2004
Distribution: Red Hat 9.0/Windows XP
Posts: 55

Rep: Reputation: 15
Updating Kernel


So I read the message on the LQ front page about some new security risk found and that we should update our kernel. I have the kernel update right here. Before I do anything with it, I've got some questions.

- Is doing an update a dangerous operation? (can it cause data loss)
- Do I have to be in failsafe or is it ok to be in KDE?
- Do I just do ./patch-2.6.3 and that's it?
 
Old 02-19-2004, 07:30 PM   #2
DrOzz
Senior Member
 
Registered: May 2003
Location: Sydney, Nova Scotia, Canada
Distribution: slackware
Posts: 4,185

Rep: Reputation: 59
here is a guide i put together for compiling the kernel ...
as of your questions, anything of this nature could be considered dangerous and you should always back up...
and it depends on what your kernel version is if you can just simply apply the 2.6.3 patch, but judging on the nature of your questions i would assume you still have a 2.4.x kernel in which the answer would be no, that you can not simply just run the 2.6.3 patch ...
 
Old 02-19-2004, 09:35 PM   #3
chakkerz
Member
 
Registered: Dec 2002
Location: Brisbane, Australia
Distribution: RedHat (RHEL, FC, CentOS), openSuSE, Mac OS X
Posts: 653

Rep: Reputation: 32
- Is doing an update a dangerous operation? (can it cause data loss)

Hmm ... that depends. If you don't do anything silly, like say ... over write your current (working) kernel. Yes. If you do lilo and don't take the error messages it spews to heart. Yes. If you stay cool and think logically (overwritting definitely working kernel bad, ignoring error messages bad) and follow a guide (preferably on paper, so when things don't work 100% you can still check it) you should be fine.

One thing to keep in mind is that you will need to get the graphics driver happening. Say of you are running nVidia's proprietary driver, you'll need top re-build that when the new kernel is running. Alternatively, if you don't have that to go, you will need a driver with your kernel which may require a quick alteration of /etc/X11/XF86Config to point to the kernel supplied driver.

This sounds complex, but really it is quite easy.

- Do I have to be in failsafe or is it ok to be in KDE?
Where you do it is relatively unimportant. I'd prefer KDE because using xconfig (supplied by the kernel source) you can really nicely configure it. But text or textmenu are options. It's fairly straightforward either way.

That said, you need to be root to do alot of this. this may be a problem or not ... depends on your philosophy of root use. But fire KDE up as root and you'll be fine.

- Do I just do ./patch-2.6.3 and that's it?
Never tried that. Not a friend of patches. I generally get the .bz2 file and go off that (bz2 is smaller than gz, but is more cpu intensive to decompress). So decomp it, make a symlink *or not*. cd to the dir, make xconfig, configure it, make clean bzImage, make modules, make modules_install, cp System.map and arch/i386/boot/bzImage, edit /etc/lilo.conf run lilo, reboot, rebuild the nvidia driver, startx

Easy. But like i said, have a guide, a detailed guide handy.
 
Old 02-19-2004, 10:33 PM   #4
Flitched
LQ Newbie
 
Registered: Feb 2004
Distribution: SuSE
Posts: 4

Rep: Reputation: 0
I'm in the need of help of updating my kernel, im a somewhat new to
linux, but i'm not that good at it, preferably need hands on help.
 
Old 02-19-2004, 10:35 PM   #5
DrOzz
Senior Member
 
Registered: May 2003
Location: Sydney, Nova Scotia, Canada
Distribution: slackware
Posts: 4,185

Rep: Reputation: 59
look at my post above ...
i gave a link
and thats all you need
try it and see how you get along ...
if you get errors, then just come back and we'll help you resolve them ..
 
Old 02-19-2004, 10:53 PM   #6
Flitched
LQ Newbie
 
Registered: Feb 2004
Distribution: SuSE
Posts: 4

Rep: Reputation: 0
Quote:
Originally posted by DrOzz
look at my post above ...
i gave a link
and thats all you need
try it and see how you get along ...
if you get errors, then just come back and we'll help you resolve them ..
Do you have a way i can contact you by? AIM/IRC?
 
Old 02-19-2004, 10:54 PM   #7
DrOzz
Senior Member
 
Registered: May 2003
Location: Sydney, Nova Scotia, Canada
Distribution: slackware
Posts: 4,185

Rep: Reputation: 59
the only way i suggest you contact me is through email which you can find in my profile ..

http://www.linuxquestions.org/questi...o&userid=31585

there to make it easier for you ..

Last edited by DrOzz; 02-19-2004 at 10:57 PM.
 
Old 02-19-2004, 11:04 PM   #8
Flitched
LQ Newbie
 
Registered: Feb 2004
Distribution: SuSE
Posts: 4

Rep: Reputation: 0
Quote:
Originally posted by DrOzz
the only way i suggest you contact me is through email which you can find in my profile ..
Quick question, does it matter which Kernel i update to? i just
installed SuSE v8.1, and it has 2.4.19 Kernel.

Last edited by Flitched; 02-19-2004 at 11:06 PM.
 
Old 02-19-2004, 11:07 PM   #9
DrOzz
Senior Member
 
Registered: May 2003
Location: Sydney, Nova Scotia, Canada
Distribution: slackware
Posts: 4,185

Rep: Reputation: 59
its all up to you on which kernel you want ...
just take note that there are different steps for kernel pre-2.6 (more steps)
i make a clear point in the guide as you will see in large red letters ..
 
Old 02-19-2004, 11:16 PM   #10
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 235Reputation: 235Reputation: 235
Re: Updating Kernel

Quote:
Originally posted by HoosTrax
So I read the message on the LQ front page about some new security risk found and that we should update our kernel. I have the kernel update right here. Before I do anything with it, I've got some questions.

- Is doing an update a dangerous operation? (can it cause data loss)
- Do I have to be in failsafe or is it ok to be in KDE?
- Do I just do ./patch-2.6.3 and that's it?
Though for anyone who is running 2.6.2 and wants to patch to 2.6.3 do this:

Download the patch and unzip it to your /usr/src directory.

Now run this command:

patch -p0 < patch-2.6.3

And this should patch your kernel. Then follow the standard steps to compile your new kernel.

Cheers.
 
Old 02-21-2004, 08:06 PM   #11
HoosTrax
Member
 
Registered: Feb 2004
Distribution: Red Hat 9.0/Windows XP
Posts: 55

Original Poster
Rep: Reputation: 15
I'm at the kernel configurations menu. It seems like there's a lot of drivers and options for components and devices I don't even have. Like PCMCIA, which I don't have since it's a desktop. And floppy support, which is probably useless since I don't have a floppy drive. And the default processor it picked for me was the Pentium III, but mine's a P4. Is it ok to change some of these configurations?
 
Old 02-21-2004, 09:49 PM   #12
DrOzz
Senior Member
 
Registered: May 2003
Location: Sydney, Nova Scotia, Canada
Distribution: slackware
Posts: 4,185

Rep: Reputation: 59
what do you mean "change some of these configurations" ?
i think you mean can you just "not select them"
and if that is what your getting at, then knock your socks off
cause if you dont' have them, and don't plan on having them, then there is no point compiling them, right ?
 
Old 02-21-2004, 10:58 PM   #13
HoosTrax
Member
 
Registered: Feb 2004
Distribution: Red Hat 9.0/Windows XP
Posts: 55

Original Poster
Rep: Reputation: 15
Mmm...

uname -r = 2.6.3

Thanks for the help DrOzz. That wasn't too horrible. The only things of note were that:

1) ALSA drivers were disabled by default, which I didn't realize until I tried to start up the new kernel and got an error message in XMMS, so I had to recompile it with the ALSA drivers.

2) The driver for my nic wasn't found and had to be reinstalled (yet again). Seems ok now.

I don't know what it is with my nic, but none of the distros I've tried seem to support it out of the box .
 
Old 02-21-2004, 11:25 PM   #14
DrOzz
Senior Member
 
Registered: May 2003
Location: Sydney, Nova Scotia, Canada
Distribution: slackware
Posts: 4,185

Rep: Reputation: 59
so are you saying that your good to go, or do you require more assistance ?
and i am glad it went smoothly
 
Old 02-21-2004, 11:28 PM   #15
HoosTrax
Member
 
Registered: Feb 2004
Distribution: Red Hat 9.0/Windows XP
Posts: 55

Original Poster
Rep: Reputation: 15
Well I'll likely need more help later on for something else , but not for this. Looks like I'm good to go.
 
  


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
updating Kernel? Greenman Linux - Newbie 2 10-07-2004 10:26 AM
Kernel Updating. TuxToaster Linux - Distributions 0 07-15-2004 03:16 PM
updating kernel -- help! grapier Fedora 4 01-12-2004 12:26 PM
updating the kernel ipconfig Linux - Software 4 12-03-2003 11:11 AM
Updating the Kernel PionexUser Linux - Newbie 3 07-18-2003 09:04 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:01 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