วันศุกร์ที่ 20 เมษายน พ.ศ. 2555

How to setup a Huawei E220 Modem in Ubuntu Linux

The Huawei E220 modem is a great gadget capable of internet speeds of up to 3.6 Mbps. Whereas its' set up in windows is relatively easy; it can be a bit of a sick in Ubuntu Linux and other Linux versions.

The setup method described here has been tested with Ubuntu Linux version 8.04 (hardy heron). To begin with, ensure that you have wvdial installed. There are two ways of establishing if you have wvdial installed, these are;

  1. open the synaptic box employer (Main menu >System >Administration >Synaptic box Manager) and scroll through the list of installed items to see if it is included, or,
  2. open a final and type this code: sudo apt-get install wvdial

Once you have your wvdial installed, ensure your modem is plugged into an available Usp port. Then in your final type this code,

Sudo wvdialconf

This command reads all of the settings you will need directly from your modem and writes them to a file called wvdial.conf. Type an additional one command in your final as follows;

sudo gedit /etc/wvdial

This will invoke your text editor (gedit) to open the file at location /etc/wvdial.conf, with executive privileges (sudo). The file will look something like this:

[Dialer Defaults] Init1 = Atz Init2 = Atq0 V1 E1 S0=0 &C1 &D2 +Fclass=0 Modem Type = Analog Modem Baud = 9600 New Pppd = yes Modem = /dev/ttyUsb0 Isdn = 0; Phone; Password; Username

The Phone, Password and Username are not specified and are also preceded by a semicolon followed by a space. First of all delete the semicolon's and spaces so that P,P and U respectively are the first characters on their lines. Next following the same format as the completed fields add an equal sign (=) to each line and give them a value, so you should have something that looks like this.

[Dialer Defaults] Init1 = Atz Init2 = Atq0 V1 E1 S0=0 &C1 &D2 +Fclass=0 Modem Type = Analog Modem Baud = 9600 New Pppd = yes Modem = /dev/ttyUsb0 Isdn = 0 Phone = *99# Password = whatever Username = Anything

The phone whole depends on your Internet aid victualer and may not necessarily be *99#. You can confirm your provider's whole by looking it up on their website. If you still cannot get it then sense your provider.

Before you save the file and exit, make a note of the second word in the first line, in the case of my example (Defaults). This is the name of the profile you will need to invoke for a connection. Press Alt-F2 and type this code;

wvdial Defaults

Or replace the word ''Defaults'' with whatever was in the first line of your wvdial.conf.

If you wish for your modem to connect automatically at log on, take your mouse to the panel menu and navigate through System, Preferences, Sessions and under the "Startup Programs" Tab, click the "Add" button and where it says "Command" type this code:

wvdial Defaults

Be sure also to fill in the "Name" box, but what you type in there is up to you, simply "Huawei" or "E220" may be ideal for your own time to come reference. Open your browser and you should be up and running. If you get a message saying "Offline Mode" This is just a default setting in Firefox, simply click on "File" in the browser's menu and in the tool bar de-select "Work offline".

Finally, if you are still unable to connect, visit any of the numerous forums on the internet such as forums.digitalpoint.com and post a question. You should get a beneficial riposte within a short time.

ไม่มีความคิดเห็น:

แสดงความคิดเห็น