KPPP – GPRS over Bluetooth with a Nokia

Since I’m heading out for Las Vegas in just under two hours, I decided I’d get my laptop set up to get online through my cellphone with Bluetooth. Here’s a quick how-to.

  1. Install the necessary software to run Bluetooth on your machine. For Debian systems, you’ll need the bluez-util package at least.
  2. Change the default PIN. This is in /etc/bluetooth/pin.
  3. Make sure your phone is set to be visible. Pair the phone with your PC. I start this from the phone; you will be asked for the PIN you changed in the previous step.
  4. Determine your phone’s bluetooth address:
    $ hcitool inq
  5. Determine the DUN port (replace with your phone’s address):
    $ sdptool browse 11:22:33:44:55:66
  6. Edit /etc/bluetooth/rfcomm.conf. Add the following entry (replace device & channel with the correct values for your phone):
    rfcomm0
    {
        device 11:22:33:44:55:66;
        channel 1;
        comment 'BT DUN';
    }
    
  7. Set up rfcomm0:
    $ rfcomm bind rfcomm0
    $ rfcomm
    

    The second command should show the device, channel, and status.

  8. Edit /etc/ppp/options. You need to add:
    privgroup some_group_you_are_a_member_of
    

    You may want to set it to dialout, though there are security implications if you’re on a multi-user machine.

  9. Launch KPPP. Click “Configure,” then “Modems,” then “New.”
  10. Enter a name. Set “Modem device” to /dev/rfcomm0. Click the “Modem” tab, then the “Modem commands” button.
  11. Change the “Dial string” to ATD. Click OK until you’re back at the main config screen. Select the “Accounts” tab, and click the “New” button. Choose Manual Setup.
  12. Enter a connection name. Add one phone number; it should be *99#. Select Script-based authentication. Click “Customize pppd Arguments,” and add noauth
  13. That’s it for the setup. Go ahead and connect, and if all went well, you’ll be online.
2005/08/18
Previously On Atomized:

Discussion

Hi, all went well setting up the phone as a modem, but when I try to connect I got an error like “PPP negotiation failed” or “pppd died – exited status 10″, did you have the same problems? I’m using a 2.6.14 kernel with bluetooth support, and everything works fine….

thanks

xar

xar
2005/11/01

No idea. Turn on PPPD’s debug flag and check your logs.

Ian Eure
2005/11/17

$ hcitool scan

$ sdptool browse 11:22:33:44:55:66

$ rfcomm bind rfcomm0
eg: rfcomm bind rfcomm0 1:22:33:44:55:66 1

then

kppp settings according to network provider

vikrant
2009/09/21

[...] 沒有無線網路的時候,可以依靠6120的藍芽數據機作3G上網,有些說明說要用wvdial(http://mosquito.tk/linuxfreebsd/309.html),問題是wvdial是shell端程式,套用gnome-ppp這個wrapper就會很漂亮,但既然都用了kde,KPPP也可以考慮一下XD KPPP對應給藍芽數據機(bluetooth modem,也就是rfcomm)的設定不會比較複雜,可以參考這篇背景很花的文章(http://atomized.org/2005/08/kppp-gprs-over-bluetooth-with-a-nokia/),如果嫌複雜的話,請遵照以下步驟 [...]

我的Archlinux安裝紀錄:Archlinux 2009.08+ThinkPad X40 « 南史氏言
2009/11/28

Participate