Connect your laptop to the internet with a mobile phone & Linux

by Guest User on May 3, 2011

Today’s need for mobility and connectivity is just a part of our daily life. Having the freedom to connect to the internet in a city like Portland is not much of a challenge. But, what if you went on vacation to an area that didn’t have an AP on every street corner? Well, if you have a laptop, mobile phone (w/Data plan) and a data cable you’re set.

So, here we go…

 

What you will need…

1) A laptop w/ Linux installed (Tested using Debian based OS)
2) A mobile phone w/ a data plan (I use Verizon)
3) A USB Data Cable (If you don’t have one Google is your friend)

Step 1
Connect your computer and mobile phone using the USB data cable.

Step 2
Open a terminal and type (copy/paste)

sudo pppd call 1xevdo

<Press Enter>

Step 3
Type (copy/paste)

sudo tail -f /var/log/messages

<Press Enter>

Step 4
Write down the IP address for Local IP

Step 5
Open a new terminal.

Step 6
Type the command below and replace xxx.xxx.xxx.xxx with the IP fromStep 4.

sudo route add default gw xxx.xxx.xxx.xxx

<Press Enter>

Step 7
Open a browser and enjoy!

Leave a Comment

Previous post:

Next post: