PDA

View Full Version : Ubuntu 9.04 + Huawei E220 + Aspire one = working



Cosmic_Nomad
10-06-2009, 08:21 PM
Just got my Internet working with the following:



This HOWTO is intended to get your Huawei E220 modem working properly any time you plug it in (not only if you connect it before boot), without disabeling usb mass storage (thumbdrives and cameras) and without leaving that annoying CD image on your desktop.

This HOWTO is based on these instructions, but has been simplified. There are many guides out there, but since people are still getting lost:
1.Open a terminal and make sure you have the tools you will need:

Code:
sudo apt-get install libusb-dev wget build-essential

2.Get the source code for the program huaweiAktBbo:

Code:
wget http://www.kanoistika.sk/bobovsky/archiv/umts/huaweiAktBbo.c

3.Compile it:

Code:
cc huaweiAktBbo.c -lusb -o huaweiAktBbo

4.Copy the binary into your path:

Code:
sudo cp huaweiAktBbo /sbin/

5.Create a udev rule that makes sure that huaweiAktBbo is run every time the modem is plugged in. First create the file:

Code:
sudo gedit /etc/udev/rules.d/50-huawei-e220.rules

then cut and paste this line into the file and save it:
Code:

SUBSYSTEM=="usb", SYSFS{idProduct}=="1003", SYSFS{idVendor}=="12d1", RUN+="/sbin/huaweiAktBbo"
6.Run

Code:
ls /dev/ttyUSB*

If you see three devices
Code:

/dev/ttyUSB0 /dev/ttyUSB1 /dev/ttyUSB2
it means the modem is communicating properly with your computer.

7.Configure your connection. You have two choices. The easy way ( 8 ) or the hard way (thats 9). Actually both are pretty easy

8.Put the SIM-card for your modem into a regular phone and configure it to not ask for a PIN-code. Then, assuming you are running Gnome, go to System > Adminstration > Network > Modem connection.

In the General tab: Check "Enable this connection". Enter the phone number for your carrier (example: Tele2 in Sweden has *99#). Enter a username (it can be anything, really).

In the Modem tab: Set Modem port to /dev/ttyUSB0

In the Options tab: Check all options (if you want to, that is)

Now you should be able to connect by clicking on the network applet > Dial Up Connections > Connect to ppp0 via Modem


9.If you wish to have a pincode or if you don't like graphical configuration tools you can use wvdial. There are lots of good examples for different carriers in the big Huawei E220 thread. The big reason they are not working for many people is that the modem is not connecting properly to their computer. Once you get past (6) it is only a matter of some trial and error.

Info google'd from the following link:


http://ubuntuforums.org/showthread.php?p=3656717

My reference for when I stuff it up or have to install on another Pc