
Make sure you use a pure text editor on those files, and that cmdline.txt is one long single line (no breaks).Add this near the end of cmdline.txt after rootwait (single space between) without creating a new line: modules-load=dwc2,g_ether.

Add this to the end of config.txt as a new line: dtoverlay=dwc2.To configure the Pi Zero as a USB Ethernet gadget, prepare the Raspbian card, as above, then edit two files. If your friends have Macs, this should work on them as well. However, it does depend on Windows Plug-N-Pray installing the correct drivers for the USB Gadget device, and having working mDNS on the host computer, which *should* work with up-to-date versions of Windows 10, but not necessarily on older versions (and. The advantage of USB-Ethernet Gadget mode is your friends would be able to SSH into their systems without any additional configuration (assuming you are sending them boot ready cards with the Pi0W). You can configure the Pi Zero as a USB-Ethernet Gadget and SSH in over an ordinary micro USB cable (no network connection needed). With the Pi Zero models you also have the option of USB Gadget mode. When Raspbian finds an ssh or ssh.txt file on the "boot" partition it will enable SSH logins and delete the file. When Raspbian finds a wpa_nf file on the "boot" partition it will move it to the correct location and use it to connect to the wireless network. Safely eject the card and it's ready to boot your headless Raspberry Pi. Code: Select all ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdevĮdit country=, ssid= and psk= with your information and save the file (use a pure text editor, not a word processor).
