Headless setup for a RaspberryPi 3 to connect to a WiFi network and allow SSH.
The following has only been attempted on a Debian machine.
Download and burn the raspbian-stretch-lite image into an SD card.
Assert that the SD card is available under /media/$USER
. Follow the next steps to configure the RPi for headless setup.
NOTE: Run the rpi_headless.py
script as sudo.
$ sudo ./rpi_headless.py --ssid <WiFI_name> --password <WiFi_password>
The card can now be unmounted and extracted. Boot the RaspberryPi and you should be able to SSH into it. If you have trouble finding the RaspberryPi IP, nmap
can come in handy issuing a command like so:
nmap -sn 192.168.1.0/24
Set up a static IP address.