I was pretty eager to try out Raspberry Pi Zero after their recent addition of Camera connector in v1.3 version. Luckily I got hold of a Raspberry Pi Zero from Adafruit last week and here goes my setup..
One pain-point in setting-up Raspberry Pi Zero is its needed accessories (mini HDMI-to-HDMI, micro USB OTG cable etc, power cable, monitor, keyboard, mouse, wifi dongle etc..also RPi Zero doesn’t come with USB hub built-in as in its elder bigger brother Rasperry Pi 3) to get it up and running. Thanks to this great article by Andrew, now we can setup RPi Zero as a USB gadget so that I can simply SSH into it from my Macbook via USB.
- Once SD card is flashed with latest Raspbian Jessie Lite image (Jessie full works equally good) , open up the boot partition Finder/Windows Explorer on your Mac/PC and add to the bottom of the
dtoverlay=dwc2on a new line, then save the file.
- Open up the
cmdline.txt. Be careful, each parameter is seperated by a single space (it does not use newlines). Insert
- Thats it ! Now hook-up RPi zero to Macbook/PC with micro-USB to USB cable and you can ssh into as
Setting up WiFi dongle
sudo nano /etc/wpa_supplicant/wpa_supplicant.conf as follows:
Mounting USB drives
sudo blkid to identify the drive id.