Skip to content

Instantly share code, notes, and snippets.

@boina-n
Last active April 8, 2017 12:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save boina-n/ef13e09d01b02431aad50bd59a287242 to your computer and use it in GitHub Desktop.
Save boina-n/ef13e09d01b02431aad50bd59a287242 to your computer and use it in GitHub Desktop.
Enable android tethering with Ubuntu
#!/bin/bash
sudo ip route delete default
sudo ifconfig usb0 up
sudo dhclient usb0
sudo ip route add default via 192.168.42.129
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment