Friday, March 1, 2013
Enable reverse tethering on Nexus 4/Ubuntu phone
First we'll activate the usb-networking on the phone:
adb root
adb shell setprop sys.usb.config rndis,adb
Note: If you get "error: insufficient permissions for device" trying to adb after this line, this is probably due to an udev bug. You can workaround it by
adb kill-server
sudo adb start-server
Wait until NetworkManager on your computer shows the new connection. (It will say "disconnected" after some time). Edit the connection, and change under "IPv4 Settings" the method from "Automatic" to "Shared to other computers". Reconnect that connection in NetworkManager.
Then log into the phone via ssh (important!) and run
dhclient usb0 -v
Now you can check on the phone, if it works
ping google.com
Subscribe to:
Post Comments (Atom)
I am having exactly the same problem with Motorola Droid 2 r2-d2!
ReplyDeleteEverything worked, but when I do "adb shell dhclient usb0 -v" I am getting: "dhclient: not found".
Or is there some other way for connecting to phone over ssh?
I probably need to set up an SSH server at the phone side? But I seem to be able to install the applications from android market only with the phone being connected to the internet..
Delete