WvDial, Ubuntu, Huawei and Globe Visibility

Of course, this could also work with Smart WeRoam but for now, here are the steps for connecting to the internet using WvDial when you’re on Globe Visibility (since Globe’s customer’s service seems to be at a loss when asked about things Ubuntu and Linux).

A.Recommendations before installing wvdial

1. Ubuntu in latest distribution release (as of this writing, Hardy 8.04).

This is recommended to ensure that you are running the latest release of Ubuntu and therefore download and install as well the latest stable release of WvDial. Of course, WvDial has releases for Dapper, Feisty and Gutsy and will download packages depending on your Ubuntu release.

2. Check your Ubuntu distro in your terminal by typing:

$ lsb_release -irdc

You should see your distro ID, description, release and codename:

Distributor ID: Ubuntu
Description: Ubuntu 8.04.1
Release: 8.04
Codename: hardy

3. Upgrade your Ubuntu if it’s not the latest distribution yet. Guides can be found here and here.

If you do not want to update, you can proceed to Section B.

4. Check for your WvDial package. In your terminal, type:

$ which wvdial

or

$ wvdial -V

$ which wvdial will show the path of the wvdial to be executed, usually in the /etc/bin/wvdial. $ wvdial -V will show the version installed in your system, like this:

WvDial 1.60
Copyright (c) 1997-2005 Net Integration Technologies, Inc.

B.Installing WvDial

1. You can install WvDial by running this command in your terminal:

$ sudo apt-get install wvdial

2. Another way is to go to System > Administration > Synaptic Package Manager.

To easily find WvDial, click “Search” and type “wvdial”. Mark wvdial for installation by clicking on the wvdial checkbox, choose “Mark for Installation” and click “Apply”.

C. Configuring your wvdial settings

1. Detecting the Modem

Once you’ve installed wvdial, you need to detect your Globe Visibility modem so be sure that you have already put it in your serial/usb slot. Then, in the terminal, type:

$ wvdialconf

Wvdialconf automatically detects your modem, its maximum baud rate, and a good initialization string. Once detected, it will update your wvdial configuration located in /etc/wvdial.conf. It should look something like this:

root@jaja-laptop:~# wvdialconf
Editing `/etc/wvdial.conf'.

Scanning your serial ports for a modem.

Modem Port Scan<*1>: S0 S1 S2 S3
WvModem<*1>: Cannot get information for serial port.
ttyUSB0<*1>: ATQ0 V1 E1 -- OK
ttyUSB0<*1>: ATQ0 V1 E1 Z -- OK
ttyUSB0<*1>: ATQ0 V1 E1 S0=0 -- OK
ttyUSB0<*1>: ATQ0 V1 E1 S0=0 &C1 -- OK
ttyUSB0<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 -- OK
ttyUSB0<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 -- OK
ttyUSB0<*1>: Modem Identifier: ATI -- Manufacturer: HUAWEI TECHNOLOGIES CO., LTD.
ttyUSB0<*1>: Speed 9600: AT -- OK
ttyUSB0<*1>: Max speed is 9600; that should be safe.
ttyUSB0<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 -- OK
WvModem<*1>: Cannot get information for serial port.
ttyUSB1<*1>: ATQ0 V1 E1 -- failed with 2400 baud, next try: 9600 baud
ttyUSB1<*1>: ATQ0 V1 E1 -- failed with 9600 baud, next try: 9600 baud
ttyUSB1<*1>: ATQ0 V1 E1 -- and failed too at 115200, giving up.
WvModem<*1>: Cannot get information for serial port.
ttyUSB2<*1>: ATQ0 V1 E1 -- OK
ttyUSB2<*1>: ATQ0 V1 E1 Z -- OK
ttyUSB2<*1>: ATQ0 V1 E1 S0=0 -- OK
ttyUSB2<*1>: ATQ0 V1 E1 S0=0 &C1 -- failed with 2400 baud, next try: 9600 baud
ttyUSB2<*1>: ATQ0 V1 E1 S0=0 &C1 -- OK
ttyUSB2<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 -- ^BOOT:143333,0,0,0,9
ttyUSB2<*1>: ATQ0 V1 E1 S0=0 &C1 +FCLASS=0 -- OK
ttyUSB2<*1>: Modem Identifier: ATI -- Max speed is 9600; that should be safe.
ttyUSB2<*1>: Max speed is 9600; that should be safe.
ttyUSB2<*1>: ATQ0 V1 E1 S0=0 &C1 +FCLASS=0 -- OK

Found a modem on /dev/ttyUSB0.
Modem configuration written to /etc/wvdial.conf.
ttyUSB0<Info>: Speed 9600; init "ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0"
ttyUSB2<Info>: Speed 9600; init "ATQ0 V1 E1 S0=0 &C1 +FCLASS=0"

Note the embolden text. These are the detected modem settings and as notified by wvdialconf, these are automatically written in /etc/wvdial.conf.

2. Editing wvdial.conf

Even when wvdial.conf already supplied settings for your modem, these are still not enough. You still need to add a few more settings. To edit, in your terminal, and in root, type this to open in text editor:

$ gedit /etc/wvdial.conf

The wvdial.conf dialer defaults will open and show:

[Dialer Defaults]
Init1 = ATZ
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
Baud = 9600
New PPPD = yes
Modem = /dev/ttyUSB0
ISDN = 0
; Phone = <Type your Phone Number here>
; Password = <Type your Password here>
; Username = <Type your Username here

This is the auto configuration made by wvdialconf when run previously. You need to uncomment the phone, username and password by deleting “;” or copy the following configuration:

[Dialer Defaults]
Init1 = ATZ
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
Init3 = AT+CGDCONT=1,"IP","internet.globe.com.ph"
Baud = 9600
New PPPD = yes
Modem = /dev/ttyUSB0
ISDN = 0
Phone = *99#
Password = globe
Username = globe
Stupid Mode = yes

The Init3 string contains the Access Point Number for Globe Visibility and should be copied as is.

Setting Stupid Mode to yes automatically starts PPP after detecting your carrier’s signal.

Once the settings above are done, save your edited wvdial.conf file.

It is safe to run wvdialconf even if you already edited it. Here, wvdialconf will again check your Modem, Baud, Init, and Init2 options, and save them leaving your other settings unchanged. Wvdialconf will only edit your settings if your modem is autodetected.

3. Editing PPP

PPP or Point-to-Point Protocol is that which provides a way for a serial link to establish a connection to the internet and negotiate this connection. To check/edit your wvdial-ppp settings, go to:

$ sudo gedit /etc/ppp/peers/wvdial

Save this settings:

noauth
name wvdial
usepeerdns

D. Executing wvdial to connect

Once you have completed the above steps, you are now ready to connect to the internet. In your terminal, you only need to type:

$ wvdial

You should see something like the following:

jaja@jaja-laptop:~$ wvdial
--> 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
--> Sending: AT+CGDCONT=1,"IP","internet.globe.com.ph"
AT+CGDCONT=1,"IP","internet.globe.com.ph"
OK
--> Modem initialized.
--> Sending: ATDT*99#
--> Waiting for carrier.
ATDT*99#
CONNECT
~[7f]}#@!}!} } }2}#}$@#}!}$}%\}"}&} }*} } g}%~
--> Carrier detected. Starting PPP immediately.
--> Starting pppd at Mon Oct 6 17:57:02 2008
--> Pid of pppd: 26659
--> Using interface ppp0
--> pppd: ��[06][08]
--> pppd: ��[06][08]
--> pppd: ��[06][08]
--> pppd: ��[06][08]
--> local IP address 10.157.0.12
--> pppd: ��[06][08]
--> remote IP address 10.6.6.6
--> pppd: ��[06][08]
--> primary DNS address 121.1.3.57
--> pppd: ��[06][08]
--> secondary DNS address 203.84.191.216
--> pppd: ��[06][08]

You know you are connected when you are assigned an IP address. Much so, you can try opening your web browser.

E. Terminating Connection

When browsing, you must leave your terminal open. Else, you will get automatically disconnected.

You can also terminate your connection by going back to terminal where you ran wvdial and doing a Ctrl + C.

  1. October 22, 2009 at 10:08 pm | #1

    @someone: i remembered a friend having that same problem. he was able to resolve it. but as to how, i’ll try to get that for you. patience po. :)

  2. October 22, 2009 at 10:01 pm | #2

    hello there, anonymous. got this helpful tidbit from r3d3ye:

    when you’ve connected, you can issue this command:

    $ sudo echo “nameserver 4.2.2.2″ > /etc/resolv.conf

    this will allow you to access public DNS.

  3. anonymous
    October 22, 2009 at 6:46 pm | #3

    I just did this on a CentOS 5.3 and Globe Tatoo, I can browse websites by ip and not by domain names. Obviously, it is a DNS problem. I tried to nslookup google.com using the supplied DNS during dialing, which is 202.126.40.5. To my surprise had a connection with the DNS server and not only that but it answers query from nslookup. Any ideas on why my machine is not using the supplied DNS?

  4. someone
    October 9, 2009 at 7:03 pm | #4

    By the way I am using hardy 8.04

  5. someone
    October 9, 2009 at 6:58 pm | #5

    Guys,
    I did this until configuring the wvdial settings. When I typed in wvdialconf into the terminal it says that it cannot detect the USB modem. Can anyone help?

  6. July 11, 2009 at 2:19 am | #6

    thanks dude you are a life saver!!!

    though i didn’t have the wvdialconf program i was able to run with the wvdial configuration that you posted. I’m using Ubuntu Intrepid (8.10) and my modem is HUAWEI 1552 (globe tattoo). here is my config (for your reference)

    [Dialer Defaults]
    Init1 = ATZ
    Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
    Init3 = AT+CGDCONT=1,”IP”,”http.globe.com.ph”
    Baud = 9600
    New PPPD = yes
    Modem = /dev/ttyUSB0
    ISDN = 0
    Phone = *99#
    Password = globe
    Username = globe
    Stupid Mode = yes

    • July 13, 2009 at 5:42 pm | #7

      much welcome po. wow, seldom am i thanked for saving a life… haha!

      happy browsing. i know i haven’t updated this blog, but well, die hard linux fans would have a way to do the updated “workaround”.

      thanks for the visit. :)

  7. tr3s
    June 14, 2009 at 3:17 pm | #8

    replacing “internet.globe.com.ph” with “http.globe.com.ph” worked for me. thanks for the kickstart anyway.

    by the way, for those who do not want to dig deeper into wvdial, there is a easier way on connecting using the gnome-network-manager. this still depends if your huawei modem is recognized by the kernel.

    (i’m running jaunty and have a huawei E156G)

    1) Plug in the usb modem, network manager should detect it and will show up the network wizard.
    2) Using the wizard use the Globe Telecom default setting.
    3) Open the network manager and on the Mobile Broadband tab, edit the Globe Telecom connection
    4) Change the APN from internet.globe.com.ph to http.globe.com.ph
    5) Click Apply and Close
    6) Left click on the network icon on the notification area and select Globe Telecom
    7) Test your connection

  8. tr3s
    June 9, 2009 at 11:46 am | #10

    hi!

    when executing wvdial as root, the following error occurs “The PPP daemon has died: A modem hung up the phone (exit code = 16)”. what could be the problem?

    • June 9, 2009 at 12:04 pm | #11

      try it again. that happens sometimes when you need a stronger or clearer signal, etc.

  9. March 2, 2009 at 6:51 pm | #12

    @dstubbs: thanks for sharing what you did too, and your insights as well. we, linux fans and users, are still squeezing through bits and twits, but then, who do you think are missing more? i know for sure, it’s not us!

    enjoy wvdialling!

  10. Dick Stubbs
    March 2, 2009 at 4:55 am | #13

    cool – I finally got both wvdial and gnome ppp to run from my user account
    by adding my username to the dip and dialout groups, then rebooting
    udo adduser ( user name) dip
    udo adduser ( user name) dialout

    Then, I changed the group associated with both the /etc/ppp/pap-secrets and chap-secrets
    to dip
    sudo chgrp etc/ppp/pap-secrets dip
    sudo chgrp etc/ppp/chap-secrets dip

    Finally, I changed the permissions on both files to allow group read and write access
    sudo chmod g+rw /etc/ppp/chap-secrets
    sudo chmod g+rw /etc/ppp/pap-secrets

    It’s really rewarding when you finally figure something out that you have been
    working on for a long time. That’s the fun of Linux. Now I just have to save
    my notes to a file and remember not to delete it when I install the next distro.
    Thanks for getting me started in the right direction

  11. Dick Stubbs
    February 23, 2009 at 10:42 am | #14

    Works – sort of. I had to run the script as root to get it to connect. I was then able to
    download and install gnome ppp, but can only connect if I run it as root (which I understand is a cardinal sin in linux)
    Thank you so much for printing this guide. I am very disappointed that all distributions of Linux treat dialup as if it were the scourge of the earth. I wonder how many people who are considering trying Linux, but don’t have access to broadband, would take the time to configure a modem. I would venture to say that unless a user is really committed to Linux, they aren’t going to take the time. I doubt that linux will ever make it out of the ‘not ready for prime time’ category if they continue to ignore a good portion of their target population.

    • February 25, 2009 at 2:37 am | #15

      @dstubbs: hmm, i’m not a die hard linux user, but i’m getting the hang of it. the advantages far outweigh the disadvantages. running it as root has something to do with your file permission. and yep, it takes a lot of effort and commitment to embrace linux. but i believe, linux has already proven itself in more ways than a hundred reasons.

      newbie as i am, learning it is fun and enlightening. my small breakthrough in configuring a modem opens up a whole new arena here. =)

  12. November 17, 2008 at 9:20 pm | #16

    Hi Geobz,

    Yes, you can try the same procedure. Your wvdialconf will detect your zte modem and I assume will bring a ttyUSB* in your modem settings. Let me know what you get in

    $ wvdial

    after completing the steps.

  13. geobz
    November 16, 2008 at 10:24 pm | #17

    sir,

    i noticed that this is for the huawei modem. would this work with the zte mf626 modem as well?
    i’m using hardy on a redfox wizbook.

    thanks

  14. November 13, 2008 at 1:45 pm | #18

    that’s too bad. but what are you being prompted when issuing wvdial?

  15. virus
    November 12, 2008 at 6:42 pm | #19

    sir,
    i did everything but still cant connect to the internet

  1. No trackbacks yet.