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.
- Install the necessary software to run Bluetooth on your machine. For Debian systems, you’ll need the
bluez-utilpackage at least. - Change the default PIN. This is in
/etc/bluetooth/pin. - 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.
- Determine your phone’s bluetooth address:
$ hcitool inq
- Determine the DUN port (replace with your phone’s address):
$ sdptool browse 11:22:33:44:55:66
- 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'; } - Set up
rfcomm0:$ rfcomm bind rfcomm0 $ rfcomm
The second command should show the device, channel, and status.
- 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. - Launch KPPP. Click “Configure,” then “Modems,” then “New.”
- Enter a name. Set “Modem device” to
/dev/rfcomm0. Click the “Modem” tab, then the “Modem commands” button. - 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. - Enter a connection name. Add one phone number; it should be
*99#. Select Script-based authentication. Click “Customize pppd Arguments,” and addnoauth - That’s it for the setup. Go ahead and connect, and if all went well, you’ll be online.

November 1st, 2005 at 10:49 pm
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
November 17th, 2005 at 1:04 am
No idea. Turn on PPPD’s debug flag and check your logs.