LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 06-01-2004, 10:37 PM   #1
itskiLLjoy
LQ Newbie
 
Registered: Aug 2003
Location: Tacoma, Washington
Distribution: Slackware
Posts: 18

Rep: Reputation: 0
Help with new kernel


I have a dedicated server running Slackware 9.1, and want to upgrade the kernel (to a newer version, and add some security modules). There is NOTHING in /usr/src/ and I am not 100% sure on what kernel options I am going to need.

Anyone have some suggestions on where I can look on the server to get more info before I screw it up and have to pay my host to fix it?
 
Old 06-01-2004, 10:53 PM   #2
Aeiri
Member
 
Registered: Feb 2004
Posts: 307

Rep: Reputation: 30
Kernel.org
 
Old 06-01-2004, 10:53 PM   #3
sh1ft
Member
 
Registered: Feb 2004
Location: Ottawa, Ontario, Can
Distribution: Slackware, ubuntu
Posts: 391

Rep: Reputation: 32
There are kernel compile guides all over this site you just have to look for them, i think theres a few stickied in linux-general. To get the source just go to www.kernel.org.
 
Old 06-01-2004, 11:01 PM   #4
itskiLLjoy
LQ Newbie
 
Registered: Aug 2003
Location: Tacoma, Washington
Distribution: Slackware
Posts: 18

Original Poster
Rep: Reputation: 0
I know where to get the kernel source and such, but my concern is that I will leave out an option in the kernel, and kill the server (since I have no physical access to the box, I have to get it right the first time). When configuring the kernel, will it by default select everything it will need to boot successfully (then whatever else I can add is optional)?
 
Old 06-01-2004, 11:09 PM   #5
sio
Member
 
Registered: Jul 2003
Location: Louisiana, US
Distribution: Slackware
Posts: 129

Rep: Reputation: 15
have you considered asking your host to upgrade it for you

The only safest bet is 2.4.26 but your situation sort of surprises me, im sure im not alone here. Who is your host? And do they actually want you to be doing something like this?
 
Old 06-01-2004, 11:12 PM   #6
itskiLLjoy
LQ Newbie
 
Registered: Aug 2003
Location: Tacoma, Washington
Distribution: Slackware
Posts: 18

Original Poster
Rep: Reputation: 0
I would just ask my host to do it fo me, but since I have an unmanaged dedicated server, any software upgrades/fixes/patches will cost me money... money I don't want to spend if I don't have to.

I want to move from 2.4.22 to 2.4.26 with the OpenWall patch.
 
Old 06-02-2004, 10:35 AM   #7
sio
Member
 
Registered: Jul 2003
Location: Louisiana, US
Distribution: Slackware
Posts: 129

Rep: Reputation: 15
[ edit - i made a lot of references to you having 2.4.24 when you actually have 2.4.22, just ignore me :P ]

Ah ok.

Well im not familiar with the open wall patch ( or any patches for that matter ) but to get to the 2.4.26 I would upgrade all slack packages related to the kernel. kernel-2.4.26*.tgz's. Get it from Slackware-Current. Then get the bare.i folder from the kernel directory of slackware-current.
unzip the System.map.gz as System.map

Now you should have 3 files;
bzImage
config
System.map

you can just remove or rename the old 'System.map' and remove the link 'config' from /boot

now copy your three files to /boot

on my particular box for now reason really i rename 'System.map' to 'System.map.upg' and then created a link
ln -s System.map.upg System.map
and renamed config to config26 and made another link
ln -s config26 config

The above isn't necessary though i just like them to be links just in case i do something stupid inside of the boot folder ( haven't done anything like that yet but who knows )

Now that thats done double check your work, inside of /boot you should have either these files themselves or links to the files, check the links by hovering your mouse over the files or if your in a command prompt just vi the link ( vi config )and if it comes up with junk exit vi.
sidenote: if your not familiar with vi and need to exit hold down shift and hit colon, let go of shift, type a 'q' without quotes and hit enter.

next open /etc/lilo.conf
you will see the following

# Linux bootable partition config begins
image = /boot/vmlinuz
root = /dev/hde1
label = Gate
read-only # Non-UMSDOS filesystems should be mounted read-only for checking
# Linux bootable partition config ends

simply change the line

image = /boot/vmlinuz

to say

image = /boot/bzImage

Save and exit
type
lilo
at the command prompt and if you want to install into the mbr if its necessary on your setup then after typing lilo, type
lilo -M /dev/hde -mbr

Of course change the device as appropriate for your setup.

If its a stock install of slack 9.1 then everything will work fine when you reboot. If you want to be on the safe side then you could just rename the current system.map and config of the 2.4.24 kernel with a .old extension and add the appropriate stuff into lilo.conf

Of course that doesn't get you the open wall patch i imagine eh?

NOW ONTO WHAT YOUR ACTUALLY ASKING

What I would do if i were you is see if they are using a stock kernel from the 9.1 cd. I would get an md5 checksum from the vmlinuz, config, and System.map from the /boot and compare it to the md5 checksum of the same files from a stock install of 9.1

If they match up, et voila install the kernel source from 9.1 then id probably install the kernel source files from kernel.org and get the open wall patch and apply it to the source; then simply copy the config file over from the 2.4.24 kernel source into the kernel source with open wall patch folder that you downloaded, and so on and so on. If you cant manage it from here confidently i probably wouldn't be messing with the server

Alternatively you could download the kernel-source from slackware-current ( which is 2.4.26 ) then download just the open wall patch from kernel.org and recompile. The config will already be there.

If your not familiar with compiling a kernel i wouldn't mess with your server, go read up on it.

Anyways I suggest doing a checksum and if they match up, roll with it

Last edited by sio; 06-02-2004 at 10:36 AM.
 
  


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
Kernel 2.4 in Zipslack (Waring: unable to open an initial console | Kernel Panic...) kurtamos Linux - General 2 05-10-2006 12:58 PM
Kernel-Patch Debian Logo 2.6.2 not correctly working for custom kernel 2.6.11 smp deepclutch Debian 3 06-27-2005 03:59 AM
kernel panic: try passing init= option to kernel...installation with Red Hat 9 kergen Linux - Hardware 1 09-30-2004 03:28 AM
Unable to build NVIDIA kernel module / determin kernel version Night Ink Fedora 2 05-31-2004 04:54 PM
Kernel 2.4.23 compile causes kernel panics on ATA RAID-1 (mirror) array Raptor Ramjet Slackware 3 12-18-2003 01:40 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 04:37 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
Open Source Consulting | Domain Registration