Register a domain and help support LQ
Go Back > Linux Answers > Networking
User Name


By codeblocker1247 at 2010-09-24 23:16
First, you will need this apk on your droid, azilink:

There are a few things that you will need installed on your slack system before we begin, this is whats required:
openvpn 2.1 and the Android SDK for linux (no build necessary, just unpack it and follow instructions)

1. download the android SDK for LINUX from:

2. Extract the SDK, then navigate to the folder where the adb application is:
tar xvf android-sdk_r07-linux_x86.tgz
cd android-sdk-linux_x86/tools
3. copy from tools the adb application to /usr/bin
cp tools/adb /usr/bin
4. we need a rules file. create a new text file "/etc/udev/rules.d/91-android.rules" and use vi option "i" or vim option "i" (input) or whatever text editor you like if you are allergic to the command line =/.
key the following (replacing "USERNAME" with the slack user):
5. chmod the file you just created:
6. On your Droid, enable USB debugging (its under settings|applications|development)

7. connect your Droid to your slackware machine and run the command adb devices to check for your device. should look something like this:
root@slackware# adb devices
List of devices attached
8. check for openvpn 2.1, its used for opening the point to point protocol connection on your device. openvpn, the latest version should be built in by default in 13.1.

9. now we will build our source package. start by creating a *non root* directory called droid-tether (i recommend putting this in your home directory.

mkdir droid-tether
put that file in your "droid tether" directory

10. create a new text file in "droid tether" called "resolv.conf"
key the following into that file and save it.
domain lan
search lan
11. now its time to write a very small, simple script that will make it all come together.
create an empty file named "start_modem"
key the following:
adb forward tcp:41927 tcp:41927
sudo cp resolv.conf /etc/
modprobe tun
sudo openvpn --config azilink.ovpn
12. make the script executable using
chmod 755 droid-tether/start_modem
kill your wireless (ifconfig wlan0 (or whatever assigned interface) down)
open the azilink application on your phone and start the service.
on your computer, cd into the droid-tether directory and execute the start_modem script.
14. VOILA! you have a tethered phone to your slackware computer =)
Most of the credit for this tutorial goes to the creators of azilink
some credit goes to google
very little credit goes to myself (i added one line in the script to make it slack friendly, can you guess it? =])



Main Menu
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration