eolas/neuron/cd5cdd66-905b-4f1f-b8e8-3a11ad507325/Headless_Raspi_network_setup.md
2025-01-13 20:54:49 +00:00

766 B

id tags created
hb10
networks
Linux
raspberry-pi
procedural
Wednesday, June 12, 2024

Headless network setup

If you are using a headless system and you aren't using an ethernet connection, you face a chicken-egg issue of how to connect the device to WiFi via ssh when the device isn't yet on the network.

You can get around this by saving a file called wp_supplicant.conf to the /boot directory of the device. This specifies the SSID name and password and will be used to auto-connect when the device boots.

For example:

country=GB
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1
network={
     ssid="SKYVL7XP"
     scan_ssid=1
     psk="WIFI_PASSWORD"
     key_mgmt=WPA-PSK
}