How To Compile Linux Kernel On Ubuntu

linux OS

This time I will share about how to upgrade our ubuntu kernel. Incidentally, I also recently upgraded my ubuntu 11:10 kernel from 3.0.0 to 3.3.7. Actually there are several ways you can do:

  1. With the command sudo "apt-get dist-upgrade" on our terminals , < === this is done while online .
  2. Using the debian package , click here to find out how. < ==== Complicated for those who do not want to compile .
  3. Compiling our own kernel download, this one method that I will discuss at this time

Okay, we just started .
First we check first the latest kernel that has been stable at kernel.org . When I check its, the latest stable version immediately wrote is 3.3.7.
Next, still in the preparation stage perform the following steps :
Make sure we have updated GCC , done with the command
$ Sudo apt-get install gcc
Install ncurses development package
$ Sudo apt-get install libncurses5-dev
Then update the system
$ Sudo apt-get update && sudo apt-get upgrade
The second step :
Extract the kernel that we downloaded earlier to the folder /usr/src .
$ Sudo tar -xvf linux-3.3.7.tar.bz2 -C /usr/src/
Now we go into the folder .
$ cd /usr/src/linux-3.3.7/
$ sudo make menuconfig

The above command is used to configure the Linux kernel . After you run the command , you will get a pop up with a list of the menu and you can choose which items to a new configuration . If you are familiar with the configuration menu only check the ext4 file system and check if it ticked / selected or not . If not , select and save the configuration . See screen shot below for menuconfig .

compile kernel

 If you've completed and save, now compiling the kernel:
$ sudo make
 For installation command:
$ sudo make install modules_install
Now check the files in the folder / boot / if already there :

  • System.map-3.3.7
  • vmlinuz-3.3.7
  • initrd.img-3.3.7
  • config-3.3.7

If you can not find the file initrd.img-3.3.7 then you just need to make it .
$ Sudo update-initramfs -u -k 3.3.7

then restart your computer , then check with the command "uname -r".
kernel uname

Linux Is Mean Freedom (Short Linux History)

linux and pinguin


Linux is a computer operating system based on freedom ( or free / relatively affordable ) and open source software ( source code is open ) . Although there are many versions / linux that was developed at this time , but all Unix and Linux - based kernel , a kernel operating system first released October 5, 1991 by Linus Torvalds . Linux is an operating system for your computer . such as Mac and Windows systems , it provides basic computer services necessary for someone to do things with computers . It is the middle layer between the computer hardware and software / applications you run . Linux was developed by Linus Torvalds and a group of volunteer programmers who develop a core program of the system ( aka , the kernel ) .

History Chronology Linux :

  • April 1991 : From his dorm room at the University of Helsinki student Linus Torvalds began work on the operating system kernel itself , many people want to see if he could do it . As he was doing in the early development of Unix clone called Minix , he posted a note to the group Minix said , " I 'm making a free operating system ( just a hobby , will not be big and professional like gnu ) for 386 ( 486 ) AT clones " . Turns Torvalds wrong in his assessment of his record , linux potential .
  • May 1992 : More than a year after Torvalds began working on a pet project , the first comprehensive distributions of Linux , Linux System Solanding , thrown to the user . SLS offers incorporation over TCP / IP and X Windows .
  • July 1993 : Slackware Linux , which was developed by Patrick Volkerding , launched the first commercial Linux distribution . And to this day is the oldest Linux distributions and is still in development .
  • March 1994 : Linus Torvalds released Linux 1.0 , consisting of 176 250 lines of code . ( waw groggy when my dah ) .
  • April 1995 : Linux got its own trade exchange in the conference , the Linux Expo , which was created by Donnie Barnes at North Carolina State University . Barnes who works for Red Hat , who then took over the expo .
  • November 1998 : In the midst of a federal antitrust lawsuit , Microsoft lawyers presented a box of Red Hat Linux as evidence that Windows does not represent a monopoly in the OS market .
  • November 1999 : VA Systems launches SourceForge , which became the leading open-source project repository for Linux and other platforms .
  • October 2004 : Canonical releases Ubuntu 4.1 , aka " Warty Warthog " , which raised the bar for community developed Linux distribution with a six month release cycles and focus on the user experience .
  • January 2007 : Some of the leading mobile technology companies , including Motorola , NEC , Samsung , NTT DoCoMo , Panasonic , and Vodafone formed LiMo Foundation to collaborate on Linux -based smartphones . This is a major change in the Linux movement , and a sign of the arrival of Google's Android .
  • November 2007 : The Open Handset Alliance , which includes Google , Intel , Sony , HTC , Motorola , and 78 other companies , announces its presence by bringing Android . One week later , the OHA released the SDK for Android development .
  • October 2008 : The first commercial Android phone , the T-Mobile G1 , was sent to consumers , marking the emergence of Linux into the mainstream consumer computing devices . In mobile phones , Android will be able to compete with Apple's iOS , bringing Linux to the forefront of flatforms - war .

That was the story of how Linux was born and continues to thrive to this day . Today there are many so-called Varian of linux distro , you can view it directly in distrowatch  and kernel.org to find latest linux kernel.
Okay ,that's from me and KEEP LEARNING ...

How to Upgrade Ubuntu 12.04 Kernel With Debian Package

Ubuntu latest kernel has been released, it's time to upgraded our kernel. First downloaded the latest kernel in kernel.ubuntu.com. What we need is:
  1. linux-headers
  2. linux-headers-generic
  3. linux-image-generic
If you are using 32bit system, what you need is:
If you are using 64bit system, what you need is:
After The download completed, open the terminal and cd into directory that you have the new kernel and than use command “dpkg -i kernel-name”. 
  • for linux-headers


$ sudo dpkg -i linux-headers-3.2.0-030200_3.2.0-030200.201201042035_all.deb


  • for linux-headers-generic
$ sudo dpkg -i linux-headers-3.2.0-030200-generic_3.2.0-030200.201201042035_i386.deb

  • for linux-image-generic

$ sudo dpkg -i linux-image-3.2.0-030200-generic_3.2.0-030200.201201042035_i386.deb

If you got somes error, try to install module-init-tools 3.13 first, klik to download the module. And try again to install the kernel. After done rebbot your computer and you can check the new kernel with command “uname -r“.

oke thanks, keep learning and go OpenSource.