Showing posts with label tether. Show all posts
Showing posts with label tether. Show all posts

Sunday, August 16, 2009

Bluetooth tethering your iPhone to Ubuntu (works on multiple machines too)

1. Check out your iPhone bluetooth address

hcitool scan

2. Edit "/etc/default/bluetooth"

PAND_ENABLED=1
PAND_OPTIONS="--listen --role=PANU --devup /etc/bluetooth/pan/dev-up --devdown /etc/bluetooth/pan/dev-down"

3. Create directory "/etc/bluetooth/pan"

4. Create file "/etc/bluetooth/pan/dev-up"

#!/bin/bash
ifup bnep0

5. Create file "/etc/bluetooth/pan/dev-down"

#!/bin/bash
ifdown bnep0

6. Install pand & create PAN connection

sudo apt-get install bluez-compat
sudo pand -c IPHONE BLUETOOTH ADDRESS

7. Assign IP address to iPhone

sudo dhclient3 bnep0

8. To disconnect tethering

sudo pand -K

You can use the same method to tethering to multiple machines at the same time.