Skip navigation

Category Archives: openSUSE

There’s many way to make USB modem Vodafone Huawei E220 work on openSUSE 11, this modem work in Ubuntu 9.04 also, so i think this will work on different (latest) version of openSUSE or Ubuntu. USB modem Huawei E220 is run out of the box in OpenSUSE 11 and Ubuntu 9, it’s completelly detected.

To make it run we can use one of this program:

  1. NetworkManager
  2. Wvdial
  3. UMTSmon
  4. Vodafone Mobile Connect Card Driver for Linux
  5. KInternet
  6. smpppd
  7. kppp
  8. HSOconnect

I’m going to show how to configure Vodafone Huawei E220 in NetworkManager, wvdial, UMTSmon, and Vodafone Mobile Connect.

Issues in Point-to-Point Protocol (PPP) on Linux
Before we got into that, there’s a problem when using ppp on Linux. Sometimes after we make a successfull connection using one of the program, it set the wrong DNS on /etc/resolv.conf usually to 10.11.12.13 and 10.11.12.14, so we still not connect to the internet. This is not always happen, some other time it set correct DNS. But in my case it’s almost always set bogus DNS, so usually after the connection is establish I open /etc/resolv.conf with text editor (Vi, Kwrite, Gedit, etc) then set the correct DNS.

Where do i get the correct DNS ? well i just run this modem in Windows, see the DNS and then get back to Linux to set the correct DNS. Off course if you only use one GSM card, you only need to do this once. To make thing simple on changing the DNS, I make another file (eg, “/etc/resolv-true.conf“) with the correct DNS, after the connection is establish in the console I type “CP /etc/resolv-true.conf /etc/resolv.conf“, it will replace /etc/resolv.conf that had wrong DNS with my file. I almost always to do this every time┬á ­čśŽ .

I don’t know what issues this is, in openSuse 11 it’s always set wrong DNS, but it’s not always in Ubuntu 9. Maybe it’s modem or ppp version issues. However i’m trying Vodafone K3520 / Huawei K3520 in openSuse 11 and Ubuntu 9, it always get the correct DNS, really weird.

Ref:
https://bugzilla.redhat.com/show_bug.cgi?id=467004
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=445711
http://umtsmon.sourceforge.net/docs/OLS.umts.paper.pdf

Issues using Firefox
If we make a connection besides using NetworkManager,┬á it’s likely that you wont be able to use Mozilla Firefox, we can’t browse anything. The reason is I got it from here. it said┬á“even if a ┬áconnection is made, software like Gaim and Firefox will refuse to connect because according to them there is no connection. Apparently they use libnm to ask NetworkManager if the system is on-line or not”.

But we still can use Opera or Konqueror, even this is annoying since Firefox is one of the best browser.

Updated 11-01-2010:
Ok, what we need to is just untick Work Offline menu (File –> Work Offline). Apparently firefox just make the browser to work offline if NetworkManager is not in use ­čÖé . This is firefox bug by the way.

Ref:
https://bugzilla.mozilla.org/show_bug.cgi?id=424626

Detecting Device
After we plug the modem to PC/Laptop use, we can use the command like “dmesg | grep modem” or “dmesg | grep HUAWEI” to see if our modem is detected.

if you get output something like above picture, then you got your modem detected.

NetworkManager
The simplest and reliable way to make ppp connection using Huawei E220 modem is NetworkManager (KNetworkManager in KDE). Here is the step:

1. Klik on KNetworkManager Icon then New connection … –> ttyUSB0

2. Insert Username, Password, Number, and APN from your operator/provider. In my case I only insert those field. Click Next.

3. Just click Next

4. Set Baud rate to 9600. Click Next.

5. Just click Next

6. Set the Connection Name, you can use any name. I’m just using my operator name. You can click “Connect & Save” to start connecting or just click “Save” to save the configuration.

7. To connect, click on KNetworkManager Icon then the name of the connection. After succesfull connection, you’ll see the KNetworkManager icon is changed.

WvDial
WvDial is a Point-to-Point Protocol dialer, it’s console based. Wvdial is used as a connection by Vodafone Mobile Connect, smpppd, KInternet. WvDial save and loads its configuration from /etc/wvdial.conf. To get a best practice using wvdial we can start by delete default /etc/wvdial.conf (e.g “rm /etc/wvdial.conf”┬á in openSuse as root, or “sudo rm /etc/wvdial.conf” in Ubuntu).

Open a console and now let’s see how wvdial detect our modem. To configure wvdial we need to do it as root. Here is the step:

1. Type “wvdialconf /etc/wvdial.conf“, then ENTER. The output is like ┬ápicture below.

Here is the content of generated /etc/wvdial.conf:
[Dialer Defaults]
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
Modem Type = Analog Modem
; Phone =
ISDN = 0
; Username =
Init1 = ATZ
; Password =
Modem = /dev/ttyUSB0
Baud = 9600

2. Here is my /etc/wvdial.conf:
[Dialer Defaults]
Init1 = ATZ
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
Init3 = AT+CGDCONT=1, "IP", "AXIS"
Modem = /dev/ttyUSB0
Phone = *99#
Idle Seconds = 300
Modem Type = Analog Modem
Stupid Mode = 1
Compuserve = 0
Baud = 9600
Auto DNS = 1
Dial Command = ATDT
Ask Password = 0
ISDN = 0
Password = 123456
Username = axis

Just like using NetworkManager we need to provide Username, Password, Phone Number, and APN. APN is set in Init3 parameter using AT+CGDCONT command, replace it with APN from your provider only if your connection need APN, otherwise we can remove Init3 string. Note on modem, change it if your device mapping is not set to /dev/ttyUSB0.

3. To establish a connection type┬á“wvdial” in the console, the output will likely like this:

Output above is on Ubuntu, it resolve correct DNS, so you can begin browsing. Output below is when it set wrong DNS on openSuse, need to edit /etc/resolv.conf manually.

note: For the screenshoot i’m using Ubuntu 9.04, still in the same machine. ┬áSomehow my openSuse 11 always set the wrong DNS after wvdial command. Maybe you wont find this problem. So just remove the sudo command in openSuse.

UMTSmon
Get umtsmon from here, here, or openSuse one click install file. To get umtsmon detect our huawei e220 modem, we need huawei_umtsmodem package, get it from here or this one click install file. Install both files and it should detect our modem.

1. Open umtsmon, it will analyze the modem, detect card and signal strength.

2. Click menu Connection –> Manage Profiles …, it should be empty on Manage Profiles box in the first run. Press Add profile… button.

3. Type Profile Name, then press Create button.

4. Set the APN, username, and password. Press Save button.

5. New profile is now in the list. Close the Manage Profile box.

6. Click menu Connection –> Connect or press Connect button. Set the profile we want to activate, then press OK button.

7. Umtsmon is setting up internet connection.

8. Successfull connection will look something like this.

Ref:
http://en.opensuse.org/Umtsmon
http://en.opensuse.org/Huawei_UMTS_USB_Stick

Vodafone Mobile Connect Card Driver for Linux
Get vodafone mobile connect card driver for linux and it’s dependencies from here.

1. Open┬ávodafone mobile connect card driver for linux, then create new profile using menu Tools –> Profiles –> New Profile

2. Set Profile Name, username, password, and APN.

Check Use static DNS checkbox, if you want to set DNS manually. Then press OK button.

3. Click the Connect button to establish a connection.

4. Successfull connection shown like picture below.

Ref:
http://www.howtoforge.com/vodafone_mobile_connect_card_driver_linux
http://www.vodafonebetavine.net/bvcms/documents/vmc/installation-en.pdf

New connection …
Advertisements

My laptop is Lenovo 3000 G430, i don’t really sure what it’s official name. Sometimes it’s called LENOVO IdeaPad G430 953, 953 is my laptop series. I was using openSUSE 11 and Widows Vista as operating system, and here is the result: on openSUSE 11 everything is fine except for the touchpad, wifi, and dial-up modem (maybe), it is not working. on Windows Vista everything is working, thanks to the drivers on Windows Vista version.

Only openSUSE 11 and Fedora 9-10, linux distros that succesfully installed. Ubuntu 8.04 and Linux Mint was failed on installation process.

I think Lenovo 3000 G430 is very Widows Vista oriented, they only provide drivers for Windows Vista. Even I can’t install Windows XP, it’s raised error message when booting from the installation CD. When i try openSUSE 11 installation CD on other laptop, the touchpad is working, but when i try openSolaris 2008 live CD on my laptop, the touchpad is woking ­čśÇ . I spend many time to get the touchpad works, it’s just keep failed, it’s gave me a headache just to make the touchpad working. Maybe someone can help me? And also my wifi device still not working even after i get instruction from this sites.

Overall, i almost satisfied with the colaboration of Lenovo 3000 G430 and openSUSE 11, many of hardware device isn’t working on Windows Vista if I dont install the driver, but openSUSE 11 has done a good job. Maybe if the touchpad and wifi is working with openSUSE 11, I will be very pleased and can get rid off Windows ­čśŤ . Just sharing my experiences….

Updated 03-08-2009:
Finally WIFI is working using Ndiswrapper, because my wireless PCI device is not supported by Linux at this momment.

My wireless is BCM4310 with device PID is 14e4:4315 as state here it is not supportted ­čśŽ , so i install ndiswrapper using OpenSUSE 1-Click Install. Using Ndiswrapper we need INF file from Windows driver which is bcmwl5.inf , i got it from here and here and here, there is 482.1kb and 727.3kb version, just use the 727.3kb version.

Updated 28-09-2009:
Now i’ve got Ubuntu 9.04 installed. Everything work fine except for touchpad need to press Fn+F8 twice to get it working. Wifi NO NEED Ndiswrapper, but sometimes need to turn on wifi from Windows.

Updated 26-03-2010:
Activate wifi┬átoggle first, if the wifi led is not on that’s mean wifi is off. To get wifi on without switching on from Windows, just type “modprobe ndiswrapper” from console as root. The wifi led should light by now. I think this is the way for wifi device that use ndiswrapper to install the driver.