Three UK 3G USB modem in Ubuntu Linux

[ Wednesday, 11 June 2008, michuk ]

I have recently bought a Huawei E220 HSDPA access device (or a so-called “3G modem”) from Three UK. In this article I’ll share with you my experiences of using it in Ubuntu Linux distribution. And don’t worry, it works just fine :)

Little note for the beginning. I bought the modem at Carphone Warehouse in Coventry. The seller told me — answering my question about operating system support — that the modem only works in Windows XP or Vista. No Mac support. No Linux (in fact has never heard the word ‘Linux’ in his life). Used to not trusting the sellers (the one in T-Mobile told me before that their modem works flawlessly in all operating systems, including Linux — even though he also heard this name for the first time from my mouth) I bought the modem and started testing (you have three days to give it back and claim your money back for no reason).

three 3g modem 

I was kindly surprised Ubuntu comes with the drivers to Huawei E220 modem. They’ve been bundled into the Linux kernel since version 2.6.20. Running the modem was then only a matter of installing a proper dial-in program (the default one could be used as well, but it sucks a big one) and configuring it, which proved to be effort-less as well. So here it goes.

Installing the software

I have decided to install wvdial, a PPP dial-in command line software, and a GNOME frontend to it — gnome-ppp:

sudo apt-get install wvdial gnome-ppp

The latter is part of the universe repository so you need to have it enabled in order to install it. That’s it about the installation, believe it or not.

Setting up wvdial to support Three UK 3G modem

Wvdial is not just ta plain-stupid dialer. It has some built-in intelligence. It can autodetect modems of all kind and auto-configure them. That’s why there is really not so much configuration, either.

First run wvdialconf utility to detect and configure your modem. I did it as root. If you want to dial-in as user, you need proper permissions for this. Here is the output of the command:

# wvdialconf
Editing `/etc/wvdial.conf'.

Scanning your serial ports for a modem.

Modem Port Scan< *1>: S0   S1   S2   S3
ttyUSB0: Device or resource busy
Modem Port Scan< *1>: USB0
WvModem< *1>: Cannot get information for serial port.
ttyUSB1< *1>: ATQ0 V1 E1 -- OK
ttyUSB1< *1>: ATQ0 V1 E1 Z -- OK
ttyUSB1< *1>: ATQ0 V1 E1 S0=0 -- OK
ttyUSB1< *1>: ATQ0 V1 E1 S0=0 &C1 -- OK
ttyUSB1< *1>: ATQ0 V1 E1 S0=0 &C1 &D2 -- OK
ttyUSB1< *1>: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 -- OK
ttyUSB1< *1>: Modem Identifier: ATI -- Manufacturer: huawei
ttyUSB1< *1>: Speed 9600: AT -- OK
ttyUSB1< *1>: Max speed is 9600; that should be safe.
ttyUSB1< *1>: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 -- OK

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

As you can see, it wrote the configuration to /etc/wvdial.conf file. We’ll need to fix it only a bit. Here is my conf after the fixes:

# cat /etc/wvdial.conf

[Dialer Defaults]
Init1 = ATZ
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
Stupid Mode = 1
Modem Type = Analog Modem
ISDN = 0
Phone = *99#
Username = three
Password = three
Modem = /dev/ttyUSB1
Dial Command = ATDT
Baud = 9600

[Dialer three]
Init2 = ATZ
Init3 = ATE0 V1 &D2 &C1 S0=0 +IFC=2,2
Init5 = AT+CGDCONT=1,"IP","3internet"
ISDN = 0
Modem = /dev/ttyUSB0
Modem Type = Analog Modem
Baud = 460800

Yes, you see it right. The only changes you need to make is the phone number (if not set correctly to this weird value), user name and password (which are simply “three”). That’s all, really. Now try dialing in:

# wvdial
--> WvDial: Internet dialer version 1.60
--> Cannot get information for serial port.
--> Initializing modem.
--> Sending: ATZ
--> Sending: ATQ0 V1 E1 S0=0  &C1  &D2 +FCLASS=0
ATQ0 V1 E1 S0=0  &C1  &D2 +FCLASS=0
--> Modem initialized.
--> Sending: ATDT*99#
--> Waiting for carrier.
--> Carrier detected.  Starting PPP immediately.
--> Starting pppd at Tue Jun 10 08:26:25 2008
--> Pid of pppd: 25359
--> Using interface ppp0
--> pppd: ��[06][08]@�[06][08]
--> pppd: ��[06][08]@�[06][08]
--> pppd: ��[06][08]@�[06][08]
--> pppd: ��[06][08]@�[06][08]
--> pppd: ��[06][08]@�[06][08]
--> pppd: ��[06][08]@�[06][08]
--> local  IP address
--> pppd: ��[06][08]@�[06][08]
--> remote IP address
--> pppd: ��[06][08]@�[06][08]
--> primary   DNS address
--> pppd: ��[06][08]@�[06][08]
--> secondary DNS address
--> pppd: ��[06][08]@�[06][08]
--> pppd: ��[06][08]@�[06][08]
--> Connect time 0.6 minutes.

Yuppi! We got connected! It really works! And it’s that simple. Amazing :)

Using gnome-ppp

If you are scared of the fact of connecting to network using the command line tools, gnome-ppp may be of some help. It’s a simple frontend to wvdial program, doing basically all the same, but with the ability to hide itself in the notification area.

Gnome-ppp uses the same configuration as wvdial. By default, it looks for the config file in ~/.wvdial.conf. I symlinked this file with the wvdial configuration, so that when I run wvdialconf it updates the gnome-ppp config as well:

# ln -s /etc/wvdial.conf ~/.wvdial.conf

Now you can simply run gnome-ppp. I do it as root. You can do it either as root or as user (with the proper permissions set).

gnome-ppp three 3g modem ubuntu
Connecting, it takes some 10 second if the signal is fine

gnome-ppp three 3g modem ubuntu
Waiting for prompt…

gnome-ppp three 3g modem ubuntu
Finally connected!

gnome-ppp three 3g modem ubuntu
Yes, it can automatically reconnect, as well.

So, as you can see, using the gnome-ppp app is fairly simple as well. I prefer wvdial anyway, since it seems more reliable. Gnome-ppp once in a while refused to connect even though the signal was good and wvdial didn’t protest. It may have been some specific issue though, your mileage may vary.

gnome-ppp three 3g modem ubuntu
Gnome-ppp configuration dialog

Issues with 3G modem in Ubuntu Linux

The only issue I have noticed so far is that once every few times, the system refuses to detect the modem. It’s being noticed in dmesg like that:

[   50.914987] airprime 3-1:1.0: GSM modem (1-port) converter detected
[   50.915110] usb 3-1: GSM modem (1-port) converter now attached to ttyUSB0
[   50.929802] usb-storage: probe of 3-1:1.1 failed with error -5
[   50.929822] airprime 3-1:1.1: GSM modem (1-port) converter detected
[   50.929937] usb 3-1: GSM modem (1-port) converter now attached to ttyUSB1

But it still fails to detect the modem when I run wvdial. Seems like an Ubuntu-specific issue. After reboot it always worked again. It’s one of the many reboot-and-work issues I have with Ubuntu 8.04, others being GTK-apps freezing, network freezing and so on. Anyway, it’s not the time to complain about Canonical, I did it in my Ubuntu 8.04 review anyway.

Huawei E220: Linux vs Windows support

Amazingly, I found the Linux support more reliable than the one in Windows. It does better in reconnecting automatically after losing the signal. In the default Windows app from Three, I had to manually close the connection and press “Connect” again, in order to reconnect. This is a very awkward solution, especially when I connect in trains when the network isn’t always perfect, to put it nicely.

The Windows client has a nice feature, however, of counting all the data we transferred using the 3G modem. This is especially handy in my case, since I went for the Pay-As-You-Go Three plan which gives me 1GB of transfer per month for 10 pounds.

Probably there is some way to achieve the same thing on Ubuntu, but I did not feel like searching, since this is not that important for me anyway. If you have a ready-to-use solution though, please share it in the comments section.

Final touch

After a while of using Three modem on Linux I noticed that sometimes the modem fails to connect for strange reasons. Usually rebooting Linux did the job but that was not good for me. Thus, I created this small script that I’m running in case modem refuses to connect. It works in 95% cases:

# cat /usr/bin/connect
killall -9 wvdial
rmmod airprime
ifdown wlan0 iwl4965
modprobe airprime
sleep 3
nohup wvdial three &
tail -f nohup.out

Basically what it does is: first kills any previous connection, then removes the Three modem driver, then disables the WiFi connection (if any is set up), finally loads the modem driver, waits 3 seconds for it to load and then dials up again in nohup mode — you’ll see all messages by tailing the nohup.out file.


If your connection seems very slow, it may be the slowish Three DNS servers. Try OpenDNS in such case. I do it by replacing the /etc/resolv.conf file with the following:

search home

Usually it speeds up the connection a lot. Learn more about OpenDNS on their website.

Pricing and availability

The modem costs currently 50 pounds in Pay-As-You-Go at Three. You can get either 1GB for 10 pounds or 3GB for 15 pounds. One pop-up works for a month only so if you don’t use your allowance, it is lost.

Remember to frequently check if you still have any credit on Three account and do not top up by more than it’s needed. Three plays a dirty trick on their customers. When the token is used (a month passes or you use up the whole bandwidth), it starts charging you on a drakonian rate of 1 pound per 1 MB (assuming that there is any money left on the Three account). Thus, it’s always better to top up the Three account after the token is used and choose a new token (10/15/20 pounds). You do it by first topping up and then choosing your modem on the list of devices and selecting the right token. It took me a while to find this out and I believe Three made it intentiously unintuitive to get some extra cash from the unaware customers (very bad practice). Anyway, when you know what to do, you’re gonna be good.

The same modem is being currently sold by many other UK vendors like T-Mobile or Vodafone. They should work exactly the same, although the user details and password may differ.

Final conclusions

I use the Three 3G modem in Ubuntu on my every-day travels between Coventry and London Euston. It proves to work fine (although I expected the signal to be a bit better in Virgin Trains, but it’s another story). As I use the Internet during travel mostly to check e-mail, get some RSS feeds and post some news-stories or articles on one of the websites, the random signal is not a nightmare for me. For a person who would like to do some serious work it might be an issue, though. In all other places except for the trains, I was very satisfied with my 3G modem. It just works and the connection speed it pretty good for mobile access, so I cannot complain. It’s good to know that for the mobile Linux users, there is a quite cheap solution to get the Internet connection nearly everywhere.

Subscribe to RSS feed for this article!


fold this thread Andrei  Wednesday, 11 June 2008 o godz. 9:53 am #  Add karma Subtract karma  +1

Thank you so much.

I live in Ireland and use 3G too. It is great to know that the dongles work with Linux, so I am getting one too

(Comments wont nest below this level)
fold this thread michuk  Wednesday, 11 June 2008 o godz. 11:59 pm #  Add karma Subtract karma  +1

No problem. I only wish the guys behind the desks in the phone stores knew a bit more about what they were selling. I’m sure they already lost a lot of Apple or Asus Eee clients just because they claim it doesn’t run under anything but Windows. Pretty stupid.

fold this thread callum  Thursday, 12 June 2008 o godz. 12:32 pm #  Add karma Subtract karma  +0

I’ve been using my t-mobile E220 with Fedora 7 and Fedora 8 for over a year now. I simply use kppp in much the same way as you use gnome-ppp – except I didn’t bother with wvdial (although I do use wvdial on puppy linux). It takes one click to get into the network and is remarkably good – we have had consistent network connections whilst on the road.

yet to test it with the new network manager in fedora 9 that apparently supports the e220 out of the box.

Also, I’ve been in touch with tmobile support a few times (when their DNS servers stopped working or the local node stopped working) and whilst their first line support guys will simply say “you must use XP” – the second line and 3rd tech guys know that it works OK with linux and in fact, in the end I helped them diagnose their network issues due to having better tools to do so in linux.

A top tip would be if you are using 3/tmobile in the UK – use OpenDNS instead of their DNS servers.

(Comments wont nest below this level)
fold this thread callum  Thursday, 12 June 2008 o godz. 12:38 pm #  Add karma Subtract karma  +1

another top tip – always connect the E220 before switching the laptop on. I think its to do with the duality of the USB device where it sometimes pretends to be a CD – with the windows exe files on flash.

For the candy-desktoppers, pinch the .ico file out of the flash memory and use that for your gnomeppp or kppp icon on your desktop.

(Comments wont nest below this level)
fold this thread michuk  Thursday, 12 June 2008 o godz. 1:49 pm #  Add karma Subtract karma  +0

Yes, confirmed. Connectin the device when laptop is already on causes multiple issues. Usually I manage to overcome them by invoking /etc/init.d/hal restart a few times in a row. Still it’s annoying. Greetings from Gatwick Airport :)

fold this thread Alan  Thursday, 12 June 2008 o godz. 7:06 pm #  Add karma Subtract karma  +1

Hey! I wrote a blurb on my blog about using this device under GNU/Linux with our local provider here in Kenya, Safaricom:

About the storage component… there’s no need to restart to have your modem detected. Someone wrote a little tool which
makes the device’s modem be detected, you can find it at his website here: and compile the source with: gcc huaweiAktBbo.c -lusb

Then you don’t have to reboot to get the modem detected. In fact, I leave my modem plugged in and sleep my laptop and just run the tool whenever I want to dial… I think there may even be a more elegant solution in later kernels using the option driver rather than the usbserial driver, but I haven’t played around with it much since I discovered the huaweiAktBbo tool.

Also, you can find a per-session statistics program, he220stat, here:

It doesn’t tell you the overall usage information like the Windows tool which comes with the modem, but it’s still useful for knowing how much traffic you’ve used in one sitting.

Take care,


(Comments wont nest below this level)
fold this thread uli  Friday, 13 June 2008 o godz. 4:23 am #  Add karma Subtract karma  +0

I’m having a bit of a hard time using the E220 in kppp and kubuntu 7.04.

The devices aren’t always created reliably (the modem creates three USB serial devices and apparently only works properly when all three exist). kppp (or even minicom) would always block attempting to open the port. Sometimes it helps to unload the USB host driver, sometimes not.

The laptop is an ASUS A9. Does anyone face the same problem? This is extremely frustrating since so many people are reporting that it works fine for them…

(Comments wont nest below this level)
fold this thread r3  Friday, 13 June 2008 o godz. 7:27 am #  Add karma Subtract karma  +0

Hi guys … OK .. for all those that tried the above and are desperate “because it doesnt work for me!!! ” ….

herez a little hint

1. I did not install updates but running ubuntu 8.04
(maybe the above workz fine for you with updates but if not..)

edit /etc/modprobe.d/blacklist

and add the following at the end of the file

# remove e220-conflicting airprime
blacklist airprime

reboot and enjoy

(Comments wont nest below this level)
fold this thread Claude J Greengrass  Friday, 13 June 2008 o godz. 8:17 am #  Add karma Subtract karma  +0

I recently found out that has classified as a source of SPAM and any e-mail send via make get marked as such. A friendly sysadmin on an e-mail list noticed my e-mail were getting e-mails sere getting treated as potential spam. Specifically is blacklisted: “…sender is a abuseable web server…”

If you suspect your e-mail is getting dropped, check if it’s getting classified as SPAM. I’ve notified of this problem and requested that they address it. If they can’t fix it, I’m stuffed as I still have 16 months of an 18 month contract to run.

(Comments wont nest below this level)
fold this thread Mohammad Bahathir Hashim  Friday, 13 June 2008 o godz. 9:30 am #  Add karma Subtract karma  +0

To check/monitor transfered data on ppp0, I use iftop. It also shoews current links throughputs.

Please give a try.

BTW, I am using GNU/Linux Slamd64 with Motorola RAZR V3xx phone. I use only basic pppd+chat to do the connection to HSDPA/3G network.

(Comments wont nest below this level)
fold this thread Scott B McDowall  Saturday, 14 June 2008 o godz. 4:16 pm #  Add karma Subtract karma  +0

Since you are paying the money to Three, you should register with their My Three service online. Once registered,you can access your actual usage withing your “My Account”.

It displays as the amount of kbs you have left to downlaod – you can calculate how much you have used by subtracting this number from 1024 or the amount of Kbs that you signed up for.


(Comments wont nest below this level)
fold this thread Chris  Saturday, 28 June 2008 o godz. 7:51 pm #  Add karma Subtract karma  +1

Hi there,

After reading a few tutorials on setting up this modem on Ubuntu, I discovered a very simple way of setting up the three 3g modem on Ubuntu too.

I didn’t know if you’d discovered this utility yet, but it shaves a lot of time in setting up the 3g modem.



(Comments wont nest below this level)
fold this thread Francis  Monday, 7 July 2008 o godz. 12:20 pm #  Add karma Subtract karma  +0

Please let me know where this utility is and how to use it.

Much appreciated


fold this thread Francis  Monday, 7 July 2008 o godz. 12:17 pm #  Add karma Subtract karma  +0


I am an absolute baby with linux, I’m getting a bit overwhelmed by how different it is. I’m trying to connect a 3G modem (just like the one here) and I am trying to run wvdial, but whenever I try and modify the conf file in text editor it keeps saying that I am not the owner. Please help. I just installed my first linux (ubuntu) and can’t get it to connect.


(Comments wont nest below this level)
fold this thread michuk  Monday, 7 July 2008 o godz. 3:33 pm #  Add karma Subtract karma  +0

@Francis: try:
sudo su
Now edit /etc/wvdial.conf as mentioned in the article

The first command switches you to the superuser account (root) on Ubuntu. As Ubuntu does not set up the root password by default you need to use sudo command (switch user do) instead of simple su to swicth to root.

Hope it’s helpful.

fold this thread Vijay  Tuesday, 8 July 2008 o godz. 12:46 am #  Add karma Subtract karma  +0

Hi Francis ,

I have done as you wrote but I have got the following :

–> WvDial: Internet dialer version 1.60
–> Cannot open /dev/ttyUSB1: Exec format error
–> Cannot open /dev/ttyUSB1: Exec format error
–> Cannot open /dev/ttyUSB1: Exec format error

I have also tried gnome-ppp but it always shows ‘idle’ although the status is connected.
What do you suggest in these two cases ?


fold this thread michuk  Wednesday, 9 July 2008 o godz. 8:55 am #  Add karma Subtract karma  +0

Try rebooting your computer with the modem plugged in. Sometimes it doesn’t want to detect the modem if you plug it into your USB port while running.

fold this thread vijay  Wednesday, 9 July 2008 o godz. 10:37 pm #  Add karma Subtract karma  +0

I have rebooted. But still “idle” status and the following in the terminal . I am using the Irish 3G and the modem is identical to the one in your picture :

GNOME PPP: STDERR: –> WvDial: Internet dialer version 1.60
GNOME PPP: STDERR: –> Cannot get information for serial port.
GNOME PPP: STDERR: –> Initializing modem.
GNOME PPP: STDERR: –> Sending: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
GNOME PPP: STDERR: –> Modem initialized.
GNOME PPP: STDERR: –> Sending: ATM1L3DT*99#
GNOME PPP: STDERR: –> Waiting for carrier.
GNOME PPP: STDERR: –> Carrier detected. Starting PPP immediately.
GNOME PPP: STDERR: –> Starting pppd at Wed Jul 9 22:52:29 2008
GNOME PPP: STDERR: –> Pid of pppd: 6913
GNOME PPP: STDERR: –> Using interface ppp0
GNOME PPP: STDERR: –> local IP address **.***.***.**
GNOME PPP: STDERR: –> remote IP address **.**.**.**
GNOME PPP: STDERR: –> primary DNS address ***.**.***.**
GNOME PPP: STDERR: –> secondary DNS address ***.**.***.**

The light is blue and Gnome-PPP says its connencted but I can’s surf the net.

fold this thread michuk  Saturday, 12 July 2008 o godz. 5:02 pm #  Add karma Subtract karma  +0

Sometimes it happens that it connects but the net is so slow that you may think it doesn’t work. It happens both in Windows and Linux. No idea what the problem is. But usually this is the case when you connect from a place with weak connectivity like a basement or a train.
Another issue may be DNS. Set up as a proxy server in your Firefox.

fold this thread Andre Lukmana  Sunday, 15 March 2009 o godz. 11:42 am #  Add karma Subtract karma  +0

I think your connection signal is to low, so the gppp indicate idle. Try ubuntu 8.04.2, it’s run well on you E220

fold this thread Desmond  Thursday, 10 July 2008 o godz. 4:51 pm #  Add karma Subtract karma  +0

Hi there, this is an interesting thread for me as I am a new user to Linux using Ubuntu 7.10. When I run wvdial the modem is detected. Sorry to ask a stupid question but what command do I have to issue to amend Phone, Username and Password details please?

Thanks for any help you can give.

fold this thread Francis  Wednesday, 9 July 2008 o godz. 11:27 am #  Add karma Subtract karma  +0

Thanks so much.

I just don’t know what command to use in shell to be able to edit the wvdial.conf file. Please help, just learning linux for the first time.



(Comments wont nest below this level)
fold this thread Tom  Wednesday, 9 July 2008 o godz. 12:33 pm #  Add karma Subtract karma  +0


sudo gedit /etc/wvdial.conf

Enter the above in a Terminal window. ‘sudo’ makes you the root user and gives you permission to edit, ‘gedit’ is a text editor like Notepad on Windows, and ‘/etc/wvdial.conf’ is the location of the config file.

fold this thread Sir William  Saturday, 12 July 2008 o godz. 1:20 pm #  Add karma Subtract karma  +0

Thanks so much.. i could get it working.. used so many differnt methods.. yours worked straight up..

(Comments wont nest below this level)
fold this thread David  Wednesday, 23 July 2008 o godz. 11:30 pm #  Add karma Subtract karma  +0

Great article and thread.

Does anyone know if the modem is locked to the Three-UK network? I’m planning to buy a local, pay as you go, 3G sim card when I go abroad, and put that in the modem, to avoid huge roaming charges. But, if the modem is locked to the Three-UK network, that won’t work.

Has anyone else tried this?

(Comments wont nest below this level)
fold this thread KJóN  Thursday, 24 July 2008 o godz. 10:57 pm #  Add karma Subtract karma  +0

Quite nice article.

A word of advice: In order to keep the crap out of the dialing process (those weird signs that appear in the middle of the ‘relevant’ information), append ‘New PPPD = yes’ to your wvdial.conf

(Comments wont nest below this level)
fold this thread NZ  Monday, 28 July 2008 o godz. 4:28 pm #  Add karma Subtract karma  +0

great article, i really needed it !
thank you :)

(Comments wont nest below this level)
fold this thread howkewlisthat  Thursday, 7 August 2008 o godz. 3:44 pm #  Add karma Subtract karma  +0

thanks for the simple tip. I used your work to configure my Bandluxe 3.5G C100 modem on my Kohjinsha SH UMPC running Ubuntu Hardy (8.04). Up and running in about 2 min. I’m adding this comment while connected to the O2 network.

Command line control of dialup is much easier than trying to use the gnome app.

For your readers, here is my O2 UK configuration:

[Dialer Defaults]
Init1 = ATZ
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
Stupid Mode = 1
Modem Type = Analog Modem
Baud = 9600
Modem = /dev/ttyUSB0
ISDN = 0
Phone = *99#
Password = password
Username = mobileweb
Dial Command = ATDT

[Dialer O2]
Init2 = ATZ
Init3 = ATE0 V1 &D2 &C1 S0=0 +IFC=2,2
Init5 = AT+CGDCONT=1,”IP”,””
ISDN = 0
Modem = /dev/ttyUSB0
Modem Type = Analog Modem
Baud = 460800

(Comments wont nest below this level)
fold this thread Baptiste  Monday, 12 October 2009 o godz. 4:49 pm #  Add karma Subtract karma  +0

thanks for this, great stuff, my dongle was working with the network manager in ubuntu Jaunty, but the problem I encounter is that there is no option to block the used network as 3G, it keeps switching from 3G to dial-up and makes for difficult connections, anyone got around that yet ?
any help greatly appreciated

fold this thread MattW  Friday, 8 August 2008 o godz. 6:43 pm #  Add karma Subtract karma  +0

…and for T-Mobile UK

[Dialer Defaults]
Init1 = ATZ
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
Stupid Mode = 1
Modem Type = Analog Modem
Baud = 9600
New PPPD = yes
Modem = /dev/ttyUSB0
ISDN = 0
Phone = *99#
Password = user
Username = user

[Dialer TMobile]
Init2 = ATZ
Init3 = ATE0 V1 &D2 &C1 S0=0 +IFC=2,2
Init5 = AT+CGDCONT=1,”IP”,””
ISDN = 0
Modem = /dev/ttyUSB0
Modem Type = Analog Modem
Baud = 460800

(Comments wont nest below this level)
fold this thread Michael  Wednesday, 10 September 2008 o godz. 1:06 am #  Add karma Subtract karma  +0

Great article – worked for me with the E160 Three USB modem. I find it can be a bit picky as well. I have it working on 7.10 (Dell PC) and 8.4 (Aspire).

Bargain: Three were offering loads more GBs if you signed up for a phone at the same time – I got 15GB for £15/month – phone price reasonable/various offers. Use their pay as you go until your phone contract runs out (I don’t work for them!!)

(Comments wont nest below this level)
fold this thread winehouse  Saturday, 20 December 2008 o godz. 10:37 pm #  Add karma Subtract karma  --6

yea..great…how bout summit in fuckin good ol plain english

(Comments wont nest below this level)
fold this thread timttmy  Sunday, 15 February 2009 o godz. 11:10 pm #  Add karma Subtract karma  +0

Cool, this howto got me up and running on arch linux.

Anyone interested in getting there text msgs off there dongle using linux there is a great howto at

I used it to pull my password off for signing into the my three web service as I don’t have a windows machine.

(Comments wont nest below this level)
fold this thread Luca  Sunday, 29 March 2009 o godz. 7:12 pm #  Add karma Subtract karma  +0

I am using O2 in the UK and the configuration is slightly different from what howkewlisthat posted (probably O2 changed some parameters).
The username “mobileweb” should be replaced with “o2bb”;
the APN instead of “” is “”.
I hope it helps.

(Comments wont nest below this level)
fold this thread Ian  Wednesday, 20 May 2009 o godz. 9:38 am #  Add karma Subtract karma  +0

Your script and advice worked for me running a Huawei E220 modem on Kubuntu on a Macbook Pro – thank you!

Just one small thing: it doesn’t work for me unless I invoke wvdial with:

sudo wvdial three

The “three” is critical!

(Comments wont nest below this level)
fold this thread Thomas  Monday, 8 June 2009 o godz. 3:12 pm #  Add karma Subtract karma  +0

Thank you very much for this great article. I’m using Kubuntu 9.04 and with the plasma-network-manager my configuration failed to access the internet.

Once again, thank you.

(Comments wont nest below this level)
fold this thread Dexter C.  Wednesday, 5 August 2009 o godz. 3:42 pm #  Add karma Subtract karma  +0

Wonderful! Worked at first attempt. I’m using a Huawei E170 on a HP DV2500 dual-booting Ubuntu and Win Vista. My ISP is MTN in Nigeria, and it worked without a hiccup. I was wondering how to get the modem to work. All I did was change the user name and password.
Thanks, man. Haven’t tried the scripts yet, though.
Thanks again.

(Comments wont nest below this level)
fold this thread Segura  Monday, 7 September 2009 o godz. 1:17 pm #  Add karma Subtract karma  +0

Hey dud I flow your instructions
i notice the speed is too low than
the speed on windows xp.

thanks man

(Comments wont nest below this level)
fold this thread Kingsley  Wednesday, 25 November 2009 o godz. 2:02 am #  Add karma Subtract karma  +0

Thanks for the info buddy. youve done us a great service. keep up the good work!

(Comments wont nest below this level)
fold this thread rocha  Sunday, 17 January 2010 o godz. 1:20 pm #  Add karma Subtract karma  +0

Well, thanks a million! I was able to follow your instructions to get my Ubuntu 8.04 to work with the Orange Internet Everywhere service offered in Uganda. This service uses a Huawei 3G USB Modem as well.

Edit the relevant lines in wvdial.conf as follows:

Phone = *99#
Username = orange
Password = orange

and re-boot with the USB modem inserted.

Thanks once again!

(Comments wont nest below this level)
fold this thread alisdair  Wednesday, 10 February 2010 o godz. 5:15 pm #  Add karma Subtract karma  +0

Dude Why are u still using Ubuntu 8.04 , a brand new 9.10 karmic koala is available and connects seamlessly with out any hussle , you need to change and enjoy the experience in fact you can use that very fast orange connection in Uganda ( i know coz i use it too) to get the link Good luck

fold this thread mcharles  Wednesday, 28 July 2010 o godz. 1:11 am #  Add karma Subtract karma  +0

hi i have orange modem
tried yo method all the steps
saving the edited relevant lines in wvdial.conf is the problem.
it gives me
”you have no permission to save ./etc/wvdial.conf”
otherwise i cant use the modem on ubuntu.
plse help thanks….

(Comments wont nest below this level)
fold this thread Deba  Saturday, 9 October 2010 o godz. 2:25 pm #  Add karma Subtract karma  +0

Thank you. Now I’ve installed MMX310G 3G USB Manager in My Redhat OS.

Linux The Best

(Comments wont nest below this level)
fold this thread lyru  Saturday, 16 October 2010 o godz. 6:40 pm #  Add karma Subtract karma  +0

Hi guys can anyone tell me how to edit command line in terminal. Thanks to advice

(Comments wont nest below this level)
fold this thread richard a  Wednesday, 16 February 2011 o godz. 3:55 pm #  Add karma Subtract karma  +0

I also have problems with my dongle not wanting to connect sometimes even though the settings are correct,can someone tell me how to edit the script for use with a orange dongle please?
# cat /usr/bin/connect
killall -9 wvdial
rmmod airprime
ifdown wlan0 iwl4965
modprobe airprime
sleep 3
nohup wvdial three &
tail -f nohup.out
There is a really good program to see how much data used over a long period called vnstat worth a look!

(Comments wont nest below this level)
fold this thread Kirk S. Lippold  Wednesday, 8 February 2012 o godz. 6:01 am #  Add karma Subtract karma  +0

Definitely believe that which you said. Your favorite justification appeared to be on the web the easiest thing to be aware of. I say to you, I certainly get irked while people consider worries that they plainly don’t know about. You managed to hit the nail upon the top as well as defined out the whole thing without having side-effects , people could take a signal. Will probably be back to get more. Thanks

(Comments wont nest below this level)
fold this thread weakpointroulette  Wednesday, 9 July 2014 o godz. 12:44 pm #  Add karma Subtract karma  +0

I feel this is one of the most important information for me.
And i’m satisfied reading your article. However wanna commentary on some normal things, The website taste is wonderful, the articles is really nice :
D. Just right task, cheers

(Comments wont nest below this level)
Name (required)
E-mail (required - never shown publicly)

Adjust field size: shrink | enlarge)

You can use simple HTML in your comments. Some examples are as follows:
  • A hyperlink: <a href="">GNU/Linux for everyone!</a>,
  • Strong text: <strong>Strong text</strong>,
  • Italic text: <em>italic text</em>,
  • Strike: <strike>strike</strike>,
  • Code: <code>printf("hello world");</code>,
  • Block quote: <blockquote>Block quote</blockquote>

About the Author

Borys Musielak creator and editor in chief. Professionally -- J2EE consultant in London City. Personally -- free software enthusiast and lobbyist.

New AdTaily ads!

Are you a film buff?

film buffs community, movie recommendations and reviews

RSS: Comments

You can follow the comments to this article through a special channel RSS 2.0 .

Related articles: Ubuntu

 more »

PolishLinux Top Content

Become our fan on Facebook! on Facebook

Follow PolishLinux on Twitter!

Follow polishlinux on Twitter

Google Ads