Subscribe

Category: Ubuntu

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

1

$tar-xjvflinux-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:

1

$cd linux3.5.3

Step 4: Kernel Configuration

Now type:

1

$make menuconfig

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

1

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

1

$make

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

1

$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

1

$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,

1

# make modules_install

And then type last one

1

2

3

4

# 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

1

# reboot.

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.

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)
where,
d = directory
r =read
w=write
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

DONE..
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.