May 7, 2008

How to configure Your Cell phone in Linux OS for Internet connection

Posted in General tagged , at 9:45 am by asprakash

I tried this steps in Ubuntu OS from My Sony Ericsson K510i. I am using Airtel Subscriber.
Hope it will work in other Linux distros also.

Step 1:
======
Start your pc and now enter id root and password (you must be knowing that!) Now open terminal and type “dmesg” It will detect all the device connected with your pc including your (usb, serial ) data cable.and it will display log in the same terminal read that log carefully now check which port has been detected by it. It detected ttyUSB1 on my pc.

$wvdialconf /etc/wvdial.conf
it will detect ur mobile and it will write the value on wvdial.conf file in etc directory.

Step2
=====

Now open the file /etc/wvdial.conf from your terminal,
$vi /etc/wvdial.conf
In that file, you can show a existing configuration. You just remove all the lines and paste the following code.

#Paste the following lines to your wvdial.conf file
[Dialer Defaults]
Modem = /dev/ttyUSB1 #note1
Init1 = ATZ
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
stupid mode = 1
Modem Type = Analog Modem
Phone = *99# #Note2
ISDN = 0
Username = a
Password = b
Baud = 115200

#Note1: May be varied depends upon your hardware config.
#Note2: First check your mobile phone dial No.

Step 3

Open the file, /etc/resolv.conf and enter following lines. Now dont delete the existing lines. You just append.

service named start
nameserver 202.56.230.5
nameserver 202.56.250.5
nameserver 127.0.0.1

Now log out and log in as User and open terminal now type su – and press enter, than type root password for your super user mode.
Then type wvdial R in your terminal
Hope now you are connected to Internet now enjoy surfing . If u want to disconnect than just press CTRL + C or killall pppd
And it will disconnect active connection!.

Advertisements