Monthly Archives: September 2012

I am Friday

Some say i’m unlucky,
A few feel i’m the day for the dead,
But still most, love me,
Because my name is Friday.

Its true that the dead arise,
Those burried in coffins of work,
Friday nights turn wild,
When everyone is free from chains.

I’m like the summer showers,
That gives a relief.
Though short lived,
It gives all a chance to live.


Sharing Internet over Wifi Between Ubuntu and Android

I searched the internet alot for a solution to connect my PC’s internet to my android phone by creating a hotspot. In windows you have softwares like connectify to make your life easy, But in linux things are not so easy, and I was never a windows guy. I hated to logon to windows just to share the internet over wifi to my android phone. I spend many sleepless nights trying to configure hostapd in Ubuntu and make it connect to my Android. And finally after days of searching and experimenting that wonderful day of bliss occurred to me. I have combined information I received from various sites in this post.

Initially when I shared my problem in certain groups I got the advice to set up an ad-hoc wifi network in ubuntu, but Android 2.3 and lower versions do not detect ad-hoc network so that means you either have to root your phone and ad the necessary features or you have to go for an alternative way.

I was definite that there will be an alternative because in windows there are softwares like connectify that do the job, and in linux we have hostapd.

So let me get directly to the point.

Open a terminal and type


It will show the network adapter available to you.


Shows that it uses the ath9k drivers (this information may help you to google for setup information specific to your machine.)



will give you the name of your wireless adapter like wlan0. Please notedown this name as you will be needing it later on.

Now its time to install the packages.

Either fire up the ubuntu software center and install hostapd and dhcp3-server, or fire up the terminal and type

#sudo apt-get install dhcp3-server
#sudo apt-get install hostapd

After this is done we have some serious editing to do so create a backup of all the files that are being edited.

In a terminal:

#sudo gedit /etc/hostapd/hostapd.conf

When the file is opened make the contents of the file as below.

wpa_pairwise=TKIP CCMP

In this file we have declared that our wifi hotspot will be called geekpeek, it is using the adapter wlan0, and it should have a password which the connecting device has to enter. Save the file.


#sudo gedit /etc/default/isc-dhcp-server

Edit the line that says




Then edit

#sudo gedit /etc/dhcp/dhcpd.conf

Make sure the follow lines are Commented out ( put a hash “#” sign at the beginning of the line ) the

following lines:

# option definitions common to all supported networks...
#option domain-name “”;
#option domain-name-servers,;
#default-lease-time 600;
#max-lease-time 7200;

Add the following lines to the file (copy and paste)

subnet netmask {
option domain-name-servers,;
option routers;

Here we have specified the IP of our PC as and 15 other PCs with addresses ranging from to can be connected to your PC.

Next edit

#sudo gedit /etc/network/interfaces

This is how my interfaces file looks:

To whatever is existing in the file add,

auto wlan0
iface wlan0 inet static

At this stage you can reboot. And hopefully any device / laptop should connect to your wifi hotspots network via the network manager applet. On these devices search for the network “geekpeek” and type in the password.

To Connect to the internet we have some more procedures to follow.

In a terminal type:


It will display the adapter name being used for connecting to the internet. I was using the LAN so my adapter name was “eth0”, if you are using modems then it might be “ppp0”

First we have to allow ip forwarding:

#sudo gedit /etc/sysctl.conf

Make sure the following line is uncommented and reads


Save and close gedit. (reboot)

After reboot: Connect to the Internet and In a terminal type:

#sudo gedit /etc/rc.local

add this line just before “exit 0′′

iptables -t nat -A POSTROUTING -s -o ppp0 -j MASQUERADE

Then reboot the system.

The eth0 should be changed to whatever adapter you are using.

Once this is done you can make other laptops connect to to youe new wifi hotpsot by assingning them IP addreses in the range of to

To make and Android detect your wifi hotspot.

Goto the wifi settings

press the options key ( the left most key)

Select Advanced>Use Static IP

Give the IP address as something between to

Gateway the same IP as your PC, In this case it is

Netmask as

DNS1 as

DNS2 as

Once this much has been set your android phone should be able to connect to your wifi hotspot and you can access the internet connection on your PC through your phone.

Now when you turn on your PC go to terminal and type

#sudo hostapd /etc/hostapd/hostapd.conf

Now I have made an application in Qt4 that provides a GUI to turn on and off the wifi Hotspot, You can get it from the download section


Happy Ganesh Chathurthi


The ganesh idol made by towels, infront of megamart in Khargar

The man With the Mean Machine

I will never Forget 16th September 2012 because it was on this day that I saw a Formula one car right in front of my eyes, it was the day when i understood what driving really means. It was the day I saw Lewis Hamilton perform at the Bandra-Kurla Complex. We started from our hotel in the evening unsure about the timings of the show. The only thing we knew was ‘Lewis Hamilton is in town.’ We took the roller coaster ride to Bandra (refer my previous post and you will know what I meant by that statement). None of us knew the timings or whether the entry was free and in between one of my friend said there is a free pas for Vodafone customers, but others have to pay, anyways we set forth deciding to check it out no matter what. Our troubles where not over we still had to walk from Bandra railway station all the way to Kurla because that is where the whole thing was happening and we walked almost like 3-4Km. Now let me be honest initially I was not as thrilled as my friends because I knew nothing about Formula one racing, I was really frustrated by this long walk, but still I went on, but had I not gone I would have really missed this great performance. And finally pushing and pulling in the crowd we saw the fastest man on the planet ‘drive his car’. The deafening sound of the f1 car. The cheering from the crowd were all inspiring in a way.

I was lucky enough that Lewis Hamilton came to Mumbai when I was in Mumbai



The Best roller Coasters In the World: The Mumbai trains

It has been almost a month since I landed in Mumbai, and I was wondering where I should start blogging, Should I start from the Gate way of India, or the Elephanta caves, Or should it be about the vada pavs and the ‘Bademiya’. But I think the first topic I should blog about is the Mumbai sub urban trains. For a person like me who is from a less congested part of the country, where we rely on road transport more than railways , where trains appear on platforms only once in two or three hours, the Mumbai trains where a surprise, The first day on boarding a train from thane to dombivilli, I felt ‘OK this is not as bad as I thought it would  be’ , but just as the train reached the next station , I was literally swept of my feet by the sudden inrush of , what seemed to be the whole of Mumbai Population. The very next week the travel to regions like Kurla made me tough enough to handle almost any situation the world can throw at me, My dear readers might feel I am exaggerating, but those who have traveled in Mumbai Sub urban trains will know that I have not even said halfof the  story. Thanks to apps like M-Indicator, we soon got hold of the train timings and about stations and then only we realized the way Mumbai sub-urban railways serve as the veins of the great city of Mumbai. So guys when you are in Mumbai try not to miss a ride in the Mumbai trains because, sometimes it is more thrilling and daring than any roller coaster in this world.

%d bloggers like this: