Skip to content

Instantly share code, notes, and snippets.

@mochki
Forked from antronic/iphone-usb_tethering-to-rpi.md
Last active January 30, 2024 07:41
Show Gist options
  • Save mochki/32597b4c4fa3dadec66b5cbfdabbae63 to your computer and use it in GitHub Desktop.
Save mochki/32597b4c4fa3dadec66b5cbfdabbae63 to your computer and use it in GitHub Desktop.
iPhone RPi Hotspot/Ethernet

iPhone Tethering to Raspberry Pi

  • update n shit
  • sudo apt install usbmuxd ipheth-utils libimobiledevice-utils
  • (on iPhone) plug in & trust. Enable hotspot if not already

internet should be working now. nmcli is what RPi uses

ethernet

  • sudo nmcli c add con-name <connection-name> type ethernet ifname <interface-name> ipv4.method shared ipv6.method ignore
  • sudo nmcli c up <connection-name>
  • Credit Ubuntu Docs

wifi hotspot

  • sudo nmcli device wifi hotspot ssid <network-name> password <password>
  • Pi docs on this

assuming stock Raspberry Pi OS

nmcli

usbmuxd

ipheth-utils

libimobiledevice-utils

todo: make a mac spoofing gist or sumthin

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