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:
- Open terminal
- wget http://us.cooperlees.com/download.php?F=uit.sh.gz
- gunzip uit.sh.gz
- chmod 755 uit.sh
- [OPTIONAL] Move the script into your sbin - 'sudo mv uit.sh /usr/sbin' (This will allow it to be in your PATH)
- Run 'sudo uit.sh -i' (You will need to have your iphone in discoverable mode with Bluetooth on)
- 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.
- 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.
- uit.sh -d
Uninstall Process:
- 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.
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.
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
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.
The download link for uit.sh.gz is not available right now. Can you please mail me a copy to angus.liu.ab@gmail.com?