RASPBERRYPI - Headless Setup: Difference between revisions
From IT-Arts.net
m Text replacement - "Category:Post-It" to "Category:Wiki" |
m Text replacement - "Category:Wiki" to "Category:Wiki '''''[https://it-arts.net/index.php/Category:Wiki Return to Wiki Index]''''' " |
||
| Line 1: | Line 1: | ||
[[Category:Wiki]] | [[Category:Wiki]] | ||
'''''[https://it-arts.net/index.php/Category:Wiki Return to Wiki Index]''''' | |||
Mount the media, then go in bootfs partition : | Mount the media, then go in bootfs partition : | ||
Latest revision as of 08:13, 17 January 2026
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
