メモ

@adachi_koichi

setup Raspberry pi zero w without monitor and keyboard

download image

2017-11-29-raspbian-stretch-lite.zip
from https://www.raspberrypi.org/downloads/

format sd card

SD Memory Card Formatter for Mac https://www.sdcard.org/downloads/formatter_4/eula_mac/index.html

install Etcher

https://etcher.io/

write image by execute Etcher

edit cmdline.txt

add modules-load=dwc2,g_ether after rootwait

rootwait modules-load=dwc2,g_ether quiet 

edit config.txt

add dtoverlay=dwc2 bottom of file

enable ssh

in boot folder

$touch ssh

access via ssh

ssh pi@raspberrypi.local

wifi setting

/etc/wpa_supplicant/wpa_supplicant.conf

country=JP
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1
network={
  ssid="hoge"
  psk="hogepass"
  id_str="ac1"
}

network={
  ssid="fuga"
  psk="fugapass"
  id_str="acc2"
}

other command

#setting
$raspi-config

#reboot
$sudo reboot

#shutdown
$sudo shutdown -P 0

update

sudo apt-get update
sudo apt-get upgrade