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