Ref (http://www.humans-enabled.com/2009/12/how-to-tether-your-verizon-droid-as.html)
Install Java: REF (https://www.digitalocean.com/community/tutorials/how-to-install-java-on-ubuntu-with-apt-get)
Installing Java with apt-get is easy. First, update the package index:
sudo apt-get update
Then, check if Java is not already installed:
java -version
If 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-jre
If 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 (https://drive.google.com/file/d/0BwAD-TypIoq4U1N2UHBwRmVPRWM/view) the setup script (also added as attachment (http://www.retrovideogamer.co.uk/forum/index.php?action=dlattach;topic=8087.0;attach=3185) 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
ls
Something 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 VMs
Type in:
tar xvf Droid-Tether-SV.tar.gz
**Can delete the tar ball**
Open a new Terminal and type:
apt-get install lib32stdc++6 REF (https://stackoverflow.com/questions/11471722/libstdc-so-6-cannot-open-shared-object-file-no-such-file-or-directory)
cd 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 (http://www.tucows.com/download.html?software_id=981465&file_id=589002&mirror_id=8811&t=2) or Mega (https://mega.nz/#!KZcSXQKB!7LEdaa25eZpN4zZ5P_qKc806kPHxz77XSbWUHMoEx9I)
Move 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/android
In the Android SDK and AVD Manager window click Available Packages
Put a check in the available entry (https://dl-ssl.google.com/android/repository/repository.xml (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 Selected
Tick Accept All
Click Install
When 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 ? packages
Tick Accept License & click Install
Close when complete
Back in Terminal type:
cd platform-tools
sudo cp adb /usr/bin/adb
sudo gedit /etc/udev/rules.d/91-android.rules
Paste 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.rules
sudo restart udev
sudo systemctl restart udev.service REF (https://askubuntu.com/questions/803812/is-there-other-form-to-restart-udev-in-xenial-ubuntu-16-04)
Enable USB Debugging on your phone and connect it if it isn't already
Back in Terminal type:
adb devices
You should see something resembling:
$ adb devices
List of devices attached
8a996b0e device
If 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 (http://stackoverflow.com/questions/23081263/adb-android-device-unauthorized)
$ adb devices
* daemon not running. starting it now on port 5037 *
* daemon started successfully *
List of devices attached
8a996b0e unauthorized
Type 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 (http://www.retrovideogamer.co.uk/forum/index.php?action=dlattach;topic=8087.0;attach=3184) with it (attachment)
From a new Terminal type:
mkdir azilink
cd azilink
Download (http://www.retrovideogamer.co.uk/forum/index.php?action=dlattach;topic=8087.0;attach=3186) Azilink-debug.apk (attachment) and move it to the azilink folder
Back in Terminal type:
adb install -r Azilink-debug.apk
wget http://lfx.org/azilink/azilink.ovpn
or download from here (http://www.retrovideogamer.co.uk/forum/index.php?action=dlattach;topic=8087.0;attach=3187) (attachment) and move into azilink folder
gedit resolv.conf
Paste the following into the empty document:
domain lan
search lan
nameserver 192.168.56.1
Quick Save and Exit
Back in Terminal:
gedit start_modem
Paste the following into the empty document:
adb forward tcp:41927 tcp:41927
sudo cp resolv.conf /etc/
sudo openvpn --config azilink.ovpn
Quick Save and Exit
Back in Terminal type:
chmod 755 start_modem
On your phone, launch Azilink and put a check by Service active
With 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.