On RPi
sudo apt-get install usbmuxd
- connect iPhone
On iPhone
-
Trust
On RPi
- Then install a branch of this ... (I'm not sure, is it require?)
sudo apt-get install gvfs ipheth-utils libimobiledevice-utils gvfs-backends gvfs-bin gvfs-fuse ifuse -y
- Then check your iPhone connection
ifconfig -s
- You would see the
eth1
for your iPhone (If caseeth1
doesn't existing at the first time)- If you have
eth1
at the first time before you plug an iPhone - You need to check which
Iface
shown after you plugged an iPhone
- If you have
Set RPi dhch network
dhclient -v eth1
- add following command in
/etc/network/interfaces
allow-hotplug eth1
iface eth1 inet dhcp
sudo /etc/init.d/networking restart
OR Share internet connection to eth0
using wifi-to-eth-route.sh
by changing wlan0
to eth1
wifi-to-eth-route.sh
Due to iPhone wireless hotspot using the 2.4Ghz signal which easies to interfere from other same frequency radio signal.
In my dormitory, we have many 2.4 Ghz signals that affect my wifi sharing stability. =w=
PS. If I do wrong grammars, please tell me to fix na~ 'w'
Just install
usbmuxd ipheth-utils libimobiledevice-utils
work on my iPhone and rpi4. Without DHCP setting, RPI is still able to connect hotspot in automatic.