Comments

Ubuntu iPhone 3.0 Bluetooth Tethering with uit.sh

Posted by cooper on Jun 24, 2009 in g33k, linux, tech

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.

Tags: , , , , , , ,

 
Comments

Solaris and ‘Growing’ / ‘Expanding’ your Zpool – With little down time …

Posted by cooper on Jun 3, 2009 in g33k, solaris

<zfs nerd post>

At home (on this server) I have a Zpool consisting of 3 disks in a RAIDZ1 group. I needed more disc space, so 1 by 1 I changed my 3 x 500G drives to 1tb drives. This would of been pretty much no down time (except for an export and import of the pool) if my hardware had hot swapable drive – The cheap Dell SC430 doesen’t do that unfortunately.

It took around 8 hours each for the first two discs – But the last one took over 20 hours! No idea why – My system was idle with just the resilvering taking place. If you have had experiences with this leave me a comment with how long this process took you.

SO my pool ‘dump’ went from

dump                   921G    37K   112G     1%    /dump

to

dump                   1.8T    37K   1.1T     1%    /dump

If you want to ever do this process, ZFS (once all the discs are the same size) just sees that and grows. All you need to do is replace your discs 1 by and and let them rebuild. No mucking around moving data. The best part is your Data is still avaliable, during the whole process, all be it slow to access but if you need a something you can get it. 🙂

</zfs nerd post>

Tags: , , , , ,

Copyright © 2017 I-R-Coops Blog All rights reserved. Theme by Laptop Geek.