PreConfigure SDCard

Introduction

Preconfigure SD Card for Raspbian

Once the OS (Raspbian) has been flashed onto the SD card,

To enable SSH access, create an empty file called “ssh” and put it on the microSD card (on /boot) To enable WiFi, create a file called “wpa_supplicant.conf” with following content, on the microSD card (on /boot):

ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1

network={
  ssid="ssid"
  psk="passphrase"
}

Replace “ssid” and “passphrase” with the values matching your own wireless network and save the file. Upon first boot, the file will be moved to the correct location on the filesystem.

Code

see files here