Wren Linux

wren-linux / docs / extras / phone-tethering.md (as plain text)

Phone tethering over USB (extras/phone-tethering.sh)

SYNOPSIS

wrenctl install phone-tethering                     install it
wrenctl remove phone-tethering                      remove it
wrenctl manual phone-tethering                      print the manual steps below

Android: plug it in, then Settings > Network > Hotspot & tethering > USB tethering
iPhone:  plug it in, tap Trust, then Settings > Personal Hotspot
         (if the computer doesn't see it: idevicepair pair)
tether                 find the phone, ask, and connect (a window asks by itself, while offline)
tether --list          only show what it finds
wrenctl --wifi off     use only the phone's data

This uses a phone's mobile data on this computer through the USB cable. An Android phone needs nothing extra: the tether command is in the base install (parts/tether.sh), with or without NetworkManager. An iPhone also needs usbmuxd and the pairing tools this installs from Debian. While you are offline in sway, a phone appearing opens a window that asks whether to connect; it connects only if you say so. Otherwise, type tether. It uses NetworkManager if that is running, else dhcpcd, dhclient or busybox, whichever is there, with your sudo password. It sends no name for this computer, and leaves secure DNS alone. A phone's Wi-Fi hotspot is just a Wi-Fi network, with nothing to install.

LIMITS

MANUAL INSTALL

# usbmuxd and the pairing tools, for an iPhone (Android needs nothing)
sudo apt install --no-install-recommends usbmuxd libimobiledevice-utils
# Then the tether command connects it (parts/tether.sh, in the base install)
tether

To undo:

# The iPhone tools (usbmuxd marked "automatic" instead of purged: other
# programs can need it, and autoremove takes it out only if nothing does)
sudo apt purge libimobiledevice-utils
sudo apt-mark auto usbmuxd
sudo apt autoremove --purge