Skip navigation

Tag 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 and, 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.


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.


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.

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 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.

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.


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.


New connection …

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.

Refer to this link to prepare the instalation. Follow every steps mentioned. Here is the steps:

  1. Install openSUSE 11.0 with “C/C++ Development” selection.
  2. Download and Install orarun package. Enable and set password for newly created user oracle by orarun.
  3. Change some environment variables – ORACLE_HOME, ORACLE_SID, TNS_ADMIN in /etc/profile.d/
  4. Set updated kernel parameters by executing /etc/init.d/oracle start or rcoracle start.
  5. Download and extract Oracle Oracle 11gR1 SW.
  6. login as user oracle and run Oracle Universal Installer “database/runInstaller“. Just follow step by step questions of Oracle installer.

On my experience the setup isn’t working after I try to login (from console) as “oracle” user and start installation (step 6).
The orarun setup create “oracle” user as “System Users” not as “Local Users”, so i decide to delete “oracle” user and make the user manually from Yast –> Security And Users –> User and Group Management. Set Default Group to “oinstall” and additional groups to “dba” and “disk”.

Add user 1 Add user 2

Note: Do not create user from console (using useradd command), the created user not registered with X Server (and i dont know how to register user with X Server 🙂 ), caused failed when try to start installation.

After “oracle” user is created, login as “oracle” user from console then start installation by typing “./runInstaller”. Just fill every required information, and keep press next or press yes if there’s prerequisite check warning, until installation is finished. After installation is finished we can browse to oracle database using Oracle Enterprise Manager Database Control using address https://%5BHOST_NAME%5D:1158/em

Installation Screenshot
oracle01 oracle02

oracle03 oracle04

oracle05 oracle06

oracle07 oracle08

oracle09 oracle10

Starting Oracle database after Reboot/Restarting
Oracle 11g database is not automatically started when we turn on computer/laptop, this is steps to start oracle database:
1. Open console, login as “oracle” user

2. login to sqlplus, then type “STARTUP” to start database.

3. Exit from sqlplus (type “exit”)

4. Start Oracle Net Listener, type “lsnrctl start [LISTENER]”

5. Start Oracle Enterprise Manager Database Control service, type “emctl start dbconsole”

Oracle Enterprise Manager Database Control Screenshot
oem01 oem02oem03