Linux tips‎ > ‎

Using a Bluetooth mobile phone as a dialup connection in Network Manager

Most solutions I was able to find on the web for connecting a Bluetooth mobile phone to Ubuntu for using it as a modem involve complex scripting and the installation of many packages. Here's how to do it easily (tested on Ubuntu Lucid) using Blueman from http://blueman-project.org/
  • Blueman is in the Ubuntu repositories, so first do sudo apt-get install blueman
  • Run the new "Bluetooth manager" in System -> Preferences
    • Once it's running, you may want to turn off the icon for the Bluetooth manager which came with Ubuntu if your computer is now displaying two  Bluetooth icons. To do this, go to System -> Preferences -> Bluetooth and uncheck "Show Bluetooth icon".
  • If you're using Lucid, you'll need to right-cilck on the Blueman Bluetooth icon and choose Plug-ins. choose the NMDUNSupport plugin and deselect the NMIntegration plugin (as that's for older versions of Network Manager pre-Lucid).
  • Pair your phone with the computer if you haven't already done so.
  • In the Blueman "Bluetooth Devices" window, right-click on your device and go to Setup. Choose to connect to "Dialup Networking (DUN)" and click Forward -- you should get a confirmation message.
  • Finally, right-click on Network Manager and go to Edit Connections -> Mobile Broadband -> Add to set up the connection.
    • Under "create a connection for this mobile broadband device" you should ensure "Installed GSM device" (i.e. your phone) is selected. If not, something didn't work earlier.
    • Click Forward then choose your country, provider, and plan (I'm not sure how relevant this is, but you still have to select something!), then click Apply.
    • Give the connection a suitable name (I call mine "Nokia 5800") and optionally check "Connect automatically" and "Available to all users" as required.
That's it! All set up. To connect in future:
  • Open Blueman's "Bluetooth Devices" window again.
  • Right-click on your phone, go through Setup -> Dialup Networking (DUN).
  • Choose the mobile connection ("Nokia 5800" or whatever) in Network Manager and it should connect.
When you're finished:
  • Right-click on the phone in Blueman again and choose "Disconnect" when you're done.