Mobile Broadband on Ubuntu 10.04 NetworkManager Gnome-PPP Wvdial

Tuesday, May 4, 2010

I just got ubuntu 10.04 installed on a laptop and wanted to connect to internet with my Data card. Ubuntu identified my Datacard without any problem but when I tried to connect with NetworkManager, it just won’t connect. I tried to debug and went through all the logs that I can see but it just did not work and getting on the ubuntuforums seems lots of people have the same problem.  However,  This was a Clean install and not an upgrade. Most of the users are facing problem due to upgrade.

1) So finally, to get my data card connect to the internet instead of wasting my time with debugging and ripping off everything. I had to download Gnome-PPP and Wvdial  offline on other system which has internet and moved these packages to the Ubuntu 10.04 system.

2) To install Gnome-PPP and Wvdial there are a few dependencies, most of them are already included with default Ubuntu install but the ones I had to downloaded offline are listed below: -

libwvstreams4.6-base_4.6.1-1_i386.deb

libwvstreams4.6-extras_4.6.1-1_i386.deb

libuniconf4.6_4.6.1-1_i386.deb

wvdial_1.60.3_i386.deb

gnome-ppp_0.3.23-1ubuntu2_i386.deb

I downloaded these packages from Ubuntu Lucid Online Repository http://packages.ubuntu.com .

3) Install these packages one by one in the order listed above and then start gnome-ppp with sudo, we use sudo just to make sure the connection works and we don’t get stuck again saying there is problem when our user does not have access to dialout.

4) Run command lsusb and check your if your datacard is detected and then run dmesg command and look for Modem (GSM/ CDMA).  There in the dmesg you should see your datacard using ports like TTYUSB0, TTYUSB1, etc.

5) Now back to Gnome-PPP screen and go to configuration.  In the Modems select TTYUSB0 and click detect modem, it should work. Once your modem is detected change the modem type to USB Modem and Speed to Max available with your card. (I might work with analog also but did not try it).

6) Now enter the details  about the number to dial, your username password and then connect.

7) Once you are done connecting as root, you can run this command “adduser username dip” and add your user to dialout.

8) Close Gnome-PPP and reboot the machine and start Gnome-PPP with normal user rights and see if it works. IT Should!
9) You should have internet access by now.

I have tried reliance netconnect and TATA Photon+ and both worked well without any issues.

28 comments:

Anonymous said...

Couple of questions:

1. Why do I have to install the dependencies by hand? Why wouldn't "apt-get install wvdial" work?

2. I have a Rel Connect Broadband+ data card, and apart from the fact that the RComm service is a piece of $hit, this card/modem does NOT work on Ubuntu 10.04. Specifically, the modem connects (with an appropriate wvdial.conf) but it fails to ping the remote end. Have you seen anything like this in your setup?

Ani said...

If you have another internet connection except reliance netconnect the apt-get install should work just fine. incase you dont have internet on the same system you can get these packagaes offline from http://packages.ubuntu.com and install them.

I have tried for many people and it works.. See if you can setup gnome-ppp and it detects the modem.

Anonymous said...

Thanks a lot! I finally have internet on Lucid Lynx :))

The above procedure took a while to get working, but persistence is one thing i have learnt in working with linux. I downloaded from 9.04 (reliance broadband card works out of the box there) and applied it in 10.04.

Anonymous said...

Anish,Can you please tell us the data card model.........does this procedure work with all makes of data cards(Huawei,ZTE...etc)

Ani said...

Yes, it worked with Huawei and ZTE, I tried on 2 models of Reliance Datacard and 1 Tata Photon+ which worked fine with the settings in the article.

you might have to select TTYUSB0/1 based on your machine for it to work. Also Gnome-PPP username and password needs to save once with root and then with normal user, even though you might have dialout access sudo is needed to get things started.. Might be a bug.. Let me know if you face any issues. you can post and logs and we can fix it.

Anish

Anonymous said...

Hi Anish,

I am trying to use Huawei EC 1262 from Reliance.But i am not able to see anything TTYUSB0.It is /dev/ttyUSB1

Ani said...

Yes, i have tried this device and it works fine. Which Linux are you using and have you provided dialout etc rights to your user ?

Anish

Anonymous said...

I wish to configure BSNL 2G GSM data card on my home PC which is running ubuntu 10.04 LTS and 32 bit PC; so that i may access internet. Please tell me step wise step configuration for it.
Thanks and Regards
Girish Sharma

Anonymous said...

I wish to configure BSNL 2G GSM data card on my home PC which is running ubuntu 10.04 LTS and 32 bit PC; so that i may access internet. Please tell me step wise step configuration for it.
Thanks and Regards
Girish Sharma

Anonymous said...

Hi Anish,

I wish to configure BSNL 2G GSM data card on my home PC which is running ubuntu 10.04 LTS and 32 bit PC; so that i may access internet. Please tell me step wise step configuration for it.

Anonymous said...

Hi Anish,

I wish to configure BSNL 2G GSM data card on my home PC which is running ubuntu 10.04 LTS and 32 bit PC; so that i may access internet. Please tell me step wise step configuration for it.

For testing purpose, i bring my friend's USB modem; an icon appeared on the desktop... but now what and how to configure next; please help/guide me.

Anonymous said...

Hi Anish,

I wish to configure BSNL 2G GSM data card on my home PC which is running ubuntu 10.04 LTS and 32 bit PC; so that i may access internet. Please tell me step wise step configuration for it.

For testing purpose, i bring my friend's USB modem; an icon appeared on the desktop... but now what and how to configure next; please help/guide me.

Ani said...

Girish,

The steps are already mentioned in the blogpost, you can use them to connect to the internet. You will need to download some packages and install them before you are able to connect to the internet. Please go through this blogpost again and you will find the necessary steps. also, let me know the model and manufacturer of the card and i will see if there are any extra instructions for the same.

Anish

Arunsharma-Balu said...

from where i'll get gnome ppp & wv dial? i have already downloaded the other three as per instruction.

Arunsharma-Balu said...

from where i'll get gnome ppp & wv dial? i have already downloaded the other three as per instruction.

Ani said...

balu,

you will have to download ppp and wvdial from http://packages.ubuntu.com

The same way you downloaded the other 3 packages.

Anish

Ani said...

There is no password for connecting to internet via cellphone, only your internet service needs to be activated.. however if you are using data cards u will have to enter your datacard number as username and password. for reliance it is without the 0 in the begining.

Anish

Ani said...

if you are using gnome-ppp you will see a windows like connection signals on the top right side in ubuntu and if you are using networkmanager you will see it there itself.. Open firefox and see if you are able to browse the websites.

Anish

Anonymous said...

You simply downlonload usbmod switch then no need to configure double click over the icon and install it.

ubuntugeek utkarsh said...

i also have a blog. you can also try it out if this method is not working especially for micromax mmx 310g. the url is: http://micromax-mmx-310g.blogspot.com/

Anonymous said...

http://www.sakis3g.org/

Nothing more to use..... Connect in secs....

Anonymous said...

i hv ubuntu 10.04 should i install gnome-ppp only.......or goning by d procedure......

Anonymous said...

hi anish i want talk to you regarding

reliance data card how to install it in Linux Ubuntu 9.04,9.10,10.04 and 10.10


can you call me on this no.9833185334

regarding the same


waiting for your call

KRISHNA said...

hi Anish
I've a modem of micromax
BSNL 3G .how it install in UBANTU 10.04 LTS?

Ani said...

Hi krishna,

I have not use this card. Can you please give me more details about the card, the make, the chipset and lsusb dump if possible?

Thanks,
Anish

kumar said...

hi anish!!!

yaar i have tried al the above steps but when i got the dialer screen asking for the user id and password and phone number and what should i do now?

regards,
kumardlv...

Ani said...

usename n passwd blank or ur cellphone number in both (try with and without 0 in front. for eq. 0912334344. the dialer numbr will be #777

Try it and let me know..

prasad j said...

hi , im using Micromax MMX310G 3G USB Modem.Actually im facing completely new problem.....im using sakis3g as u told to connect.i have 2 os in my system win7 and ubuntu..if i directly load ubuntu sakis3g give result failed to connect...but if i load windows first connect there and then without disconnecting there restart system n then run sakis3g it connects successfully.pls help im facing this from last 15 days.......my email id=jondhale.prasad@gmail.com

  © Blogger templates Newspaper by Ourblogtemplates.com 2008

Back to TOP