Is there a way to share internet connectivity from linux laptop to ubports phone? I have a Nexus 5 with dead Wi-Fi and no matching sim card to get at least some connectivitty...

1. set up usb tethering so that you can ping your phone from the laptop

2. on laptop, assuming your laptop is connected to internet through eth0:

sysctl net.ipv4.ip_forward=1
iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE

3. check what IP the laptop has on the USB network interface, and set that as default route on the phone.

If it doesn't have a menu for it, but you have a root shell:

ip route replace default $laptop_address

@alexcleac hm yikes tbh that sounds like it's shot networking wise. the only other option I can think of is some sort of USB OTG network driver

@jalcine basically this is the thing I was looking for, but didn't have much time to investigate idea more deeply. At least 3G works 😁

Sign in to participate in the conversation
Mastodon for Tech Folks

This Mastodon instance is for people interested in technology. Discussions aren't limited to technology, because tech folks shouldn't be limited to technology either!