Build Custom Kernel in UBUNTU (With disabled USB and Bluetooth)

Today Lets make our own OS/Kernel, which doesn’t support USB and BLUETOOTH. After reading this article, you are able to make any kind of your kernel, like disabled graphics disabled Soundcard; you can also disable your CD-ROM, WLAN, MULTIMEDIA. In short you can make your own OS/Kernel as per your requirement. 

Here, we are going to make a kernel, which doesn’t support USB, Bluetooth. This kind of OS is mostly used in Cyber Cafe, Education Department, School or offices, at which security of data is very important. So let’s concentrate on our pretty interesting task: (yes, every tough task could be make easy by just make it interesting)

Ok, let’s start our process:

Step 1: Get Latest Linux kernel code 

Visit and download the latest source code. File name would be Linux- x.y.z.tar.bz2, where x.y.z is actual version number. For example file linux-3.5.3.tar.bz2 represents 3.5.3kernel version. Download it on your desktop path now; you have kernel linux-3.5.3.tar.bz2 on your desktop

[Create a folder on desktop with a name (avoid space in name). suppose we make folder “jimit” (without quotes), copy your linux-3.5.3.tar.bz2 file in this folder]

Step 2: Open Terminal and direct your path

Open terminal (CTRL+ALT+T) and type a path of that folder in which you copied your kernel

After reaching to your folder, here it is “jimit”, you can check your kernel by just type a command: ls (it’s not required)

[NOTE: during whole process, you need not require to write $ or # symbol, you have to just type commands]

Step 3: Extract your kernel

Now, this kernel file is like a rar file, you have to extract this file for that type this command

[ Here, Linux -x-x-x means type your kernel version like Linux -3.5.3.tar.bz2,after typing this  command ,this file will be extracted on same folder.]

Now, after extracting this folder, go in to that extracted folder and type:

Step 4:  Kernel Configuration

Now type:

[if its not work,then you have to install ncurses library,for that just type:]

As you type this command, after little process one blue window will open

Here, for disable USB support, go on to device drivers and then in Submit space up to   when   * or M symbol is removed. For disable this supports, there must be a null before it.
[For back window, hit Esc key for two times]
same for Bluetooth just go in network support, and then in Bluetooth.hit space and disable it but giving it null. Now for save and exit, hit Esc key two times, and give yes for save & quit.
After extracting and support changes, type one another command

Type this command and sleep for 3 hours (dual core processor people),i3,i5 processor  people can sleep just for 1-2 hours. yes, if you have dual core processor or any old processor ,this process will take 3 hours, else it will take 1-2 hours.

Now wake up, process is almost done.

Step 5: Buildup Module

Now, type another command

Step 6: Become Root user

After all this commands, you have to become a root user, means you have an authority for doing any changes by commands, for that type this commands


As you type this, system will ask you for password, give it, and you can see $ symbol is replaced by # symbol, it means you are a root user, then type another command,

And then type last one

It’s done. Now just type

And system will restart. As you can see at the starting of system, you have an option of kernel, select your kernel (for here it is 3.5.3) and access it, in which you are not able to access your USB and BLUETOOTH.

Share and Comment if you like the post or Have any query.

Thanks, Good Day

Lock your Private Folder in Ubuntu

Hello everybody, Today we are going to learn that, how to lock our private folder, file in Ubntu in just few mins. It’s mainly used when we need to secure our important data from others.

Here,we just remove the permission read(r) ,write(w) and execute(x) of file, then it will automatically be locked, and for that we just need to write a few commands.

Before that lets make a folder xyz on desktop. We are going to lock this folder “xyz”. 

Step 1: Open terminal (CTRL+ALT+T)

Then go to on your folder path,here,our folder is on desktop.
Then type:

Step 2: cd Desktop

then type:

step 3: ls -l

Now,here you can see folder name “XYZ”,2nd line from bottom. [here,GREEN BOX]
Exactly in that first row, you can see like this
drwxrwxrwx ( it shows the permission of xyz file)
d = directory
r =read
x= execute.
Now, we want to lock this xyz file, means remove permission of read, write and execute
then just type:

step 4:  chmod 000 xyz

now go to that file, and try to open that file..

this is our file location,on which you can see like cross symbol,which indicates that you dont have permission to open this file. if you are trying to open this file, you will get error like this.

now to UNLOCK this folder,
type in terminal

step 5: chmod 777 xyz

after giving this command, you can see on folder that,cross symbol is magically removed, that means now you are able to access this folder.

So,in short,by this way you can lock any folders,files.

Overview of commands: 

  2. cd Desktop ( what ever your file location)
  3. ls -l
  4. chmod 000 xyz ( it will lock the file.)
  5. chmod 777 xyz (it will unlock the file)