How to compile custom kernel in Ubutntu ?

Today we will initiate first step to create our own kernel. So carefully following steps to build kernel inside ubuntu.I am using 64-bit ubuntu 13.10.

First of go to www.kernel.org and download any kernel version (recommended latest stable version)

After downloading Right-click and extract here.

then open terminal (CTRL+ALT+T)

STEP 1: Enter into root user

su

roor

enter your root password.

If it gives any error even if you are typing your password then reset it by  typing sudo root passwd.

then enter new unix password that’s it.

Now enter into root user.When you enter into root user $ will become # in terminal.

step 2:

type cd Downloads/ to change your directory

and create directory named kernel by typing mkdir kernel

Screenshot from 2015-03-09 21:20:10

step 3:

For a while open your Download folder into ubuntu .

copy linux-x.x.x to kernel directory.

step 4:

Now we need to install some necessary packages inside system so

open new terminal (CTRL+ALT+T) and type

sudo apt-get install gcc libncurses5-dev dpkg-dev

Screenshot from 2015-03-09 21:14:27

xx

step 5 :

After completion of installation Open new terminal (CTRL +ALT +T )

again enter into root user and type your password

change directory type

cd Downlods/kernel/

ls

x

cd linux-3.10.71

choose as per your version instead using linux-3.10.71

step 6 :

ls

make menuconfig

w

y

after some time new GUI will appear inside terminal

gui

select general setup

then local version- append to kernel release

z

now give any name there .I have given punit-custom

punit-custome

then ok

save

save the customization. and click on exit until you come to default terminal window.

step 7:

make -j 3 KDEB PKGVERSION=1.punit-custom deb-pkg

make

you have to type your custom name instead of punit-custom

It will take around 30 minutes …

Final step : sudo dpkg -i ../linux*.deb

now reboot your computer.you will final custom kernel in your advance option

How to make Bootable pendrive with command prompt Linux(Without any software ….:-) …)

Sometimes we need to boot the windows 7 into pen drive from Linux operating system.Terminal is good friend of us then why to go for any software .we can make pen drive bootable without any software .Lets see how…!! 😉

  1. Plug in the pen drive and determine the device it’s mounted on with the command:

sudo fdisk -l

2. Umount the device

umount /dev/sdc1

In my case suppose its sdc1 , in your case it may be different.here dev means device

3. Format the pendrive

sudo mkdosfs -n ‘USB-Drive-Name’ -I /dev/sdc -F 32

4.Make the ISO file recognizable to BIOS by using following command

isohybrid filename.iso

5.This step is to copy the ISO file from original location to pendrive

sudo dd if=filename.iso of=/dev/sdc bs=4k

Here write root of your device name for example if your device shown as sbd1 then here write /dev/sbd.

6. Finally before ejecting do following commands:

sync
sudo eject /dev/sdc

That’s it. Very welcome to any queries. any one can issue a topic I can elaborate on that. 🙂