Skip to content

Instantly share code, notes, and snippets.

@reinhrst
Forked from antronic/iphone-usb_tethering-to-rpi.md
Last active December 27, 2024 08:17
Show Gist options
  • Save reinhrst/e119e76bb39abe1a0eed979a24a3b211 to your computer and use it in GitHub Desktop.
Save reinhrst/e119e76bb39abe1a0eed979a24a3b211 to your computer and use it in GitHub Desktop.
iPhone USB Tethering to RPi

iPhone Tethering to Raspberry Pi

On the following Raspbian OS (/etc/os-release):

PRETTY_NAME="Debian GNU/Linux 12 (bookworm)"
NAME="Debian GNU/Linux"
VERSION_ID="12"
VERSION="12 (bookworm)"
VERSION_CODENAME=bookworm
ID=debian
HOME_URL="https://www.debian.org/"
SUPPORT_URL="https://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"

With an iPhone 13 Pro, iOS18.2.

Instruction

On iPhone

  • Make sure personal hotspot is on
  • Make sure iPhone USB is disconnected (not sure this is necessary)

On RPi

  • sudo apt-get install usbmuxd ipheth-utils libimobiledevice-utils
  • sudo reboot (not sure this is needed)

On iPhone

  • connect iPhone USB to RPI
  • Trust

Done


The nice thing seems to be that, unlike wifi personal hotspot, it will reliably reconnect after RPI does a reboot -- actually the iPhone says after a reboot that it wants to be unlocked.

Note that phone can be connected to WIFI while USB tethering is active, however the traffic from USB will only be routed on celular, not WIFI.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment