[HOWTO] Connect to internet using USB modem/mobile phone

Post tutorials, HOWTO's and other useful resources here.
User avatar
X-Factor
Black ninja
Black ninja
Posts: 88
Joined: 29 Dec 2010, 23:19
Location: bali, indonesia

[HOWTO] Connect to internet using USB modem/mobile phone

Post#1 by X-Factor » 16 Jan 2011, 10:09

Connecting to the internet using usb modem (or your mobile phone) can be very tricky.

below are the step that i took to make it easier.

1. click console (the small tv like icon)
2. type lsusb
you should get something like this

Code: Select all

lsusb
Bus 002 Device 002: ID 0458:002e KYE Systems Corp. (Mouse Systems)
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 017: ID 19d2:2000 ONDA Communication S.p.A.
Bus 001 Device 002: ID 0204:6025 Chipsbank Microelectronics Co., Ltd CBM2080 Flash drive controller
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
3. type modprobe usbserial vendor=xxxx product=xxxx (see line 3 on lusb list on step 2.)
4. type dmesg | grep usb

you should get something like this

Code: Select all

usb 1-2: new full speed USB device using uhci_hcd and address 2
usb 1-2: configuration #1 chosen from 1 choice
usbcore: registered new interface driver usbserial
drivers/usb/serial/usb-serial.c: USB Serial support registered for generic
usbserial_generic 1-2:1.0: generic converter detected
usb 1-2: generic converter now attached to ttyUSB0
usbserial_generic 1-2:1.1: generic converter detected
usb 1-2: generic converter now attached to ttyUSB1
usbcore: registered new interface driver usbserial_generic
drivers/usb/serial/usb-serial.c: USB Serial Driver core
5. type /etc/usb_modeswitch.conf
if it is not there download latest usbmodeswitch from there and make sure DL the latest and don't forget the latest data pack (most important)
http://www.draisberghof.de/usb_modeswitch/
or here for porteus lzm
http://www.mediafire.com/?b6jfbw747nmrb
6. my suggestion is to convert it yourself using porteus module tool or if you are like me a total noobies :oops: click konqueror (the globle) then right click on the tar.gz file.
to avoid something like this
http://forum.porteus.org/viewtopic.php?f=41&t=169
7. it is worth while too to download wvdial n wvstreams module from
http://www.slax.org/modules.php?search=wvdial&category=
and converted to porteus using step 6.
8. this is a sample of my /etc/wvdial.conf

Code: Select all

[Dialer Defaults]
#Created by wvdialconf:
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
Init1 = ATZ
Modem = /dev/ttyUSB1
Phone = *99#                (will be different in your country/province)
Idle Seconds = 300
Modem Type = USB Modem
Stupid Mode = 1
Compuserve = 0
Baud = 460800
Auto DNS = 1
Dial Command = ATDT
Ask Password = 0
ISDN = 0
Username = 3data      (will be different in your country/province)
Password = 3data      (will be different in your country/province)
New PPPD = yes
finally type wvdial n happy surfing :D
just in case having problem follow the gentlemen advice by the name of tonio in this thread
http://www.slax.org/forum.php?action=vi ... ntID=64763

hope this will help somebody :D

Edit//16-01-11
after doing the first 5 steps you could always use kppp
(tested)
I've been confine to my quarter
http://img143.imageshack.us/i/medusathing.jpg/