Configure Wifi and SSH on Raspberry Pi – Headless
Want to configure a new Raspbian OS to connect to your wifi and to enable SSH without bothering to plug in a monitor or keyboard?
After imaging the SSD card, plug it back into your computer.
To enable wifi – create a file called wpa_supplicant.conf
in the /boot
folder:
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1
country=<Insert 2 letter ISO 3166-1 country code here>
network={
ssid="<Name of your wireless LAN>"
psk="<Password for your wireless LAN>"
}
To enable ssh, create an empty file called ssh
in the /boot
folder.
More information:
Then boot it up for the first time – wait a while!