RefInstall Java: REFInstalling Java with apt-get is easy. First, update the package index:
sudo apt-get updateThen, check if Java is not already installed:
java -versionIf it returns "The program java can be found in the following packages", Java hasn't been installed yet, so execute the following command:
sudo apt-get install default-jreIf dependencies not met:
sudo apt-get -f install -y
sudo apt-get install default-jre
or
sudo apt-get install oracle-java8-installer -y
Accept agreement: [Enter], left arrow-[Enter]
wait for install to finish..
Attach phone to computer via USB
Enable 'USB Debugging' (Settings-More-Developer options-USB debugging)
Download the setup script (also added as
attachment at bottom of this post in case the original link breaks again)
Move the tar file to Home folder
Open Terminal (ctrl+Alt+T) and type
lsSomething similar to the following will appear:
Desktop Droid-Tether-SV.tar.gz Music Templates wget-log
Documents DVDFab9 Pictures Videos Win7
Downloads examples.desktop Public VirtualBox VMsType in:
tar xvf Droid-Tether-SV.tar.gz**Can delete the tar ball**
Open a new Terminal and type:
apt-get install lib32stdc++6 REFcd Droid-Tether-SV/sudo ./install_droidtethersv.py**Enter password, if applicable**
The process will take a few seconds and at the end, a message will (probably) say:
**Everything is setup on Computer-side at this point. Now for adding azilink to the phone..
* daemon not running. starting it now on port 5037 *
* daemon started successfully *
|Failure! Android phone DOES NOT appear to be Connected! Can't install azilink.
|Please enable USB debugging on your Droid phone, connect it via the USB cable,
|then re-run this script to finish the setup. Alternatively: Enable USB
|debugging on your Android phone. Then, from the phone, navigate to:
|http://code.google.com/p/azilink, then download/install azilink app directly
|from there. Script will now exit.No worries, download Android SDK r07 from
tucows or
MegaMove the tar file to Home folder
In a new Terminal type:
tar xvf android-sdk_r07-linux_x86.tgz
cd android-sdk-linux_x86
tools/androidIn the
Android SDK and AVD Manager window click
Available PackagesPut a check in the available entry (
https://dl-ssl.google.com/android/repository/repository.xml)
Put another check in
This repository requires a more recent version of the Tools. Please update.Click
Install SelectedTick
Accept AllClick
InstallWhen complete, click
Yes to restart ADB and
OK to attempt a reopen of Android SDK
Click Close in the last box
Back in Terminal press the up arrow to input
tools/android again
When
Android SDK and AVD Manager opens, this time put a check in
Android SDK Platform-tools, revision ?? (Rev 20 as of 11/05/2015), if it's not there already. Can uncheck items
below it.
Click
Install ? packagesTick
Accept License & click
InstallClose when complete
Back in Terminal type:
cd platform-toolssudo cp adb /usr/bin/adbsudo gedit /etc/udev/rules.d/91-android.rulesPaste the following into the document, overwriting anything already there:
SUBSYSTEM=="usb", ATTRS{idVendor}=="22b8", SYMLINK+="android_adb", MODE="0666", OWNER="USERNAME"
If you have an HTC Android phone - use this rule instead of the one above:
SUBSYSTEM=="usb", ATTRS{idVendor}=="0bb4", SYMLINK+="android_adb", MODE="0666", OWNER="USERNAME"
If you have the Samsung Galaxy Android phone, use this rule instead of the one above:
SUBSYSTEM=="usb", ATTRS{idVendor}=="04e8", SYMLINK+="android_adb", MODE="0666", OWNER="USERNAME"
If you have the Sony Ericsson X11 Android phone, use this rule instead of the one above (Thanks to Steven from the comments):
SUBSYSTEM=="usb", ATTRS{idVendor}=="0fce", SYMLINK+="android_adb", MODE="0666", OWNER="USERNAME"If you have the LG Optimus V(Virgin Mobile) Android phone, use this rule instead of the one above:
SUBSYSTEM=="usb", ATTRS{idVendor}=="1004", SYMLINK+="android_adb", MODE="0666", OWNER="USERNAME"Replace all instances of
USERNAME with your name
Quick Save and Exit
Back in Terminal:
sudo chmod a+r /etc/udev/rules.d/91-android.rulessudo restart udevsudo systemctl restart udev.service REFEnable USB Debugging on your phone and connect it if it isn't already
Back in Terminal type:
adb devicesYou should see something resembling:
$ adb devices
List of devices attached
8a996b0e deviceIf you see similar to the following, revoke USB Debugging on phone, disable USB Debugging, re-enable USB Debugging and accept "always trust this computer" when prompted. Run
adb devices again in Terminal to check if the phone is now authorized.
Ref$ adb devices
* daemon not running. starting it now on port 5037 *
* daemon started successfully *
List of devices attached
8a996b0e unauthorizedType in:
sudo apt-get install openvpn /y
sudo /etc/init.d/networking restart
sudo /etc/init.d/network-manager restart (won't work if you don't have network manager installed)
Install OpenVPN/Azilink on Android phone by clicking
here with it (attachment)
From a new Terminal type:
mkdir azilink
cd azilinkDownload Azilink-debug.apk (attachment) and move it to the azilink folder
Back in Terminal type:
adb install -r Azilink-debug.apkwget http://lfx.org/azilink/azilink.ovpnor download from
here (attachment) and move into azilink folder
gedit resolv.confPaste the following into the empty document:
domain lan
search lan
nameserver 192.168.56.1Quick Save and Exit
Back in Terminal:
gedit start_modemPaste the following into the empty document:
adb forward tcp:41927 tcp:41927
sudo cp resolv.conf /etc/
sudo openvpn --config azilink.ovpnQuick Save and Exit
Back in Terminal type:
chmod 755 start_modemOn your phone, launch Azilink and put a check by
Service activeWith wireless disabled and no wired internet connection go back to Terminal and type:
/home/azilink/start_modem or
/home/yourname/azilink/start_modem (however you have it set up)
You should now be able to freely use the internet.
!Important! When ending use with Azilink, press ctrl+c in Terminal to exit the process properly. Exiting out of Terminal will leave you unable to connect to the internet even if the wireless says you are.
You can use the Desktop Azilink to connect from here on.