Saturday, September 26, 2009

Reliance Netconnect Broadband connection in Ubuntu 8.10 desktop edition

Being a programmer in always wanted internet connection in my Ubuntu. I was wondering if it is possible to do that before i found this blog http://himanshuonweb.blogspot.com. Thanks to Himanshu.
I followed those instructions and i was successfully able to connect to internet.
Follow these steps below:
1- Start Ubuntu ensuring USB modem is not connected and configure the file /etc/wvdial.conf
sudo gedit /etc/wvdial.conf


paste the following lines:


[Dialer Defaults]

Init1 = ATZ

Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0

Stupid Mode = 1

Modem Type = USB Modem

ISDN = 0

Phone = #777

New PPPD = yes

Modem = /dev/ttyUSB0

Username =

Password =
Problem while saving?? I believe you do not have permission to save contents. You can manually set the permission to write contents by typing sudo chmod 777 /etc/youfilename (in this case your file name is wvdial.conf). You might also want to set "write" permissions where you are not able to modify the file in the steps below
2- Plug-in USB modem, your /var/log/messages will display something like:


Aug 16 19:35:57 abc-laptop kernel: [ 111.532151] usb 4-1: new full speed USB device using uhci_hcd and address 2
Aug 16 19:35:57 abc-laptop kernel: [ 111.744188] usb 4-1: configuration #1 chosen from 1 choice
Aug 16 19:35:57 abc-laptop kernel: [ 111.747614] usbserial_generic 4-1:1.0: generic converter detected
Aug 16 19:35:57 abc-laptop kernel: [ 111.748339] usb 4-1: generic converter now attached to ttyUSB0
Aug 16 19:35:57 abc-laptop kernel: [ 111.909454] usbcore: registered new interface driver libusual


3- Run
lsusb
whose output will be like:

us 007 Device 002: ID 04f2:b008 Chicony Electronics Co., Ltd
Bus 007 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 002: ID 12d1:142b Huawei Technologies Co., Ltd.
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub


4- Add a module for the above listed Huawei device, as:

sudo modprobe usbserial vendor=0x12d1 product=0x142b


make sure the vendor and product ID are the same as listed in the above lsusb output

5- Check the files for USB device:
ls -la /dev/ttyU*


Output will be similar to:

crw-rw---- 1 root uucp 188, 0 2009-08-16 19:36 /dev/ttyUSB0
crw-r--r-- 1 root root 188, 1 2009-08-16 19:34 /dev/ttyUSB1


if no USB0 or USB1 files listed, then try creating it as:
sudo mknod /dev/ttyUSB0 c 188 0
sudo mknod /dev/ttyUSB1 c 188 1


6- now hopefully your are done with the configuration part. just try connecting internet:
sudo wvdial

console will look like:
--> WvDial: Internet dialer version 1.60
--> Cannot get information for serial port.
--> Initializing modem.
--> Sending: ATZ
ATZ
OK
--> Sending: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
OK
--> Modem initialized.
--> Sending: ATDT#777
--> Waiting for carrier.
ATDT#777
CONNECT
--> Carrier detected. Starting PPP immediately.
--> Starting pppd at Thu Aug 20 22:06:00 2009
--> Pid of pppd: 7268
--> Using interface ppp0
--> pppd: [10]�[17]
--> pppd: [10]�[17]


Congrats! your are connected!!! to DISCONNECT use ctrl+c.

No comments:

Post a Comment