LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Linux Answers > Networking
User Name
Password

Notices


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

http://code.google.com/p/azilink/downloads/detail?name=azilink-2.0.2.apk...

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:
http://developer.android.com/sdk/index.html

2. Extract the SDK, then navigate to the folder where the adb application is:
Code:
tar xvf android-sdk_r07-linux_x86.tgz
cd android-sdk-linux_x86/tools
3. copy from tools the adb application to /usr/bin
Code:
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):
Code:
SUBSYSTEM=="usb", ATTRS{idVendor}=="22b8", 
SYMLINK+="android_adb", MODE="0666", OWNER="USERNAME"
5. chmod the file you just created:
Code:
chmod a+r /etc/udev/rules.d/91-android.rules
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:
Quote:
root@slackware# adb devices
List of devices attached
040384FA0811E012
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.

Code:
mkdir droid-tether
wget http://azilink.googlecode.com/files/azilink.ovpn
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.
Code:
domain lan
search lan
nameserver 192.168.56.1
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:
Code:
adb forward tcp:41927 tcp:41927
sudo cp resolv.conf /etc/
modprobe tun
sudo openvpn --config azilink.ovpn
12. make the script executable using
Code:
chmod 755 droid-tether/start_modem
13.
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.
Code:
./start_modem
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? =])
*************************************************************************************




  



All times are GMT -5. The time now is 01:08 PM.

Main Menu
Advertisement
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration