Results 1 to 15 of 15
  1. #1
    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.

  2. #2

  3. #3
    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.

  4. #4
    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.

  5. #5
    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.

  6. #6
    same problem

  7. #7
    Join Date
    Mar 2003
    Posts
    345
    so, 'make menuconfig' will read/use all the previous options (current kernel) ?

  8. #8
    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) ?
    You will need to copy your old kernel config to the kernel source directory then run:
    Code:
    make oldconfig
    You might want to see my little HOWTO to get some ideas although it isn't fix in your need exactly:
    http://www.webhostingtalk.com/showth...hreadid=232664
    Giam 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 ::

  9. #9
    Join Date
    Jun 2004
    Location
    CALIFORNIA
    Posts
    30
    Would the append option work in lilo.conf ???

  10. #10
    Join Date
    Sep 2004
    Location
    Kansas City, Missouri
    Posts
    20
    What kernel version is this? 2.4 and 2.6 compile totally different.

  11. #11
    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

    rus
    Russ Foster - Industry Curmudgeon
    Freelance Sysadmin for Hire - email vaserv@gmail.com

  12. #12
    Join Date
    Aug 2004
    Location
    India
    Posts
    48
    Originally posted by Techie411
    Would the append option work in lilo.conf ???
    Yes. It would.

  13. #13
    cd to the dir of the kernel then 'make menuconfig'

    easy as pie

  14. #14
    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..

  15. #15
    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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •