12
Jun
08

Using gpinternet with handset in Ubuntu

Ubuntu Operating System

You have a edge or GPRS supported handset and you want to use internet in your UBUNTU based PC. But don’t know how? If so then this tips is for you my friend.

First of all i like to say that, i have used a Nokia N70 handset, a data cable. If you have any other handset then try, but remember you have to connect your handset to your PC. For this you can use Data-Cable. This is the best way i think. If you have a EDGE/GPRS Modem, you can use this. So, first of all make sure that you have all of this things. And to use internet in you UBUNTU based PC, please follow these steps:

Step 1: Login as root (or no need if you use sudo mode, i like to use sudo)

Step 2: Connect your Handset or EDGE/GPRS modem to your PC.

Step 3: Open a terminal window from:

Applications > Accessories > Terminal

and enter this command:

sudo wvdialconf

This will configure your modem and you will found a message, “Found an USB modem on ttyACM0″ or something like this. If you use EDGE/GPRS modem, your modem type will be: Analog Modem. But make sure, Linux can’t work on any internal modem (i’m not sure).

Step 4: now open the wvdial.conf file in edit mode, use this command:

sudo gedit /etc/wvdial.conf

and type these:

[Dialer Defaults]
Init1 = ATZ
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
Init3 = AT+CGDCONT=1,”IP”,”gpinternet”
ISDN = 0
Modem = /dev/ttyACM0
Baud = 460800
Modem Type = USB Modem
Phone = *99#
Username = ubuntu
Password = ubuntu

Save this by clicking Save button and close this file.

Step 6: now use this command to connect your PC to Internet in terminal:

wvdial

Step 7: After a while you will found UBUNTU shows you 2 DNS numbers. Primary and Secondary. Example for GrameenPhone:

Primary DNS address 202.56.4.121
Secondary DNS address 202.56.4.121

Step 8: Note these DNS from terminal. Use the following command to open the resolv.conf file in edit mode:

sudo gedit /etc/resolv.conf

Now type the DNS addresses which you have noted with nameserver code. Here is the resolv.conf file for gpinternet user:

nameserver 202.56.4.120
nameserver 202.56.4.121

Again save this resolv.conf file and close this file.

Step 9: Finally to get internet connection into your Ubuntu use this command again:

wvdial

Step 10: Now when connected use a internet browser like Mozilla and browse internet.

Step 11: When you want to disconnect from internet, click on terminal window to active this and press this from your key-board to disconnecting from Internet:

ctrl+c

Hope now you are able to configure any handset in Ubuntu as a modem to use internet.


0 Responses to “Using gpinternet with handset in Ubuntu”



  1. No Comments Yet

Leave a Reply