Tuesday, January 12, 2010

AziLink - Android Phone USB Tethering

AziLink is a software which allows Android phones USB tethering.

Its installation is described at:

http://code.google.com/p/azilink/

It took me a while to get it working on my Ubuntu 9.10 64bit.

0. Download required files listed in the AziLink home page.

1. Install OpenVPN.

$ sudo apt-get install openvpn

2. Ensure OpenVPN version is 2.1.

$ openvpn –version

OpenVPN 2.1_rc19 x86_64-pc-linux-gnu [SSL] [LZO2] [EPOLL] [PKCS11]

built on Oct 13 2009

Developed by James Yonan

Copyright (C) 2002-2009 OpenVPN Technologies, Inc.

3. Enable USB debugging on the phone, by checking the Home Screen ->

Settings -> Applications-> Development -> USB debugging.

4. Download alilink-2.0.2.apk from http://azilink.googlecode.com/files/azilink-2.0.2.apk

5. Run

$ ~/android-sdk-linux_x86-1.5_r3/tools/adb forward tcp:41927 tcp:41927

error: device not found

6. For this error,

http://groups.google.co.jp/group/android-developers/browse_thread/thread/8051fd516114c9e5?pli=1

had a solution.

7. Edit /etc/udev/rules.d/51-android.rules .

$ cat /etc/udev/rules.d/51-android.rules

SUBSYSTEM==”usb”, ATTRS{idVendor}==”0bb4″, ATTRS{idProduct}==”0c02″,

MODE=”0666″, OWNER=”ubuntu”

8. Vendor ID and Product ID can be found with:

$ lsusb

Bus 001 Device 003: ID 0bb4:0c02 High Tech Computer Corp.

9. Reboot both the host PC and the phone, and set Azilink “Service Active”.

10. Start Port forwarding.

$ ~/android-sdk-linux_x86-1.5_r3/tools/adb forward tcp:41927 tcp:41927

* daemon not running. starting it now *

* daemon started successfully *

11.

$ sudo openvpn –script-security 2 –config azilink.ovpn

12. DNS Setup

What I did was just edit /etc/resolv.conf, which I believe there are

better ways to do, just make this nameserver effective for the device,

tun0. This is what just worked for me.

$ cat /etc/resolv.conf

# Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)

# DO NOT EDIT THIS FILE BY HAND — YOUR CHANGES WILL BE OVERWRITTEN

nameserver 192.168.56.1

13. Remark

I noticed an issue in using a home wifi to connect to the Internet.

I believe it has something to do with the home network’s private

network address of 192.168.1.*.

It typically took me 10-15 seconds to get the following command

returned. So the internet connection is very slow.

$ dig @192.168.56.1 www.yahoo.com

[Via http://marionote.wordpress.com]

No comments:

Post a Comment