This article is part of a series of guest posts by Garikai Dzoma on helping new users migrate successfully to the Ubuntu operating system. Garikai started using Ubuntu Linux in 2007 and is an active member of the Zimbabwe Ubuntu LoCo team.
Two weeks ago, I posted an article on how to connect to the internet using mobile broadband (the dongles) in this Ubuntu How-to series of articles. The article solicited some great comments from readers with some comments providing alternative methods.
The image below is a solution from one such comment by @Libho. You can find it here: http://disq.us/2hk7z3. I have not tested this method yet so if it works please provide us with some feedback. This would indeed be the simplest solution as yet.
Now to my own solution
I am pleased to announce that I successfully connected using the Africom CDMA modem and if it is of any comfort I must say that setting up the connection was trivial.
I used two methods which both worked viz: Network manager and the “pon” command. Both methods are outlined below. Also note these two methods work on maiden installations i.e. there is no need to install extra software.
Using the Network Manager
- Plug in your modem before booting up the computer
- Boot up your Ubuntu and login in to your desktop
- Click on the Network Manager icon which is on the top right hand corner of your desktop left of the me menu.
- Select and click on the Edit Connections menu
- Select the Mobile Broadband tab.
- Click on new
- Select the my country is not listed option and click next. Zimbabwe is not listed here.
- Type the name Africom in the connection name box and click next
- Enter your email@example.com in the username box
- Enter your password in the password box and click ok
- To connect click on the Network Manager icon and click on Africom you will be notified if the connection was successful.
Using the ‘pon’ command
If you have beard as big as Richard Stallman’s and are not intimidated by the command line you can use this method. Also, as you have noted from above the Network Manger method is only guaranteed to work if the modem is plugged in before booting. With this method the modem can be plugged in at anytime you want.
- Plug in the modem.
- Open the terminal and type: sudo bash
- Enter your password and press enter
- Type the command pppconfig and press enter.
- In the pppconfig utility select the create new connection option using arrow keys and press enter.
- Delete the default connection name (the text saying provider) and type africom all in lower case. Changing the name is not really necessary but it will make your life easier.
- Using arrow keys select use DNS and press the space bar to confirm option
- Select ‘PAP Peer Authentication Protocol‘, hit Ok.
- Enter your firstname.lastname@example.org and password pressing enter after each input.
- Change the modem speed to 9600 (this should be safe since this is a ZTE modem)
- Select tone dialing and press enter.
- Enter the phone number to dial as: #777 i.e. hash triple seven. Please include the hash this is not cosmetic at all
- Select enter modem manually (you can also choose automatically detect it bit this will not work and you will be presented with the option to enter it manually)
- Type /dev/ttyUSB0 as the location of the modem
- Choose “Finished write files and return to main menu“
- Choose “Quit exit this utility” in each case in step 15 and 16 press enter to effect choice.
- When back in terminal type the command: echo ‘replacedefaultroute’>>/etc/ppp/peers/africom
- Instead of the above command type: sudo route add default ppp0 everytime you connect.
- To connect type the command: sudo pon africom
- The connection process can be viewed by typing the command: sudo plog. (At step 19 however you can see your modem’s activity light blinking)
- To connect as an ordinary user just type the following commands: sudo adduser Username dip and sudo adduser Username dialout replacing Username with your username. After this you can connect by simply typing in the comman: pon africom.
– for step 21 to work you need to have used the method in step 17.
– I am working on wvdial and will bring you the guide shortly
– I do not know whether this will work on the PowerTel modem since I have not been availed with the opportunity to test it yet.