EV-DO Internet access with Ubuntu Linux

The following manual is applicable for 32bit Ubuntu 6.10 (Edgy Eft) and 7.04 (Feisty Fawn) and Verizon Motorola v3 EV-DO enabled phone connected via USB cable as well as number of other EV-DO cards like PC5750.

Motorola v3 EV-DO with Ubuntu

Make sure your device is activated by service provider and if possible test on other OS to which you may have software and drivers.

Open terminal window and type:

sudo -i

and enter your password.
Now all commands typed in this window will be executed with root privileges.
In terminal type:

apt-get update
apt-get upgradeapt-get install wvdial

Before you insert the Card or connect USB cable open terminal window and type:

cat /proc/bus/usb/devices > devices

Insert your data card or plug in USB cable and wait for a few seconds before continuing.
In terminal type:

dmesg

You will get output with some device info like this :

[17186692.460000] usb 3-1: configuration #1 chosen from 2 choices[17186692.460000] cdc_acm 3-1:1.0: ttyACM0: USB ACM device[17186708.176000] usb 3-1: USB disconnect, address 4
[17186714.588000] usb 3-1: new full speed USB device using uhci_hcd and address

At the end of this output you will find your device witch will be represented like this: ttyACM0 or ttyUSB or similar , make note of it you will need it later.
Now type in terminal:

cat /proc/bus/usb/devices | grep Vendor

Output will be similar to:

< P: Vendor=1234 ProdID=5678 Rev= 0.00

Make note of lines: Vendor=1234 , ProdID=5678

Now in teminal type following code Replacing values 1234 and 5678 with your own output from previously noted lines ::

modprobe usbserial vendor=0x1234 product=0x5678

Now you will edit wvdial config file by first typing in terminal :

sudo gedit /etc/wvdial.conf

In new opened window replace all text with following :

[Dialer Defaults]
Stupid Mode = on
Modem = /dev/ttyACM0
Baud = 921600
Init = ATZ
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
Phone = #777
Username = ??????????@vzw3g.com

Password = vzw
Init1 = ATZISDN = 0
Modem Type = Analog Modem
Auto Reconnect = on
Carrier Check = no
[Dialer shh]
Init3 = ATM0
[Dialer pulse]
Dial Command = ATDP

In the line “Modem =” replace ttyACM0 with value you noted from output of dmesg command.
In the line ” Username = ” put your phone number followed by your providers domain, for Verizon it is area code, your phone number and domain, in this format: 9178889999@vzw3g.com for Sprint it will be 9178889999@sprintpcs.com, for AT&T / Cingular WAP@CINGULARGPRS.COM, for Alltel 9178889999@alltel.net and so on, further post have config’s posted for other providers.
In line ” password = ” in case of Verizon put: “vzw” for Cingular: “cingular1” and so on, make sure to check with your provider as username and/or password may differ for other regions and countries.

If you are Cingular/AT&T subscriber and after completing whole guide you have problem with dropping connection you have to add another int line in wvdial script which is posted here http://ubuntuforums.org/showthread.php?t=343989&page=3
If you need any specific info regarding your domain or password please contact your cellular provider.
The last thing you need to configure is wvdial line checking, by disabling LCP echo checking witch is not supported by most of providers.
Open terminal and type:

sudo gedit /etc/ppp/peers/wvdial

And insert aditionally those lines:

lcp-echo-failure 0
lcp-echo-interval 0

Make sure your ethernet jack is unplugged and wifi radio switch is turned off.
Now you can start connection by typing in terminal :

wvdial

Another thing i have been suggested is automating the connection process.
To do so in Gnome go to :

System > Preferences > Sessions next, click on the tab labeled, “Startup Programs” then click the “Add” button.
In the Startup Command field, enter “wvdial” and then click “OK”.Then restart your system.

Now make sure your EV-DO card is inserted before you boot it up, it will initiate the connection process automatically in the background connecting you to internet the second you log in.

The manual is kindly provided by Mach1US.

Information improvisation: Unlock the key of your success by http:///300-135.htm and http://www.pass4-sure.us/CompTIA-Security-plus-training.html By using our latest http://www.test-king.com/exams/300-115.htm and http://www.microsoft.com/ study material, you can easily pass http://www.actualtests.com/exam-300-115.htm Best Wishes.

SHARE:
nv-author-image

Stefan Durand

My name is Stefan, I'm the admin of LinuxScrew. I am a full-time Linux/Unix sysadmin, a hobby Python programmer, and a part-time blogger. I post useful guides, tips, and tutorials on common Linux and Programming issues. Feel free to reach out in the comment section.

40 thoughts on “EV-DO Internet access with Ubuntu Linux”

  1. One minor note: You have a typo in the wvdial.conf file:

    Baud = 921600Init = ATZ

    should be:

    Baud = 921600

    Init = ATZ

    Before making this change wvdial gave me a bad init string error.

    Hope this helps and thanks again.

  2. Thanks for this manual…used it to get an old compaq laptop working with a PC5750 on Debian lenny (very minimal install). Verizon abandoned all older hardware with VZAccess woring only with M$2000 and up.

  3. When I try and run the commands below, I get the following messages:

    root@jhendricks-laptop:/# cat /proc/bus/usb/devices > devices

    cat: /proc/bus/usb/devices: No such file or directory

    These instructions aren't working for me. I've had this pc5750 evdo modem working under ubuntu 7.10 before. I reloaded and installed kubuntu 7.10 and can't seem to duplicate what I did before. Can anyone tell me what I'm not doing correct?

    Regards,

    John

  4. Hi John Hendricks, the reason is that the support for /proc/bus/usb/* was removed in Ubuntu 7.10. Software developers will (over time) port USB calls to check /dev/bus/usb first but until then the following work-around re-enables /proc/bus/usb/devices in Ubuntu 7.10, you need to edit this file like this:

    sudo gedit /etc/init.d/mountdevsubfs.sh

    then look for this lines

    #

    # Magic to make /proc/bus/usb work

    #mkdir -p /dev/bus/usb/.usbfs

    #domount usbfs "" /dev/bus/usb/.usbfs -obusmode=0700,devmode=0600,listmode=0644

    #ln -s .usbfs/devices /dev/bus/usb/devices

    #mount –rbind /dev/bus/usb /proc/bus/usb

    And remove the lines to make it look like this

    #

    # Magic to make /proc/bus/usb work

    mkdir -p /dev/bus/usb/.usbfs

    domount usbfs "" /dev/bus/usb/.usbfs -obusmode=0700,devmode=0600,listmode=0644

    ln -s .usbfs/devices /dev/bus/usb/devices

    mount –rbind /dev/bus/usb /proc/bus/usb

    Gook Luck

    Isaac

    Guatemala

  5. Excellent tutorial. I tried several other more complicated solutions, none of which worked. This worked like a charm the first time I tried it on Ubuntu Server 7.04 with a Verizon USB720.

  6. JimF -- a pilgrim still

    Great set of instructions! Indeed, it worked fine with minimal tweaking. When I run the wvdial command, I get some curious warnings:

    –> Warning: Could not modify /etc/ppp/pap-secrets: Permission denied
    –> –> PAP (Password Authentication Protocol) may be flaky.
    –> Warning: Could not modify /etc/ppp/chap-secrets: Permission denied
    –> –> CHAP (Challenge Handshake) may be flaky.

    What is that about?

  7. Whenever I try to dial everything seems to go smoothly, my modem starts blinking like it’s sending and receiving data, but then it just stops blinking…I’m not sure if it’s disconnecting right away, or what. I am pretty new to linux…running fedora 8, and using a verizon USB720 modem.

  8. Thanks! Using ubuntu 8.04 (Hardy Harron) I didn’t need to do anything before editing /etc/wvdial.conf

    wvdial is already installed, and I couldn’t find the usb/devices file. So I just skipped to editing /etc/wvdial.conf, then continued with the rest of the directions and it worked!!

    details: using usb720 with verizon on ubuntu 8.04.

    Thanks again dude!!

  9. Oops I should mention I am running Ubuntu 8.
    and using Verizon USB720.
    Using Gnome PPP it shows it connects and gets an IP but the Browser will not connect.

    Thanks

  10. Running wvdial appears to work, I get a remote IP address,Local IP address, DNS etc.
    But when I open Firefox it can’t find my page ” address not found” when i try to look anything up. Is there something I am missing??
    Any help would be great.

    thanks

  11. Matt …

    The wvdial creates a resolved.conf from the DNS it gets over the link but never copies it to /etc. On fedora there are commands to do this but I do not use them. Just copy the resolv.conf file from /etc/ppp/… (soory don not remember the exact folder) to the /etc folder. You should back up your current "resolv.conf" file first though.

  12. Well if the resolv.conf contains the information that wvdial displays for DNS then the DNS lookups should work. If it does not then the name to IP address lookup will fail.

  13. when I look at the resolv.conf file it shows the following only:

    nameserver – 69.174.92.xxx

    nameserver – 69.78.96.xx

    (edited the last octect for privacy)

  14. Matt,

    and anyone else running Ubuntu 8.04 (probably more specifically related to firefox). For some reason I noticed that when the machine boots without internet connectivity and I connect with wvidal, sometimes Firefox comes up in "Work Offline" mode. This really tripped me up for a bit because I could ping, and all other indications were that internet was working, but firefox wouldn't connect. Simply go to "File" and un-check "Work Offline" and wa-la.

  15. I happen to have the same issue Matt did.I mean I get connected through wvdial but I can't open any website. can you please give me the details of how to fix it. I am new to linux. Thanks in advance!!!

  16. The DNS lookup is not wworking because the correct /etc/resolv.conf is not at that location. To fix that you need to copy the one generated by the wvdial connection to the "/etc" folder. The file you need is under the /etc/ppp tree (do not know the exact folder any more because it is fixed in Fedora Core 9 using Network Manager) and copy that version of the "resolv.conf" to the "/etc" folder.

    as root:

    cp /etc/ppp/where_ever_the_file_is/resolv.conf /etc/resolv.conf

    Once you do that the DNS should stasrt working unless the web browser is in offline mode.

  17. I did exactly that but I have not been able to get firefox to work, if you have any other suggestion i can try let me know please!!

    Thank you

  18. Is there any appreciable upload or download speed difference between using these devices in Linux vs. Windows. There is compression to improve the speed with Windows, both at the PC and mostly at the Verizon switch.

    Thanks!

    T

  19. Ted, I run my EVDO via Alltel on both a Ubuntu 7.4 and Vista home premium. Checking the speeds at speedtest.net I get no difference.

  20. root@joshua-laptop:~# wvdial

    –> WvDial: Internet dialer version 1.60

    –> Cannot get information for serial port.

    –> Initializing modem.

    –> Sending: ATZ

    –> Sending: ATQ0

    –> Re-Sending: ATZ

    –> Modem not responding.

    I'm using a USB720 with verizon and running ubuntu.. why does it hate me so? lol

  21. ok, never mind. lol made some changes.. was using the wrong vendor number and tty number.. then came up as working offline.. but I just unchecked work offline and I'm golden baby! 🙂

  22. try nslookup from the command line and see if your DNS is correctly set up. If "nslookup yahoo.com" fails then the "resolv.conf" file generated by the wvdial is not being put into the "/etc" folder. See the comments about "resolv.conf" in this thread/dialog.

  23. found resolv.conf file under /etc/ppp/resol.conf

    all it reads is :

    nameserver 66.174.95.44

    nameserver 66.174.92.14

    ?? also ran nslookup for yahoo.com…

    root@joshua-laptop:~# nslookup

    > yahoo.com

    Server: 192.168.2.1

    Address: 192.168.2.1#53

    Non-authoritative answer:

    Name: yahoo.com

    Address: 68.180.206.184

    Name: yahoo.com

    Address: 206.190.60.37

    sooo?

  24. actually disregard previous nslookup comments.. did it while on using a wireless network.. need to get back on my EVDO card and find out what happens. lol

  25. > yahoo.com

    Server: 66.174.95.44

    Address: 66.174.95.44#53

    Non-authoritative answer:

    Name: yahoo.com

    Address: 206.190.60.37

    Name: yahoo.com

    Address: 68.180.206.184

    > aol.com

    Server: 66.174.95.44

    Address: 66.174.95.44#53

  26. the funny thing about this post, we need an internt connection to download the package… Now what if i dond have that and want to get the app… 😛
    Will i able to get a package thru google search? Will it work the same way?

  27. well if you can read this then you are on the internet so you should be able to download the package and then if needed transfer the data to another machine and install.

  28. I used your directions to get my Verizon USB720 working on RHEL 5. I did need to copy /etc/ppp/resolv.conf to /etc as mentioned in the comments, but other than that, very smooth. Thanks!

  29. how about help with Ubuntu 8.04 and a Pantech UM175? I cannot even get VZAM to work –even with Wine. Should I just forget it or get a tether to my phone?

Leave a Reply

Your email address will not be published. Required fields are marked *