Home > Uncategorized > Connecting to Internet using Reliance NetConnect in ubuntu > 8.10

Connecting to Internet using Reliance NetConnect in ubuntu > 8.10

Connecting to Internet  in ubuntu karmic (the version I’m using) is not so easy and some digging lead me to make it successful. Reliance do provides it support for ubuntu but only upto version 8.10 or upto kernel 2.6.30.

The Idea behind the setup is to make the system to detect the usb and switch its mode of operation according to its purpose. Then serialize the usb port. So there are a list of packages needed to be downloaded. They are:

1. usb_modeswitch.deb (available at http://packages.ubuntu.com)

2.wvdial.deb (any version supports ur distro).

The step by step connection can be made as follows:

1. connect your modem. after a while it shows up as a cd rom drive and you’ll see the desktop icon.
now open terminal and give the command “lsusb”. a list will come up showing all the connected devices.
find something like this “Bus 004 Device 003: ID 19d2:fff5”. here fff5 is the device id. all we have to do is to change it from fff5 to fff1. for this we need a package called “usb_modeswitch”.
2. now a file will be created naming “usb_modeswitch.conf” in the directory “/etc”. now you have to edit this file with root privilage.

3. to do this give the command in terminal “sudo gedit /etc/usb_modeswitch.conf”
4.this file will be opened in gedit text editor. now scroll below and find your device. it will be displayed like this:

# ZTE MF622 (aka “Onda MDC502HS”)
#
# Contributor: andylog

;DefaultVendor= 0x19d2
;DefaultProduct= 0xfff5

;TargetVendor= 0x19d2
;TargetProduct= 0xfff1

# only for reference and 0.x versions
# MessageEndpoint=0x04

;MessageContent=”55534243f8f993882000000080000a850 10101180101010101000000000000″

11.find your device and delete the semicolon signs of lines starting with “;”(simply unquote). it should look like this:

# ZTE MF622 (aka “Onda MDC502HS”)
#
# Contributor: andylog

DefaultVendor= 0x19d2
DefaultProduct= 0xfff5

TargetVendor= 0x19d2
TargetProduct= 0xfff1

# only for reference and 0.x versions
# MessageEndpoint=0x04

MessageContent=”55534243f8f993882000000080000a8501 0101180101010101000000000000″
5.save the file.
6.give the command “usb_modeswitch” with root privilage.
7.after the execution give command “lsusb”. you will see that the device id has been changed from “fff5”
to “fff1”.
8.the 1st stage is complete. now Give parameters to kernel for identification of the modem. to do this
give the command “modprobe usbserial vendor=<vendor id> product=<product id>” (just type the target vendor id and target product id from usb_modeswitch)

(In my case it is modprobe usbserial vendor=0x19d2 product=0xfff1)
9.you must have “libusb” installed. Now we use wvdialconf to configure internet.to do this you have to install the package named “wvdial”. a file named “wvdial.conf” will be created in “/etc”.
10. [optionally] to activate give command “wvdialconf /etc/wvdial.conf”.
11.now you have to edit the file “wvdial.conf”. to do this give command “sudo gedit /etc/wvdial.conf”
12.when the file opens in gedit Enter the following Details.
13.Phone=#777
username=<enter your phone number>
password=<enter your phone number>

(some extralines will be added by default when opened first . Don’t edit those)

and don’t forget to delete the semicolons of the above lines.
14.now you are done. run the command “wvdial” in terminal with root privilage. your internet connection will be established.

Categories: Uncategorized
  1. No comments yet.
  1. No trackbacks yet.

Leave a comment