Tag Archives: pi zero

It’s not really a secret that I love messing with Raspberry Pis – I have one (a first generation Raspberry PI) that acts as a VPN server and a temperature controller for my homebrew beer keezer, I have one (a third generation Raspberry Pi) that acts as a streaming media server, I’m preparing one (a 0W) for a homebrew beer fermentation chamber, and I have a few more 0s and 0Ws for different uses. That being said, I’ve started to customize my own prep routine for getting a new Pi Zero W (and this is adaptable) running.

Card Setup

  1. Image latest OS onto card: Use Etcher (from etcher.io)
  2. Boot once (this fixes a few things, most notably the SD card size)
  3. Setup as Ethernet Gadget (thanks Adafruit!)
    1. Card /boot/config.txt -> add dtoverlay=dwc2
    2. Card /boot/cmdline.txt -> after rootwait add modules-load=dwc2,g_ether
  4. Enable SSH: add file ‘ssh’ (no ext) in /boot/
    1. Alternative: sudo raspi-config – interfacing options – SSH – Yes
  5.  Add wifi info:
    1. Card /boot/wpa_supplicant.conf
    2. Should look like:
network={
 ssid="YOUR_SSID"
 psk="YOUR_PASSWORD"
 key_mgmt=WPA-PSK
 }

Device – after boot

  1. Connect with PuTTY to raspberrypi.local
  2. Change password: passwd
  3. Update host information in /etc/hosts and /etc/hostname
  4. Reboot to force update to AVAHI (mDNS): sudo reboot
  5. Update software: sudo apt-get update then sudo apt-get upgrade
  6. OPTIONAL: Install python pip: sudo apt-get install python-pip

Notes:

There’s usually some easier ways to do these things, this is my way. As per usual, there’s at least six ways to skin the cat and at least four of them are correct.

The case is from Thingiverse.


Category: Raspberry Pi

This is the new server