Skip to main content


Showing posts from February, 2013

make it simple "Bash Script for Reverse Tethering android on linux mint "

-- alibi--
just make it  simple as possible
base on this post

-- prepare--
* make sure your device connected to PC
* make sure adb command running properly
* and make usb tethering active on android

download script from here

you can disable data connection on your android first,or script will delete default gateway on android
extract and run it

akses internet via your android

if data connection on android active, network service will auto reconect to provider internet and it will replace default gateway with provider gateway.
throught provider gateway mean reverse tethering fail

reverse tethering android on linux mint "Nadia"

if you want to connect your android to internet even if you doesn't have Data Package.

tested on linux mint 14 and maybe,  it will be work on other linux distribution.

*note : kalo kopi sudah di bikin maka mari di lanjutkan.. :D

-- persiapan--
plug you phone's usb and  enable usb tethering android in setting menu. This will assign an IP automatically when the device is added. bow check the IP address on both
PC/laptop Android -- on linux mint --
share your PC/laptop's internet connection, and make it as router with :
>$ sudo iptables -A POSTROUTING -t nat -j MASQUERADE >$ sudo echo 1 > /proc/sys/net/ipv4/ip_forward
-- on android --
 run this command to pass the data internet via PC/laptop
># route add default gw dev usb0 then set you DNS to google dns
># setprop net.dns1 -- testing --

open browser and enjoy the show...

*note : this methode can download/install app from android market. if you want to install app, use other market…

adb no permissions error on linux mint 14 "nadia"

when this happen :

Create a file named /etc/udev/rules.d/99-android.rules with the following contents (hex vendor numbers were taken from the vendor list page):
SUBSYSTEM=="usb", ATTRS{idVendor}=="0bb4", MODE="0666"
SUBSYSTEM=="usb", ATTRS{idVendor}=="0e79", MODE="0666"
SUBSYSTEM=="usb", ATTRS{idVendor}=="0502", MODE="0666"
SUBSYSTEM=="usb", ATTRS{idVendor}=="0b05", MODE="0666"
SUBSYSTEM=="usb", ATTRS{idVendor}=="413c", MODE="0666"
SUBSYSTEM=="usb", ATTRS{idVendor}=="0489", MODE="0666"
SUBSYSTEM=="usb", ATTRS{idVendor}=="091e", MODE="0666"
SUBSYSTEM=="usb", ATTRS{idVendor}=="18d1", MODE="0666"
SUBSYSTEM=="usb", ATTRS{idVendor}=="0bb4", MODE="0666"
SUBSYSTEM=="usb", ATTRS{idVendor}=="12d1", MODE="0666"