Tuesday, August 31, 2010

Browse Internet through your Mobile Bluetooth in Linux ( 10 Easy steps) :

To Browse the Internet in Linux through your Mobile Bluetooth ( With Net activated in your Mobile )  follow the steps provided as under :
1 ) Enter into your terminal , Switch to the super user mode by using sudo command .

2 ) Connect your Mobile to the system by adding your Mobile device in Network Settings.

3 ) Find the MAC address of your mobile by running the following command :
    hcitool scan
   Note it down. This may be something like 00:25:FD:F3:8F:99. It will differ from system to system.

4 ) Now we have to know the channel number for Dial-up Internet service in your Mobile . So run the following command :
   sdptool search DUN | grep Channel
  You might get the  channel number as 1 or may be 2 in your case.

5 ) Now to configure your device run the following :
  # gedit etc/bluetooth/rfcomm.conf

6 ) Add the following contents inside the file
   rfcomm0 {
   bind yes;
   device your-phone-mac-address;
   channel your-phone-rfcomm-channel;
   comment “Bluetooth PPP Connection”;
According to Previously Retrieved values it looks something like:
   rfcomm0 {
   bind yes;
  device 00:25:FD:F3:8F:99 ;
  channel 1;
  comment “Bluetooth PPP Connection”;
  Save the file and exit.
7 ) Now to create the Dial-up connection .Run
  # gedit /etc/wvdial.conf
8 ) Put the following contents into the file , Save it and exit
  [Dialer bluetooth]
  Modem = /dev/rfcomm0
  Baud = 460800
  Dial Command = ATDT
  Init1 = ATZ
  Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
  Init3 = AT+CGDCONT=1,”IP”,”APN”
  Phone = *99#
  Username = xyz
  Password = xyz

Replace APN with the access point Number of your ISP.

9 )  Now Dial using the following command:
  # wvdial bluetooth

10 )  If Everything works fine, It should run and connect to internet .

Sometimes you might get “Command not found” when performing the 9th step. It implies that the package wvdial is not installed , Install it using Yum or directly and then run .

Any suggestions, comments,criticisms or questions do feel free to mail me at

No comments: