Results 1 to 15 of 15
Thread: Compiling Linux kernel
-
04-20-2004, 10:20 AM #1Web Hosting Guru
- Join Date
- Mar 2003
- Posts
- 345
Compiling Linux kernel
My server is RedHat Linux 9.0. My hosting provider installed the kernel from source.
This directory is exists :
/usr/src/linux
(1) Is it ok to recompile the kernel remotely ? So I will ssh to this server and recompile the kernel.
(2) I just want to change ONE of the compile option, from CONFIG_IP_MULTICAST=y to CONFIG_IP_MULTICAST=n, can anyone teach me how to do this ?
I have never recompiled a kernel before. But I do understand most basic linux commands/tasks.
Thank you.
-
04-20-2004, 10:27 AM #2Web Hosting Master
- Join Date
- Dec 2001
- Posts
- 5,221
Greetings:
Check out the following articles and how to's:
http://www.linuxheadquarters.com/how...lreasons.shtml
http://www.linuxplanet.com/linuxplanet/tutorials/202/1/
http://www.bigwebmaster.com/General/...es/kernel.html
Thank you.
-
04-20-2004, 10:51 AM #3Web Hosting Guru
- Join Date
- Mar 2003
- Posts
- 345
Thanks for the info, but I just want to change ONE of the compile option, the rest should be the same with current compiled kernel. If I must go through the menuconfig, I afraid that I will make a mistake.
Can I just edit /usr/src/linux/.config ?
I saw that file.
-
04-20-2004, 01:04 PM #4Web Hosting Master
- Join Date
- Jul 2003
- Location
- Kuwait
- Posts
- 5,104
yes you can, and then remake the kernel.
However, you will have to reboot the server for the new kernel to take effect.
-
04-20-2004, 02:40 PM #5Newbie
- Join Date
- Jun 2003
- Location
- Kansas City
- Posts
- 7
'cd /usr/src/linux'
'make menuconfig'
Go reset the option that you want to change, and exit saving changes.
then type,
'make dep; make bzImage; make modules; make modules install'
'cd /usr/src/linux/arch/i386/boot/' (this SHOULD be the right dir, i'm doing this from memory..
'cp bzImage /boot/vmlinuz-2.4.xx'
Then edit /etc/lilo.conf to point to the new kernel.
type 'lilo' and make sure it updates the new kernel entry.
Reboot and you should be fine. =)
Be careful not to mess with the hardware specific stuff unless you know exactly what you've got in there.
-
04-20-2004, 05:40 PM #6New Member
- Join Date
- Feb 2004
- Posts
- 1
same problem
-
04-21-2004, 05:19 AM #7Web Hosting Guru
- Join Date
- Mar 2003
- Posts
- 345
so, 'make menuconfig' will read/use all the previous options (current kernel) ?
-
04-21-2004, 06:40 PM #8Retired Moderator
- Join Date
- Jul 2001
- Location
- Singapore
- Posts
- 1,889
Originally posted by kapot
so, 'make menuconfig' will read/use all the previous options (current kernel) ?
Code:make oldconfig
http://www.webhostingtalk.com/showth...hreadid=232664Giam Teck Choon
:: Join choon.net Community today to share your tips and tricks on server issues please ::
:: Singapore Dedicated Servers :: Singapore Virtual Private Servers :: Linux/FreeBSD Server Management ::
-
09-07-2004, 07:47 PM #9Junior Guru Wannabe
- Join Date
- Jun 2004
- Location
- CALIFORNIA
- Posts
- 30
Would the append option work in lilo.conf ???
-
09-08-2004, 01:51 PM #10Newbie
- Join Date
- Sep 2004
- Location
- Kansas City, Missouri
- Posts
- 20
What kernel version is this? 2.4 and 2.6 compile totally different.
-
09-08-2004, 01:54 PM #11Web Hosting Master
- Join Date
- Jun 2003
- Location
- UK
- Posts
- 6,616
If you aren't happy doing it I would advise giving rack911.com a shout as I'm sure they can do it for a reasonable fee
rusRuss Foster - Industry Curmudgeon
Freelance Sysadmin for Hire - email vaserv@gmail.com
-
09-08-2004, 02:31 PM #12Disabled
- Join Date
- Aug 2004
- Location
- India
- Posts
- 48
Originally posted by Techie411
Would the append option work in lilo.conf ???
-
09-08-2004, 07:01 PM #13Newbie
- Join Date
- Oct 2003
- Posts
- 25
cd to the dir of the kernel then 'make menuconfig'
easy as pie
-
09-08-2004, 08:48 PM #14Junior Guru Wannabe
- Join Date
- Sep 2004
- Location
- Florida
- Posts
- 49
Its no differnt them compiling a linux kernel on your desktop.. Its easy really.. Many guides on linuxquestions.org.. Just have to ssh first..
-
09-08-2004, 11:05 PM #15Junior Guru Wannabe
- Join Date
- Apr 2004
- Posts
- 40
It may be "easy", but even the pros sometimes slip up. Some important things to note are if you use ramdisk, and making sure you include ALL of the correct drivers. If you mess up, your machine wont boot up and you might have to pay your hosting company an hours work to fix the problem.