Compiling the Kernel

Monday, March 8th, 2010

The other day my friend Marty was having some interesting problems. His USB ports were randomly dropping. Seriously, mouse working fine and then BAM! No more mouse. At first I thought it was a hardware issue and that he would need a RMA to get a new motherboard. But after some google searching we found this bug on Launchpad that basically says there is a kernel bug with this particular Nvidia USB controller.

So, we went with the latest stable kernel that doesn’t suffer from this bug.

I have written about compiling the kernel before, but didn’t include a link. For instruction on how to compile the kernel I followed this post.

Some instructions need to be different for ubuntu. For instance, instead of ‘su -’ for ubuntu you should use ‘sudo -i’ to get a root shell. Also ‘mkinitrd -o initrd.img-2.6.25 2.6.25′ should actually be ‘mkinitramfs -o …’ Small differences but this points out a great part about Linux. Although these instructions may be for a different distro, in this case CentOS, you can still use them as guidelines.

Mac OS and Viruses 2

Tuesday, December 16th, 2008

The other day I wrote a post about Mac OS and it quietly suggesting that people install anti-virus software. I want to bring up this link shown to me by my friend JC. In short, Apple has removed the knowledge-base article suggesting Mac OS users install anti-virus software. The reason that they removed this is that “The Mac is designed with built-in technologies that provide protection against malicious software and security threats right out of the box.”

Joseph brought up a great question, why are Operating Systems built on a *nix kernel more secure against malicious software than Windows. I think there are some fundamental reasons why this is true. First, Unix/Linux OS are actually multi user. Yep, I would contend that even though Windows can have ‘multiple’ users, it is not actually a multi user operating system. Let me explain. Unless you actually have a SysAdmin that is going to change it, Windows by default will let anyone look at, write to, and execute any file regardless of who’s file it is (Windows files don’t actually have ‘owners’). So, who cares that it isn’t a multi user system? Well, instead of having programs that are restricted to specific services based on which user it is actually running under any program can do anything and has access to any service.

With any file having access to anything it brings up the second point. Unix style systems keep the operating system separate from the other programs. Windows does not protect itself in any way. It will let any program install and even change vital system dll’s within the Windows32 folder. Further more it will do this with no verification that this is actually being run by someone with proper authority.

Now any system could be compromised depending on what software is run. It is important to know and trust where software is coming from. Most Linux/Unix software comes from online repositories that are verified by GPG key. If someone has changed the repository the package management system will throw up a warning. Furthermore the majority of software that is not received from an online repository will give an md5 sum to verify that the package hasn’t been tampered with. By way of contrast Windows updates, and software for windows received off the internet has no verification method whatsoever.

I’m sure that more experience will lend to more reasons for greater system strength. If anyone has further thoughts on this I would love to hear it.

It Worked!!!

Friday, August 15th, 2008

So, although the title may be very ambiguous I am very pleased to say that I compiled a kernel from source and it works.

I was having really bad wireless issues and after two days of trouble shooting with some of the best in networking that I know I tried the kernel and wham! I am back in business.

Compiling the kernel was rather easy, and the benefits really would make me consider doing it again.

  • My machine runs cooler
  • no wireless issues (w00t!)
  • Now have support for some of the latest and greatest out there.
  • My grub entry says “Home Made Linux” which is just fun.

So, for what it is worth. Doing this wasn’t very hard, and for me has had some noticeable benefits (although speed is not one of them. It seems to run the same there. Go figure )