Selamat Datang di Blog Alexbucely blog ala kadarnya seputar Tips dan Trik Internet, semoga bermanfaat bagi anda "Jangan Lupa Tinggalkan Koment Anda"

Tuesday, December 6, 2011

cara install modem smartfren di ubuntu

Langkah 1 :
Hidupkan komputer, masuk ke desktop ubuntu, dan masukan modemnya ke colokan usb, buka terminal

ubuntu@bangjar-laptop:~$ lsusb
Bus 003 Device 002: ID 09da:000a A4 Tech Co., Ltd Port Mouse
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 003: ID 19d2:ffde ONDA Communication S.p.A.
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Dari hasil tersebut di dapatkan vendor id (19d2) dan product id (ffde). Kode ffde berarti modem terdeteksi sebagai storage device atau CD-ROM.

Langkah 2 :
Sekarang kita eject drive CD-ROM tersebut

ubuntu@bangjar-laptop:~$ sudo eject /dev/sr1
Catatan: USB mode switch tidak diperlukan utk modem ini. sr1 di liat dari hasil dmesg

Langkah 3 :
Ketik lsusb untuk mengetahui perubahan produk id dari ffde ke ffdd.

ubuntu@bangjar-laptop:~$ lsusb
Bus 003 Device 002: ID 09da:000a A4 Tech Co., Ltd Port Mouse
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 004: ID 19d2:ffdd ONDA Communication S.p.A.
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Catatan: jika tidak terjadi perubahan produk, cabut kemudian colokin lagi modemnya.

Langkah 4 :
Masukan parameter ke kernel

ubuntu@bangjar-laptop:~$ sudo modprobe usbserial vendor=0x19d2 product=0xffdd

Langkah 5 :
Ketik wvdialconf untuk membuat file /etc/wvdial.conf. (kalo belum ada wvdial, download terlebih dahulu beserta dependenciesnya)

ubuntu@bangjar-laptop:~$ sudo wvdialconf
Editing `/etc/wvdial.conf’.
Scanning your serial ports for a modem.
……………………….
………………………..
ttyUSB0: ATQ0 V1 E1 — OK
ttyUSB0: ATQ0 V1 E1 Z — OK
ttyUSB0: ATQ0 V1 E1 S0=0 — OK
ttyUSB0: ATQ0 V1 E1 S0=0 &C1 — OK
ttyUSB0: ATQ0 V1 E1 S0=0 &C1 &D2 — OK
ttyUSB0: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 — OK
ttyUSB0: Modem Identifier: ATI — Manufacturer: QUALCOMM INCORPORATED
ttyUSB0: Speed 9600: AT — OK
ttyUSB0: Max speed is 9600; that should be safe.
ttyUSB0: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 — OK
………………………….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″

Langkah 6 :
Edit file /etc/wvdial.conf

ubuntu@bangjar-laptop:~$ sudo gedit /etc/wvdial.conf
[Dialer smart]
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
Modem Type = Analog Modem
Phone = #777
ISDN = 0
Username = smart
Init1 = ATZ
Password = smart
Modem = /dev/ttyUSB0
Baud = 460800
Command Line = ATDT
Stupid Mode = 1
[Dialer mobi]
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
Modem Type = Analog Modem
Phone = #777
ISDN = 0
Username = m8
Init1 = ATZ
Password = m8
Modem = /dev/ttyUSB0
Baud = 460800
Command Line = ATDT
Stupid Mode = 1

Langkah 7 :
Jalankan wvdial smart (jika pake operator smart) wvdial mobi (jika pake mobi)

ubuntu@bangjar-laptop:~$ sudo wvdial smart
–> WvDial: Internet dialer version 1.60
–> Cannot get information for serial port.
–> Initializing modem.
–> Sending: ATZ
OK
–> Sending: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
OK
–> Modem initialized.
–> Sending: ATDT#777
–> Waiting for carrier.
ATDT#777
CONNECT 3100000
--> Carrier detected. Starting PPP immediately.
--> Starting pppd at Wed Sep 2 05:43:42 2011
--> Pid of pppd: 1944
--> Using interface ppp0
--> pppd: [18])[07] (1[07]
--> pppd: [18])[07] (1[07]
--> pppd: [18])[07] (1[07]
--> pppd: [18])[07] (1[07]
--> pppd: [18])[07] (1[07]
--> local IP address 10.184.214.31
--> pppd: [18])[07] (1[07]
--> remote IP address 10.17.95.4
--> pppd: [18])[07] (1[07]
--> primary DNS address 10.17.3.244
--> pppd: [18])[07] (1[07]
--> secondary DNS address 10.17.3.252
--> pppd: [18])[07] (1[07]

Biar otomatis tidak usah melakukan langkah2 tersebut berulang-ulang, lakukan langkah berikut:
Masuk terminal, ketik sudo gedit /etc/modules
paste baris berikut :
usbserial vendor=0x19d2 product=0xffdd
simpan
modem di colokin sebelum komputer hidup

referensi: Kaskus

0 comments:

Post a Comment