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 http://kernel.org/ 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
$ tar -xjvf linux -x -x -x.tar.bz2
[ 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:
$ cd linux 3.5.3
Step 4: Kernel Configuration
$ make menuconfig
[if its not work,then you have to install ncurses library,for that just type:]
sudo apt-get install ncurses-dev
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
$ make modules
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
$ sudo su
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,
# make modules_install
And then type last one
# make install # cd /boot # mkinitrd -o initrd.img-3.5.3 3.5.3 (or use mkinitramfs) # update-grub
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