RASPBERRYPI - Headless Setup

From Wiki.IT-Arts.net


Mount the media, then go in bootfs partition :

cd /media/.../bootfs/


User Setup

Generate the user/password file with :

echo "USERNAME:$(echo 'USERNAME_PASSPHRASE' | openssl passwd -6 -stdin)" > userconf.txt

The userconf.txt in this example will countain :

cat userconf.txt
USERNAME:$6$x39r60kfblJs3JJY$tHgLeefg1A.2kpZitnSzx4zd8jb0PgBtnC7mw/IFyw2jDefLUdsz0jdb3cPNO5SZPIQuWPIV0Y/wW6vvm1qwp.


Enable SSH daemon

Create the file 'ssh' :

touch ssh


Wifi Setup

Edit the 'wpa_supplicant.conf' file with a text editor :

vim wpa_supplicant.conf

And use this setup template :

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

# OPTIONNAL OPTION FOR COUNTRY
country=BE

network={
	ssid="My_Wifi_SSID"
	psk="My_Wifi_PASSWORD"
}



!!! DONT FORGET TO UNMOUNT PROPERLY BEFORE USING