A while back I decided that I needed to get access to the internet while I'm away from home. I was told by a salesman at my carrier (Alltel) that I'd have to get a smartphone/smartphone plan to do that. Later I found out that wasn't true, but my google searches on getting a cdma non-smart ("dumb") phone tethered under linux were discouraging. I took a leap of faith, and bought a MotoRokr z6m and started trying. It was actually fairly painless to get it working, here's what I had to do on both Debian and Ubuntu (pretty much the same). Don't plug the phone in yet. (as root) First using your favorite editor (mine is nano)(backup and edit) :
and add
note: in Ubuntu I had to uncomment these lines since they were already there, I had to add them to the file in my Debian install, I don't know if it matters where they go in the file. found instructions that it's necessary to stop the airprime driver from loading, it was for Ubuntu, not sure if it's needed on Debian.
and add to the bottom of the file:
at this point reboot. Make sure wvdial is installed (install it if it isn't) Next, plug the phone in using the usb cable. now, here I found instructions giving steps to find a bit of info, however, I never could get any output, so I punted and made a S.W.A.G. I'm including the instructions in case they work for you.
Since I never could get this output, I tried "ttyUSB0" and got lucky. Right, onward then. type in the terminal
somewhere in the output you should see something similar to
make note of the code numbers following "ID", in this case "22b8:2b24", you'll need them in the next step. in the terminal type:
(using the numbers I got as examples) next (backup and) edit /etc/wvdial.conf and replace everything in the file with:
the items in bold will need to be replaced with your information, if you're not on the alltel network you may need different information here. lastly (backup and) edit:
adding the following at the end of the file:
now start wvdial and start surfing. You can either type "wvdial" at a command prompt or set up a launcher on you desktop (I find this much more convenient). Edit: forgot to mention in the phone (assuming you also have a Rokr z6m) you'll want to go to Settings>Connection>USB Settings and set the default to "Modem/COM"
Code:
nano /etc/init.d/mountdevsubfs.sh
Code:
mkdir -p /dev/bus/usb/.usbfs
domount usbfs "" /dev/bus/usb/.usbfs -obusmode=0700,devmode=0600,listmo$
ln -s .usbfs/devices /dev/bus/usb/devices
mount --rbind /dev/bus/usb /proc/bus/usb
Code:
nano /etc/modprobe.d/blacklist
Code:
#Block Airprime driver to force kernel to use usbserial greystar:/home/louis# blacklist airprime
Quote:
| Open a terminal and type:
Code:
cat /proc/bus/usb/devices > devices Code:
dmesg Code:
cdc_acm 3-1:1.0: ttyACM0: USB ACM device |
Code:
lsusb
Code:
Bus 003 Device 002: ID 22b8:2b24 Motorola PCS
Code:
modprobe usbserial vendor=0x22b8 product=0x2b24
Code:
[Dialer Defaults] Stupid Mode = on Modem = /dev/ttyUSB0 Baud = 921600 Init = ATZ Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 Phone = #777 Username = yourmobilephonenumber@alltel.net Password = alltel Init1 = ATZ ISDN = 0 Modem Type = Analog Modem Auto Reconnect = on Carrier Check = no [Dialer shh] Init3 = ATM0 [Dialer pulse] Dial Command = ATDP
Code:
nano /etc/ppp/peers/wvdial
Code:
lcp-echo-failure 0 lcp-echo-interval 0







