vrijdag 14 mei 2010

Configuring Huawei E1752 on openSUSE

Configuring the Huawei E1752 mobile internet usb modem (as it is used by ie Tele2 in the Netherlands) has been quite a challenge on openSUSE, thats why it seems like a sensible idea to write down the steps i took here:
  1. First, install the newest version of the following packages (search them om http://software.opensuse.org/search ):
    • umtsmon
    • usb-modeswitch
    • huawei-umtsmodem
  2. Reboot the computer to ensure all modules are loaded
  3. Connect the usbstick
  4. Check lsusb is the Huawei stick is shown as a modem (instead of just a plain device without the mention of it being a modem)
  5. Edit /etc/sysconfig/network/config and change NETCONFIG_DNS_POLICY=”auto” to NETCONFIG_DNS_POLICY=”STATIC_FALLBACK ppp* NetworkManager”
  6. Start umtsmon once and create a profile, shut it down again
  7. Check if ls -l /dev/ttyUSB* results in /dev/ttyUSB0, /dev/ttyUSB1 and /dev/ttyUSB2
  8. Open /home/~user/.umtsmon/umtsmon.rc and set PPPPortName=/dev/ttyUSB0 instead of ttyUSB2 (which is only for monitoring purposes).
  9. Reboot again to make sure everything is loaded (die hard "no linux doesnt need to reboot"-fanboys can also relogin and perform a rcnetwork restart if they feel like it).
  10. Start umtsmon from Menu -> Internet -> Dialup -> umtsmon (or just Konsole umtsmon)
  11. Enter the pincode and connect the default profile
  12. And it SHOULD JUST WORK LIKE THAT
Took me just about 3 hours to find all this out, please, have fun with it!

====

ABSOLUTELY NO WARRENTY AT ALL, but these scripts seemed to have worked for me on openSUSE 11.2:

Install the packages:

zypper addrepo http://download.opensuse.org/repositories/home:/Freespacer:/huawei_umtsmodem/openSUSE_11.2/ home:Freespacer:huawei_umtsmodem &&
zypper addrepo http://download.opensuse.org/repositories/home:/tuoma/openSUSE_11.2/ home:tuoma &&
zypper update --recommends usb-modeswitch &&
zypper install --recommends umtsmon &&
zypper insatll --recommends huawei_umtsmodem

Editing DNS configuration:

sed 's/NETCONFIG_DNS_POLICY=”auto”/NETCONFIG_DNS_POLICY=”STATIC_FALLBACK ppp* NetworkManager”' /etc/sysconfig/network/config

Editing umtsmon userconfig:

sed 's/PPPPortName=//dev//ttyUSB2/PPPPortName=//dev//ttyUSB0' /home/$USER/.umtsmon/umtsmonrc

====
If connecting doesnt work (or on receiving DNS updating errors when running connect in umtsmon) try disabling all other network cards/connections before retrying.

Geen opmerkingen: