This is an old revision of the document!
Table of Contents
Connect a Raspberry Pi Zero over USB
This is a manual for connecting a Raspberry Pi Zero to your computer via USB. After burning the image on your SD card one has to add the USB driver on startup. In /boot/config.txt write at the end of the text:
dtoverlay=dwc2
and in /boot/cmdline.txt add after rootwait:
modules-load=dwc2,g_ether
Create a new file named “ssh” in the boot folder
Connect the Pi Zero with an USB cable or an USB dongle to your computer and log in with SSH
$ ssh pi@raspberrypi.local
.local host on Arch Linux
To get local hostname resolution using a “hostname.local” naming scheme install avahi and the nss-mdns package:
$ sudo pacman -S avahi nss-mdns
Start the avahi-daemon.service
$ systemctl start avahi-daemon.service
Edit the edit the file /etc/nsswitch.conf and include mdns_minimal [NOTFOUND=return] before resolve:
$ sudo nano /etc/nsswitch.conf
It should looks like that:
hosts: files mymachines myhostname mdns_minimal [NOTFOUND=return] resolve [!UNAVAIL=return] dns