07 May, 2010

Konek internet via bluetooth di linux

ini bisa digunakan di ubuntu : jaunty, keramic, lucid.

- hidupkan bluetooth HP & bluetooth dongle di PC.
- buka teminal. Applications > Accessories > Terminal.
- pastikan gnome bluetooth sudah terinstall. Code : sudo apt-get gnome-bluetooth
[ biasanya sudah terinstall ].

rahmat@akiratoya17:~$ sudo apt-get install gnome-bluetooth
[sudo] password for rahmat:
Reading package lists... Done
Building dependency tree
Reading state information... Done
gnome-bluetooth is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 34 not upgraded.
rahmat@akiratoya17:~$

- Scan MAC Address dan channel Dial-UP Networking (DUN). Code : sdptool search DUN

rahmat@akiratoya17:~$ sdptool search DUN
Inquiring ...
Searching for DUN on 00:21:9E:42:66:3B ...
Service Name: Dial-up Networking
Service RecHandle: 0x10001
Service Class ID List:
"Dialup Networking" (0x1103)
"Generic Networking" (0x1201)
Protocol Descriptor List:
"L2CAP" (0x0100)
"RFCOMM" (0x0003)
Channel: 1
Profile Descriptor List:
"Dialup Networking" (0x1103)
Version: 0x0100

rahmat@akiratoya17:~$

- MAC address : 00:21:9E:42:66:3B
- Channel : 1

- ubah sesuai dengan MAC & channel yg kita dapat diatas.
Code : :~$ sudo gedit /etc/bluetooth/rfcomm.conf
Code : :~$ sudo vim /etc/bluetooth/rfcomm.conf
Code : :~$ sudo nano /etc/bluetooth/rfcomm.conf
*pilih salah satu teks editor kesayangan anda

rfcomm0 {

bind yes;

device 00:21:9E:42:66:3B;

channel 1;

comment “HP Pinjaman”;

}

- Aktifkan device rfcomm dengan nilai bind 0, MAC Address, dan Channel.
Code : :~$ sudo rfcomm bind 0 00:19:79:DF:10:28 2

- Edit wvdial.conf Sesuai seting modem, phone, username dan

password anda. Untuk indosat im3 settingnya adalah sbb:

rahmat@akiratoya17:~$ sudo gedit /etc/wvdial.conf



[Dialer Defaults]

Init1 = ATZ

init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0

INIT3 = at+cgdcont=1, "ip", "indosatgprs"

Modem Type = Analog Modem

ISDN = 0

Phone = *99***1#

Modem = /dev/rfcomm0

Username = indosat

Password = indosat

Baud = 460800

- sekarang konek ...
rahmat@akiratoya17:~$ sudo wvdial
*proses pairing masukkan pin yang sama di kedua perangakat.

rahmat@akiratoya17:~$ sudo rfcomm bind 0 00:21:9E:42:66:3B 1
[sudo] password for rahmat:
rahmat@akiratoya17:~$ sudo wvdial
--> WvDial: Internet dialer version 1.60
--> Cannot get information for serial port.
--> Initializing modem.
--> Sending: ATX3
ATX3
OK
--> Sending: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
OK
--> Sending: at+cgdcont=1, "ip", "indosatm2"
at+cgdcont=1, "ip", "indosatm2"
OK
--> Modem initialized.
--> Sending: ATM0L0DT*99***10#
--> Waiting for carrier.
ATM0L0DT*99***10#
CONNECT
~[7f]}#@!}!}!} }9}#}%B#}%}(}"}'}"}"}&} } } } }%}&}> eY}:+~
--> Carrier detected. Starting PPP immediately.
--> Starting pppd at Fri May 7 05:44:03 2010
--> Pid of pppd: 1426
--> Using interface ppp0
--> pppd: �[02]3[08]�[02]3[08]
--> pppd: �[02]3[08]�[02]3[08]
--> pppd: �[02]3[08]�[02]3[08]
--> pppd: �[02]3[08]�[02]3[08]
--> pppd: �[02]3[08]�[02]3[08]
--> pppd: �[02]3[08]�[02]3[08]
--> local IP address 114.58.56.128
--> pppd: �[02]3[08]�[02]3[08]
--> remote IP address 10.64.64.64
--> pppd: �[02]3[08]�[02]3[08]
--> primary DNS address 202.155.0.10
--> pppd: �[02]3[08]�[02]3[08]
--> secondary DNS address 202.155.0.15
--> pppd: �[02]3[08]�[02]3[08]

No comments:

Post a Comment