Library yang dibutuhkan yaitu :
- Wvdial (klik link ini)
- usb-modeswitch
>> http://packages.ubuntu.com
Konfigurasi :
- Pastikan modem telah terpasang pada port USB.
- Edit file “wvdial.conf”.
root@riyaniezt:~# gedit /etc/wvdial.conf
[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/ttyUSB2
ISDN = 0
;Phone = Target-Number-Phone
;Password = Your-Password
;Username = Your-Login-Name
Ubah menjadi :
[Dialer Defaults]
Init1 = ATZ
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
Modem Type = Analog Modem
ISDN = 0
New PPPD = yes
Phone = #777
Modem = /dev/ttyUSB0
Username = smart
Password = smart
Baud = 9600
Keterangan :
- APN adalah APN dari operator yang kita gunakan misal : indosatm2 (IM2), indosatgprs (IM3).
- Phone adalah phone dari operator yang kita gunakan misal : *99# (IM2)
root@riyaniezt:~# wvdialconf
Editing `/etc/wvdial.conf'.
Scanning your serial ports for a modem.
ttyS0<*1>: ATQ0 V1 E1 -- failed with 2400 baud, next try: 9600 baud
ttyS0<*1>: ATQ0 V1 E1 -- failed with 9600 baud, next try: 115200 baud
ttyS0<*1>: ATQ0 V1 E1 -- and failed too at 115200, giving up.Modem Port Scan<*1>: S1 S2 S3 WvModem<*1>: Cannot get information for serial port.
ttyUSB0<*1>: ATQ0 V1 E1 -- OKttyUSB0<*1>: ATQ0 V1 E1 Z -- OK
ttyUSB0<*1>: ATQ0 V1 E1 S0=0 -- OK
ttyUSB0<*1>: ATQ0 V1 E1 S0=0 &C1 -- OKttyUSB0<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 -- OK
ttyUSB0<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 -- OKttyUSB0<*1>: Modem Identifier: ATI -- Manufacturer: QUALCOMM INCORPORATED
ttyUSB0<*1>: Speed 9600: AT -- OKttyUSB0<*1>: Max speed is 9600; that should be safe.ttyUSB0<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 -- OKWvModem<*1>: Cannot get information for serial port.
ttyUSB1<*1>: ATQ0 V1 E1 -- failed with 2400 baud, next try: 9600 baud
ttyUSB1<*1>: ATQ0 V1 E1 -- failed with 9600 baud, next try: 9600 baud
ttyUSB1<*1>: ATQ0 V1 E1 -- and failed too at 115200, giving up.WvModem<*1>: Cannot get information for serial port.
ttyUSB2<*1>: ATQ0 V1 E1 -- failed with 2400 baud, next try: 9600 baudttyUSB2<*1>: ATQ0 V1 E1 -- failed with 9600 baud, next try: 9600 baudttyUSB2<*1>: ATQ0 V1 E1 -- and failed too at 115200, giving up.WvModem<*1>: Cannot get information for serial port.
ttyUSB3<*1>: ATQ0 V1 E1 -- failed with 2400 baud, next try: 9600 baud
ttyUSB3<*1>: ATQ0 V1 E1 -- failed with 9600 baud, next try: 9600 baudttyUSB3<*1>: ATQ0 V1 E1 -- and failed too at 115200, giving up.WvModem<*1>: Cannot get information for serial port.
ttyUSB4<*1>: ATQ0 V1 E1 -- failed with 2400 baud, next try: 9600 baud
ttyUSB4<*1>: ATQ0 V1 E1 -- failed with 9600 baud, next try: 9600 baud
ttyUSB4<*1>: ATQ0 V1 E1 -- and failed too at 115200, giving up.
Found a modem on /dev/ttyUSB0.
Modem configuration written to /etc/wvdial.conf.
ttyUSB0: Speed 9600; init "ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0"
root@riyaniezt:~#
root@riyaniezt:~# wvdial
--> WvDial: Internet dialer version 1.60
--> Cannot get information for serial port.
--> Initializing modem.
--> Sending: ATZATZOK
--> Sending: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0OK
--> Modem initialized.
--> Sending: ATDT#777
--> Waiting for carrier.ATDT#777CONNECT
--> Carrier detected. Waiting for prompt.~[7f]}#@!}!}!} }/}"}&} } } } }#}%B#}%})h~
--> PPP negotiation detected.
--> Starting pppd at Wed Nov 17 11:43:48 2010
--> Pid of pppd: 5863
--> Using interface ppp0
--> pppd: `xo[08][18]}o[08]
--> pppd: `xo[08][18]}o[08]
--> pppd: `xo[08][18]}o[08]
--> pppd: `xo[08][18]}o[08]
--> pppd: `xo[08][18]}o[08]
--> local IP address 10.227.184.168
--> pppd: `xo[08][18]}o[08]
--> remote IP address 10.20.31.13
--> pppd: `xo[08][18]}o[08]
--> primary DNS address 10.17.3.244
--> pppd: `xo[08][18]}o[08]
--> secondary DNS address 10.17.3.252
--> pppd: `xo[08][18]}o[08]

^CCaught signal 2: Attempting to exit gracefully...
--> Terminating on signal 15
--> pppd: `xo[08][18]}o[08]
--> Connect time 1.4 minutes.
--> pppd: `xo[08][18]}o[08]
--> pppd: `xo[08][18]}o[08]
--> Disconnecting at Wed Nov 17 11:45:12 2010
root@riyaniezt:~#
* Good Luck *