|||

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 192.168.1.1-254 | grep -B5 Raspberry ~~~~

Raspi-Config

password

hostname

locale: us utf8

tz

wireless country

Important for future access:

interfacing option ssh to enabled

expand filesystem

reboot

After boot

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

Up next Notes on Van Life I’ve spent 15+ years in the IT field and a few years back the company I work for adjusted their business model to include ethically (my ethics) 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 dreamlog Cast a URL to a Chromecast Email List System Design Cards About Music, Finding the good stuff. “Richie Pan’s America” Font 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 Kawasaki Vulcan S 650 Notes Honda Rebel 300 Notes Samba Notes Things worth noting My Software Friends Favorites Recommended Tech Elasticsearch Notes Book Notes APRS Notes vim notes Nmap Notes 4runner Notes Bash Notes Raspberry PI Zero quickstart Notes on Van Life