<body><script type="text/javascript"> function setAttributeOnload(object, attribute, val) { if(window.addEventListener) { window.addEventListener('load', function(){ object[attribute] = val; }, false); } else { window.attachEvent('onload', function(){ object[attribute] = val; }); } } </script> <div id="navbar-iframe-container"></div> <script type="text/javascript" src="https://apis.google.com/js/plusone.js"></script> <script type="text/javascript"> gapi.load("gapi.iframes:gapi.iframes.style.bubble", function() { if (gapi.iframes && gapi.iframes.getContext) { gapi.iframes.getContext().openChild({ url: 'https://www.blogger.com/navbar.g?targetBlogID\x3d6651501\x26blogName\x3dNotes+on+tech\x26publishMode\x3dPUBLISH_MODE_BLOGSPOT\x26navbarType\x3dBLACK\x26layoutType\x3dCLASSIC\x26searchRoot\x3dhttp://ypjain-notesontech.blogspot.com/search\x26blogLocale\x3den_US\x26v\x3d2\x26homepageUrl\x3dhttp://ypjain-notesontech.blogspot.com/\x26vt\x3d8064441079851785414', where: document.getElementById("navbar-iframe-container"), id: "navbar-iframe" }); } }); </script>

Notes on tech

Notes on technology, business, enterpreneurship, economy, markets along with interesting general tidbits.


Debian kernel compile

4/15/2006 03:09:00 PM, posted by anand

Waiting for the Debian kernel to compile so that I can sleep. Its almost 3.40 AM here.

I am resuscitating my server. Plan to bring back "FooBar Search Alerts".

Update:
The kernel recompiled successfully and now I have SMP (multi processor) support on my server.

Here is how you can recompile the Debian kernel to enable SMP support (or perform any other tweaks):

Caveat: This worked for me. I am not sure it will work for you or not. Take the usual precautions. Backup your stuff. Read the Debian documentation. Ask the experts. My server is an Intel x86 Dual proc machine.
  • apt-get install kernel-package libncurses5-dev fakeroot wget bzip2
  • cd /usr/src
  • wget http://www.kernel.org/pub/linux/kernel/v2.6/linux-2.6.16.tar.bz2 (you just just goto http://www.kernel.org/pub/linux/kernel and find a kernel version that you want to install. I am not getting into the how and why).
  • tar xjf linux-2.6.16.tar.bz2
  • cd linux-2.6.16/
  • make menuconfig
This should open up a menu like configuration. You can go around and tweak all the options. Be sure to enable support for SMP and specific the number of processors.

One you are done, exit.
  • make-kpkg clean
  • fakeroot make-kpkg --initrd --revision=custom.1.0 kernel_image
  • cd ../
  • dpkg -i kernel-image-2.6.16_custom.1.0_i386.deb
  • At this point, you have installed your ner kernel. So reboot the server.
  • One it comes back up (hope it does) try: uname -a
Have fun!
« Home

»