Ubuntu iPhone 3.0 Bluetooth Tethering with uit.sh

If you would like to use your iPhone 3.0 with your bluetooth capable Ubuntu 9.04 PC then uit.sh (Ubuntu Iphone Thethering) is for you. This script installs all required conf, allows you to enable and disable your iphone tethering and even uninstall the conf if you no longer need it. I do expect NetworkManager to eventually support this out of the box.

Thanks to http://xn--9bi.net/2009/06/17/tether...o-ubuntu-9-04/ blog post which assisted me in knowning what configuration was needed.

Usage:
-- Ubuntu iPhone Tethering (uit) Version 0.1 - Cooper Lees <me@cooperlees.com> --
Usage: ./uit.sh options
- This script will install, uninstall, enable and disable iPhone tethering with iPhone 3.0 Software.
- It has been tested on a upto date (patched) box as of 20090623.
- !! Be careful, this script will ask for your password to get root privledges to your system!

OPTIONS:
-h Show this message
-i Install required configuration
-u Uninstall required configuration
-c Connect Tethering
-d Disconnect Tethering
-m [] Set iPhone's MAC Address (to /home/USERNAME/.uitrc)
-v Verbose

Install Guide:
Avaliable from: http://us.cooperlees.com/download.php?F=uit.sh.gz

- Inital installation requires an active Internet Connection to get required dependancies through apt-get. Current dependancies = 'bluez-compat'
- Only the install requires you to sudo the script, other areas apropriately sudo where required.

Install Process:

  1. Open terminal
  2. wget http://us.cooperlees.com/download.php?F=uit.sh.gz
  3. gunzip uit.sh.gz
  4. chmod 755 uit.sh
  5. [OPTIONAL] Move the script into your sbin - 'sudo mv uit.sh /usr/sbin' (This will allow it to be in your PATH)
  6. Run 'sudo uit.sh -i' (You will need to have your iphone in discoverable mode with Bluetooth on)
  7. You will be notified if it all sucessfully installs.

Connect Process:
- Ensure Bluetooth is on and paired with your system (use the GNOME Bluetooth tool to pair). Also make sure Internet Tethering is on.

  1. uit.sh -c

- Once connected you will see the iPhone come up with a blue bar stating 'Internet Tethering' is activated.

Disconnect Process:
One command will disconnect from the iphone tethering - You should see the blue notification text dissapear.

  1. uit.sh -d

Uninstall Process:

  1. uit.sh -u

- This will remove conf from files and also make backup of files modified.

Hope you enjoy it as much as I am. Finding the bluetooth a little slow. But still very handy and good. Thanks Apple.

Related Posts

Book REVIEW: Linux Service Management Made Easy with systemd: Advanced techniques to effectively manage, control, and monitor Linux systems and services 1st Edition

Amazon Link Disclaimer: I get no royalites or anything here – Just had coworkers ask me about it So since I’m no systems guru and am now…

CLI Templates for Python + Rust

Do you also write a lot of services that need a few CLI option (e.g. –config) and or little CLI tools from time to time? Want a…

Stop IPv4 Point-To-Point Addressing your Networks

IPv4 addressing on links is no longer required to route IPv4. What you say?? Yes, you can stop IPv4 addressing your point to point links with Legacy…

NAT64: Using `jool` on Ubuntu 20.04

I found that jool has very good tutorials, but all the commands to get going are hidden in these large tutorials. Here are the steps I took…

Raspberry Pi Powered Fireplace

Mr Aijay Adams and I am back making my Fireplace Internet / Smart device controllable. Now, via a very sexy Web UI, when I’m heading back to…

nftables

Are you using the latest Linux kernel firewall?. Here are some notes I’ve saved that I use and forget all the time. I plan to add to…

This Post Has 4 Comments

  1. To stop Network Manager interfering with the connection I added “sudo /etc/init.d/NetworkManager stop” to your connect function and “sudo /etc/init.d/NetworkManager start” to the disconnect function to bring it back up when you’re finished.

    Other then that a great little script.

    Thanks.

  2. Please update the script, is the best soluction right now. But, show me the next message:

    * Stopping network connection manager NetworkManager [ OK ]
    pand[4561]: Bluetooth PAN daemon version 4.39
    pand[4561]: Connecting to 00:24:36:0B:A5:17
    pand[4561]: Connect to 00:24:36:0B:A5:17 failed. Connection refused(111)
    Internet Systems Consortium DHCP Client V3.1.1
    Copyright 2004-2008 Internet Systems Consortium.
    All rights reserved.
    For info, please visit http://www.isc.org/sw/dhcp/

    SIOCSIFADDR: No such device
    bnep0: ERROR while getting interface flags: No such device
    bnep0: ERROR while getting interface flags: No such device
    Bind socket to interface: No such device
    Failed to bring up bnep0.

    Thanks for all

    1. Hi Mate,

      Please ensure your phone is connected via bluetooth before trying to connect. If your phone is connected please verify your MAC of your bluetooth device on the iPhone.

      Ta, good luck.

Leave a Reply

Your email address will not be published.