- Rasberry Pi OS Lite (64-bit), Debian Bookworm, 03-15-2024
- No WiFi configured
- Hostname: cs341-testpi
- Username: pi
-
Make backup copies of /boot/config.txt and /boot/cmdline.txt
-
Edit /boot/config.txt by appending the following line to the end of the file:
dtoverlay=dwc2
- Edit /boot/cmdline.txt by inserting the following text between rootwait and quiet
modules-load=dwc2,g_ether
- Create a new udev rule file. Create /etc/udev/rules.d/90-usb-gadget.rules and insert the following:
SUBSYSTEM=="net",ACTION=="add",KERNEL=="usb0",RUN+="/sbin/ifconfig usb0 up"
For MacOS and Ubuntu it was plug and play for me. For Windows, you may have to follow the instructions here
Run ssh [email protected]
. The hostname should resolve through mDNS.