Tethering your HTC Magic Android Phone in Ubuntu 9.04 (Jaunty Jackalope)

Article by James Titcumb

Sometimes I have the need to get on the internet using my laptop instead of my lovely HTC Magic. To do that, I’d have to get mobile internet, which is yet another expense I don’t really want. Before I go ahead, I’d like to strongly discourage doing this on a regular basis. Vodafone’s “unlimited” internet is 500MB fair use policy, which when using a laptop can be used up really quickly – so proceed with caution! In addition, I do not know your contract to confirm that this will not void your warranty or violate your terms of service. You carry out these steps at your own risk and are provided here for informational purposes only. Basically, if you mess things up and Vodafone (or whoever your carrier is) comes knocking on your door, I’m not being held responsible.

This process does involve a bit of fiddling and knowledge of how things work, and the instructions on the app’s page are pretty straightforward anyway.

Tethering has been made really easy by using an app called Azilink. All it is is an OpenVPN server on your phone, which allows your laptop to connect to it via a USB cable.

Here’s the steps – pretty much the same as on the instruction page linked above – but specifically for Ubuntu:

With any luck you should now have internet. Next time you want to connect, I think you’ll have to do something like (and I’ve not checked this yet!):

I did this on Ubuntu 9.04 (Jaunty Jackalope) and this worked for me. Hopefully this should work pretty straightforward without problems.

Essentially what this app does is run a VPN server on your phone. ADB (Android Debugging Bridge) is a development tool that allows forwarding of TCP traffic from your laptop to the phone (and vica-versa) – working in a similar way to an SSH tunnel, but this is all unencrypted. Then all you have to do is open an unecrypted VPN connection to the forwarded port (i.e. 127.0.0.1:41927), and route the traffic through that. The nameserver isn’t auto set of course so that has to be done manually.

I have no idea why tethering is so difficult on the HTC Magic – it should be made much easier, especially as it’s such an open phone. However, thanks to it’s open-ness, apps like Azilink exist and make tethering possible!