Setting up a Raspberry Pi Zero/W without a screen!
Posted last month

I recently purchased a Raspberry Pi Zero W (Pi Zero with WiFi/Bluetooth), and I wanted to set it up with just my laptop (I didn't have access to a HDMI cable, keyboard, mouse, etc... Here are the steps I took to set it up.

  1. Obtain the necessary hardware:
  2. Download Raspbian and flash it on the MicroSD Card
    • Download Raspbian Stretch with Desktop here
    • Flash the image according to your OS's instructions here
  3. Remount your SD card, and modify some files to enable USB-Ethernet and SSH
    • Navigate to <sdcard_base_dir>/boot
    • Modify the following files:
      • config.txt: Add dtoverlay=dwc2 to the bottom of the file, and save it.
      • cmdline.txt: Modify the existing line in this file and add modules-load=dwc2,g_ether after rootwait. Note the space in-between the two. It should look similar to this afterwards: dwc_otg.lpm_enable=0 console=serial0,115200 console=tty1 root=/dev/mmcblk0p2 rootfstype=ext4 elevator=deadline fsck.repair=yes rootwait modules-load=dwc2,g_ether quiet init=/usr/lib/raspi-config/init_resize.sh. Save it.
      • Add a new file called ssh in this directory. This will enable SSH when the raspberry pi boots, so we can log into it!
  4. Safely eject the SD card, and put it into your raspberry pi.
  5. Plug the USB port labeled PWR into a USB power source (any phone charger at 5v and 1.5A should be fine)
  6. Plug the USB port labeled USB into your PC. Wait up to 90 seconds to make sure the Pi has finished booting.
  7. Make sure Bonjour is installed, for pi auto-discovery.
    • Windows: Download Bonjour and install it.
    • OSX: Bonjour comes pre-installed
    • Linux: For any debian-based systems (Debian/Kali/Ubuntu/Mint/etc..
Click here to read the full post
Welcome to my Blog
Posted October 2016

Welcome! I have just created this blog, so please ignore the test code that may come and go. I hope to use this blog to post interesting tidbits about programming, life, and more!