Raspberry PI Zero quickstart

This should help with:

  • Installing Rasbian on a micro sd
  • setting up networking
  • enabling ssh before boot
  • find the raspberry pi on the network with nmap
  • basic raspi config and
  • Updates

Write rasbian image to microsd card

Download rasbian lite

From linux computer with sd card inserted:

$ lsblk
mmcblk0     179:0    0  14.9G  0 disk 
└─mmcblk0p1 179:1    0  14.9G  0 part
$ sudo dd bs=4M if=2xxxxxxx-jessie-lite.img of=/dev/mmcblk0 status=progress

once finished:

mount the /boot and the / somewhere

Set up wireless networking

$ sudo vim /mountpoint/etc/wpa_supplicant/wpa_supplicant.conf

add: ~~~~ network={ ssid=“thessid” scan_ssid=1 key_mgmt=WPA-PSK psk=“passphrase” } ~~~~

Set up ssh on first boot

$ sudo touch /bootmountpoint/boot/ssh

Boot the Pi0W

Power it on somehow, If network settings were right, it should show up with nmap.

Nmap to find the Pi

This command should give you the ip of the pi as long as it’s on the same network( root required to get mac addresses). ~~~~ $ sudo nmap -p22 -Pn | grep -B5 Raspberry ~~~~




locale: us utf8


wireless country

Important for future access:

interfacing option ssh to enabled

expand filesystem


After boot

Run updates: ~~~~ $ sudo apt update && sudo apt upgrade && sudo apt-get autoremove && sudo apt-get autoclean ~~~~

Up next Ubuntu 16.04 or 18.04 #Journalbeat Sending beats from journalctl (systemd’s logging provider) to logstash/elasticsearch with JournalBeat on Github Install required Bash Notes I tried out zsh, but it had too many buggy display bits for my tastes. likely the stuff I was using in conjunction. So I’ve stuck with bash and
Latest posts Recommended Tech 2022 Proxmox Notes Meow Wolf Financial Notes Cast a URL to a Chromecast Email List System Design Cards About Music, Finding the good stuff. Zines shirt designs Now Learning Graphical Design Python Notes Deploy to a Remote Docker registry DMented 'zine for DM's and Character Sheets for Players Online Security Find Notes Samba Notes Things worth noting My Software Friends Favorites Recommended Tech Elasticsearch Notes Book Notes APRS Notes vim notes Nmap Notes Bash Notes Raspberry PI Zero quickstart Ubuntu 16.04 or 18.04