12 Januari 2010

Koneksi Internet di Linux Ubuntu 9.04 dengan CDMA Modem USB [MOBI]

Maaf ya sebelumnya tulisan ini semata-mata hanya untuk berbagai "yups seperti motto linux itu sendiri" untuk pemula linux yang bingung kemana harus mencari bantuan seperti saya wkwkwkwkwk yang bingung menghadapi masalah dibawah ini......

Haluw senangnya hati ku akhrinya punya modem sendiri meskipun dapat ngutang dulu he...he...he..

tapi rasa senang itu berakhir dengan sedih saat gw tancapin CDMA USB modem di linux ubuntu 9.04 kesayangan...."i love u muuahhh"....tidak berfungsi wedew alias kalo bahasa di windows ga ada drivernya!!!
tidak berfungsi bukan berarti tidak bisa install di linux


akhirnya gw ngungsi sementara ke windows yang sudah menerima baik kehadiran Mobi modem usb....dengan bantuan google gw mulai searching mencari paket-paket instalasi yang dibutuhkan

yups akhrinya ketemu juga setelah tanya sana-sini http://ubuntuforums.org/showthread.php?t=515922

Berikut beberapa paket-paket yang harus diinstall

* libuniconf4.4_4.4.1-0.2ubuntu2_i386.deb

* libwvstreams4.4-base_4.4.1-0.2ubuntu2_i386.deb
* libwvstreams4.4-extras_4.4.1-0.2ubuntu2_i386.deb
* libxplc0.3.13_0.3.13-1build1_i386.deb
* wvdial_1.60.1+nmu2_i386.deb

Mari kita install........

$ sudo apt-get install wvdial

Tancepin CDMA modem usb lalu buka terminal ketik lsusb untuk melihat Hardware infonya disitu modem usb gw dikenal sebagai "Qualcomm, Inc. CDMA Wireless Modem/Phone"

kendrox@cah-angon:~$ lsusb
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 002: ID 05c6:3197 Qualcomm, Inc. CDMA Wireless Modem/Phone
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub

Jalankan wvdialconf sebagai root untuk mencek apakah modem terdeteksi dengan baik

kendrox@cah-angon:~$ sudo 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.
ttyS1<*1>: ATQ0 V1 E1 -- failed with 2400 baud, next try: 9600 baud
ttyS1<*1>: ATQ0 V1 E1 -- failed with 9600 baud, next try: 115200 baud
ttyS1<*1>: ATQ0 V1 E1 -- and failed too at 115200, giving up.
Modem Port Scan<*1>: S2 S3
WvModem<*1>: Cannot get information for serial port.
ttyUSB0<*1>: ATQ0 V1 E1 -- OK
ttyUSB0<*1>: ATQ0 V1 E1 Z -- OK
ttyUSB0<*1>: ATQ0 V1 E1 S0=0 -- OK
ttyUSB0<*1>: ATQ0 V1 E1 S0=0 &C1 -- OK
ttyUSB0<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 -- OK
ttyUSB0<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 -- OK
ttyUSB0<*1>: Modem Identifier: ATI -- Manufacturer: TELEEPOCH INCORPORATED
ttyUSB0<*1>: Speed 9600: AT -- OK
ttyUSB0<*1>: Max speed is 9600; that should be safe.
ttyUSB0<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 -- OK
WvModem<*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.

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"

Wew CDMA modem usb terdeteksi dengan baik di ubuntu 9.04
yang pertama kita lakukan setelah CDMA modem usb terdeteksi adalah mengkonfigurasi seting wvdial.conf langsung ketik "sudo nano /etc/wvdial.conf...." yang anda edit adalah username dan password mobi kamu

kendrox@cah-angon:~$ sudo nano /etc/wvdial.conf

[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 = 0888216xxxx@unlimited
Carrier Check = no
Password = password mobi
Baud = 9600

setelah selesai megkonfigurasi wvdial.conf sekarang kita cek file

/etc/ppp/chap-secrets
/etc/ppp/pap-secrets

pastikan kedua file tersebut terdapat baris berikut :

0888216xxxx\@unlimited * password mobi


berikut contoh file chap-secrets
=================================
# Secrets for authentication using CHAP
# client server secret IP addresses

0888216xxxx\@unlimited * password mobi



berikut contoh file pap-secrets
=================================
#
# /etc/ppp/pap-secrets
#
# This is a pap-secrets file to be used with the AUTO_PPP function of
# mgetty. mgetty-0.99 is preconfigured to startup pppd with the login option
# which will cause pppd to consult /etc/passwd (and /etc/shadow in turn)
# after a user has passed this file. Don't be disturbed therefore by the fact
# that this file defines logins with any password for users. /etc/passwd
# (again, /etc/shadow, too) will catch passwd mismatches.
#
# This file should block ALL users that should not be able to do AUTO_PPP.
# AUTO_PPP bypasses the usual login program so it's necessary to list all
# system userids with regular passwords here.
#
# ATTENTION: The definitions here can allow users to login without a
# password if you don't use the login option of pppd! The mgetty Debian
# package already provides this option; make sure you don't change that.

# INBOUND connections
# Every regular user can use PPP and has to use passwords from /etc/passwd
* hostname "" *

# UserIDs that cannot use PPP at all. Check your /etc/passwd and add any
# other accounts that should not be able to use pppd!
guest hostname "*" -
master hostname "*" -
root hostname "*" -
support hostname "*" -
stats hostname "*" -

# OUTBOUND connections

# Here you should add your userid password to connect to your providers via
# PAP. The * means that the password is to be used for ANY host you connect
# to. Thus you do not have to worry about the foreign machine name. Just
# replace password with your password.
# If you have different providers with different passwords then you better
# remove the following line.

# * password



0888216xxxx\@unlimited * password mobi




Nah sekarang kita uji kemampuan CDMA Modem USB MOBI
untuk melakukan koneksi ketik perintah "sudo wvdial"
kalo untuk disconnect tinggal tekan ctr - c di terminal yg menjalankan wvdial
Selamat mencoba....

kendrox@cah-angon:~$ sudo wvdial
--> WvDial: Internet dialer version 1.60
--> Cannot get information for serial port.
--> Initializing modem.
--> Sending: ATZ
ATZ
OK
--> Sending: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
OK
--> Modem initialized.
--> Sending: ATDT#777
--> Waiting for carrier.
ATDT#777
CONNECT
--> Carrier detected. Waiting for prompt.
~[7f]}#@!}!}!} }5}"}&} }*} } }#}%B#}%}%}&.-o54}<~
--> PPP negotiation detected.
--> Starting pppd at Thu Dec 24 16:25:35 2009
--> Pid of pppd: 3716
--> Using interface ppp0
--> pppd: �W�[08]0`�[08]
--> pppd: �W�[08]0`�[08]
--> pppd: �W�[08]0`�[08]
--> pppd: �W�[08]0`�[08]
--> pppd: �W�[08]0`�[08]
--> local IP address xxx.xx.xx.xxx
--> pppd: �W�[08]0`�[08]
--> remote IP address xx.xx.x.xx
--> pppd: �W�[08]0`�[08]
--> primary DNS address xxx.xxx.xxx.x
--> pppd: �W�[08]0`�[08]
--> secondary DNS address xx.xx.xx.x
--> pppd: �W�[08]0`�[08]




Di uji coba di Linux Ubuntu 9.04
mudah-mudah artikel kecil ini bermanfaat
mohon dimaafin kalo ada kesalahan ya bos maklum newbie....



Author: Mahendra B M. Alamsyah

2 komentar:

cokie | 25 Juni 2010 pukul 07.54  

sip! sama-sama newbie tukar link ah. http://kpli-trenggalek.blogspot.com

online calculator | 2 Agustus 2011 pukul 08.08  

Thanks a lot for sharing this nice post!You’ve done really excellent job!

Posting Komentar

Komentar Anda saya tunggu loh

Tu comentario será moderado la primera vez que lo hagas al igual que si incluyes enlaces. A partir de ahi no ser necesario si usas los mismos datos y mantienes la cordura. No se publicarán insultos, difamaciones o faltas de respeto hacia los lectores y comentaristas de este blog.