| Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
|
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.
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 11:59 AM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|