Skip to main content

How-to compile and install Linux Kernel 3.18 On ubuntu, Debian and linux Mint


Tip: Watch the video full screen and HD.

In this video i am going to show how-to compile and install the linux 3.18 Kernel on ubuntu, linux Mint and Debian. The kernel will be compiled to deb packages for better management and if needed easy to uninstall in the end of the video i am going to show how you can easily uninstall the kernel in case of any problem.

The Linux kernel is the operating system kernel used by the Linux family of Unix-like operating systems.It is a prominent example of free and open source software.
The Linux kernel is released under the GNU General Public License version 2 (GPLv2)(plus some firmware images with various non-free licenses), and is developed by contributors worldwide. Day-to-day development discussions take place on the Linux kernel mailing list.
The Linux kernel was initially conceived and created in 1991 by Finnish computer science student Linus Torvalds. Linux rapidly accumulated developers and users who adapted code from other free software projects for use with the new operating system.The Linux kernel has received contributions from thousands of programmers.
All Linux distributions released have been based upon the Linux kernel.

Commands

Create a folder named kernel

Download the Kernel to the folder from: 
www.kernel.org

Extract the file 

Open a terminal window

Install the necessary tools to compile the linux kernel
sudo apt-get install gcc libncurses5-dev dpkg-dev

Enter the directory of the extracted kernel source
cd kernel/linux-3.18

Configure the Kernel
make menuconfig

In this menu you can customize your kernel

Save and exit

Compile the kernel
make -j 5 KDEB_PKGVERSION=1.yourcustomname deb-pkg

Get a cup of coffee or a beer because is going to take a while :)

Install the kernel
sudo dpkg -i ../linux*.deb

Reboot

You can easily uninstall the kernel with the command:
sudo apt-get purge linux-image-3.18.0 linux-image-3.18.0-dbg

DOWNLOAD
www.kernel.org


Popular Posts