HeadlessPI

From Stu2
Jump to navigation Jump to search

You need to do three things. The default pi username is now gone. I used the raspberry pi imager to create the image.

All this done in the boot directory of the sd card

touch ssh  //this enables ssh

Create 'wpa_suppicant.conf'. Note the SSID is case sensitive.

country=us
update_config=1
ctrl_interface=/var/run/wpa_supplicant

network={
 scan_ssid=1
 ssid="SSID"
 psk="preshared Key"
}

Set up a user by creating 'userconf' file:

username:hashPasswd

To generate hashed password:

echo 'password' | openssl -6 -stdin