My concerns are focused on enabling USB tethering in an iDevice (iOS 12 iPhone X and iPad Air):
- What are the steps for tethering IOS 12 devices? Is it just one switch on the Android or iDevice's?
- Does the iDevice require configuring any other USB tethering settings?
- Is there a simple litmus test to confirm that tethering setting is working? (ping?)
I am interested in using an iOS12 device, instead of an Android device, to display VNC output from a Raspberry Pi (rPi) as described in the blog: Raspberry Pi Display over USB.
The goal is to be able to view / control rPi from iDevice (VNC or SSH) through USB-IP networking:
- power up your rPi,
- plug in your iDevice into the rPi via USB,
- turn on USB tethering
- connect iDevice to USB0 via VNC or SSH client app
Please indicate in replies if you have successful USB-IP networking experience (SSH VNC).
iDevice (phone \ tablet) configuration instructions:
- VNC Viewer app to connect iDevice to tightvncserver over USB-IP connection
- JuiceSSH app to SSH from iDevice to rPi over USB-IP connection
- Turn on iDevice's USB tethering
rPI configuration instructions:
- sudo apt-get install tightvncserver
assigning a static IP, 192.168.42.42 to the rPi's USB0 interface:
sudo nano /etc/network/interfaces
Paste the following onto the bottom of the file, then save and exit (ctrl-X, Y):
iface usb0 inet static address 192.168.42.42 netmask 255.255.255.0 network 192.168.42.0 broadcast 192.168.42.255
It is also possible to append or echo the settings to the target file:
echo "iface usb0 inet static" | sudo tee -a /etc/network/interfaces echo "address 192.168.42.42" | sudo tee -a /etc/network/interfaces echo "netmask 255.255.255.0" | sudo tee -a /etc/network/interfaces echo "network 192.168.42.0" | sudo tee -a /etc/network/interfaces echo "broadcast 192.168.42.255" | sudo tee -a /etc/network/interfaces
It would be nice if there was a command to test static IP assignment?
Details how to temporarily route rPi traffic through a WAN- connected Android Device:
arp -acommand to identify phone's IP address
route add default gw 192.168.42.129 usb0