Networking/Internet/Bluetooth Dialup
From GLUG-Wiki
Please note: This is Kubuntu-centric. If you are not running KDE, this will still work, you'll just need to replace the KDE specific commands with your desktop environment's commands.
Contents |
Setting Up Your Device
First, let's set up your modem device, so that you can dial up to the internet.
Get Your Phone's ID
In order to set up your modem device, you need to find your phone's bluetooth ID.
user@linux:~ $ sdptool scan
This command will scan for all the bluetooth devices in range. You should be able to identify yours by it's name, and then you need to note the ID, which will look something like 00:0A:F9:E0:44:D8.
Find The Dial-Up Channel
In order to create the modem device, you'll need to find out what channel to connect to. Various devices in your phone are available through these channels. To do this, run the following command:
user@linux:~ $ sdptool browse 00:0A:F9:E0:44:D8 <- Insert your phone's ID here
The following output is an example of what yours should look like.
Browsing 00:0A:F9:E0:44:D8 ...
Service Name: Voice gateway
Service Description: Voice gateway
Service Provider: Sony Ericsson
Service RecHandle: 0x10000
Service Class ID List:
"Headset Audio Gateway" (0x1112)
"Generic Audio" (0x1203)
Protocol Descriptor List:
"L2CAP" (0x0100)
"RFCOMM" (0x0003)
Channel: 8
Language Base Attr List:
code_ISO639: 0x656e
encoding: 0x6a
base_offset: 0x100
Profile Descriptor List:
"Headset" (0x1108)
Version: 0x0100
Service Name: OBEX Object Push
Service RecHandle: 0x10001
Service Class ID List:
"OBEX Object Push" (0x1105)
Protocol Descriptor List:
"L2CAP" (0x0100)
"RFCOMM" (0x0003)
Channel: 1
"OBEX" (0x0008)
Profile Descriptor List:
"OBEX Object Push" (0x1105)
Version: 0x0100
Service Name: OBEX File Transfer
Service RecHandle: 0x10002
Service Class ID List:
"OBEX File Transfer" (0x1106)
Protocol Descriptor List:
"L2CAP" (0x0100)
"RFCOMM" (0x0003)
Channel: 2
"OBEX" (0x0008)
Service Name: Bluetooth Serial Port
Service Description: Bluetooth Serial Port
Service Provider: Symbian Ltd.
Service RecHandle: 0x10003
Service Class ID List:
"Serial Port" (0x1101)
Protocol Descriptor List:
"L2CAP" (0x0100)
"RFCOMM" (0x0003)
Channel: 3
Language Base Attr List:
code_ISO639: 0x656e
encoding: 0x6a
base_offset: 0x100
Service Name: Dial-up Networking
Service Description: Dial-up Networking
Service Provider: Sony Ericsson
Service RecHandle: 0x10004
Service Class ID List:
"Dialup Networking" (0x1103)
Protocol Descriptor List:
"L2CAP" (0x0100)
"RFCOMM" (0x0003)
Channel: 4
Language Base Attr List:
code_ISO639: 0x656e
encoding: 0x6a
base_offset: 0x100
Profile Descriptor List:
"Dialup Networking" (0x1103)
Version: 0x0100
This last service, called "Dial-up Networking", is the one we want. It's on channel 4, so remember that.
Creating The Device
Now that we have the channel, we need to create a device for linux to connect with.
user@linux:~ $ kdesu kate /etc/bluetooth/rfcomm.conf
Copy and paste the following into the file you just created/opened:
rfcomm0 {
bind yes;
device 00:0A:F9:E0:44:D8; <- Insert your phone's ID here
channel 4; <- Insert your phone's dial-up channel here
comment "Bluetooth Connection";
}
Once you've done that, you'll need to restart the bluetooth services.
user@linux:~ $ sudo /etc/init.d/bluez-utils restart
Setting Up KPPP
Now comes the fun part! It's quite simple to set up your connection with KPPP, a graphical pppd client.
First open KPPP and click on the Configure button at the bottom of the window.
KPPP will pop up a dialog and ask you for a new device. Give your device a name, and set it to /dev/rfcomm0. If it doesn't pop up this dialog, simply click on the Modems tab in the dialog, and then click on the New button.
Once you've done that, you'll be returned to a dialog with a list of modems. Select the modem you just created and click on the Edit button. A screen like the following one will pop up. Set the values on your form to be the ones listed below. Where it says "Initialisation string 2:" set "internet" to be your APN. If you're on Vodacom, your APN is "internet".
Once you've done that, click OK and then click the Accounts tab on the following dialog. Click New to create a new account. Give it a good name, and set the dial number to your service providers number. Vodacom is "*99***1#".
Now you're finishd. Click OK, close the following dialog, and then back on the main screen, you should be able to select your newly created modem and account, and click Connect. If KPPP moans about a blank username or password, just enter a dummy username and password.




