RASPBERRYPI - Headless Setup: Difference between revisions
From Wiki.IT-Arts.net
imported>Z No edit summary |
imported>Z No edit summary |
||
(2 intermediate revisions by the same user not shown) | |||
Line 53: | Line 53: | ||
---- | |||
<blockquote> | <blockquote> | ||
!!! DONT FORGET TO UNMOUNT PROPERLY BEFORE USING | !!! DONT FORGET TO UNMOUNT PROPERLY BEFORE USING | ||
</blockquote> | </blockquote> | ||
---- |
Latest revision as of 09:52, 1 May 2024
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