Ubuntu tethering via Bluetooth PAN

I have been attmepting to tether my iPhone to my computer using bluetooth in Karmic.

Supposedy blueman can do this very easily (www.blueman-project.org). To install blueman just run:
$ sudo aptitude install blueman.

My experience with blueman has been very hit and miss however, the connection appears to be made via bluetooth but I can rarely seem to get NetworkManager to make a network connection. Sometimes I have success pairing the devices again.

Using the older pand binary I have had a lot more success. If you are not scared of the terminal, it isn’t difficult and appears far more reliable

Install the older bluez tools:

$ sudo aptitude install bluez-compat

$ hcitool scan

Find the address of your phone from the list

$ sudo pand --connect 00:25:00:96:13:BB -n

This command will pair you phone to your computer and create a pan device. Of course replacing the MAC address with the address of your phone. This command will re-pair you devices each time it is run. If, like me you have an iPhone, you need to have you iPhone in the Bluetooth System Preference app to accept the pairing.

$ sudo dhclient bnep0

You are now tethered.

To kill the tether:

$ sudo pand -K

8 thoughts on “Ubuntu tethering via Bluetooth PAN

  1. robg

    Wow I have not come across jolicloud before, looks very interesting …. would like a few more technical docs on the website though.

    Reply
  2. Claire

    Thank you so much ! I spent a whole day trying to get tethering through either blueman or uit.sh to with jolicloud without ever going, but your tutorial works great !

    Reply
  3. Alex

    My iPhone recognizes the tethering after the commandos, but my netbook doesn’t.. I can’t find the internet connection anywhere… Any tips?

    Reply
    1. robg Post author

      Alex, If you right-click on the Blueman icon you can open the plugins dialog. I am guessing NMIntegration is on and NMPANSupport is off. PAN Support puts all of the control in NetworkManager. So enable it and disable NMIntegration.

      Otherwiser after tethering the phone to blueman open a terminal and type:
      “sudo dhclient bnep0″ and this will have the same affect.

      I hope this helps.

      Reply
  4. Chris

    Thank you very much! With your tutorial I was able to establish bluetooth-tethering on Linux Mint 15 Mate.

    (On Linux Mint 15 Cinnamon, I had no problems with bluetooth-tethering, but on Mate the option for “Access the internet using your mobile phone” is missing in the bluetooth-applet.)

    Reply
  5. Daniel

    Hey,
    Thank you for this simple tutorial that supposedly has helped many here.
    I have a similar problem to solve, but I want to use my computer’s internet connection and share it with my phone over bluetooth, do you know how to achieve that?
    Thanks!
    Daniel

    Reply
    1. Rob Garth Post author

      To be honest, I don’t currently have a current linux desktop to muck around on. This post is pretty old now, and I imagine the bluetooth tools in gnome-shell and ubuntu unity have changed drastically. Hope you find an answer somewhere though.

      Reply

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>