RASPBERRYPI - Headless Setup: Difference between revisions

From Wiki.IT-Arts.net
imported>Z
(Created page with "Category:Post-It Mount the media, then go in bootfs partition : <nowiki> cd /media/.../bootfs/</nowiki> == User Setup == Generate the user/password file with : <no...")
 
imported>Z
No edit summary
 
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
[[Category:Post-It]]
[[Category:Post-It]]


Mount the media, then go in bootfs partition :
Mount the media, then go in bootfs partition :
Line 6: Line 5:
  <nowiki>
  <nowiki>
cd /media/.../bootfs/</nowiki>
cd /media/.../bootfs/</nowiki>


== User Setup ==
== User Setup ==
Line 18: Line 19:
  <nowiki>
  <nowiki>
cat userconf.txt
cat userconf.txt
USERNAME:$6$x39r60kfblJs3JJY$tHgLeefg1A.2kpZitnSzx4zd8jb0PgBtnC7mw/IFyw2jDefLUdsz0jdb3cPNO5SZPIQuWPIV0Y/wW6vvm1qwp.<nowiki>
USERNAME:$6$x39r60kfblJs3JJY$tHgLeefg1A.2kpZitnSzx4zd8jb0PgBtnC7mw/IFyw2jDefLUdsz0jdb3cPNO5SZPIQuWPIV0Y/wW6vvm1qwp.</nowiki>




Line 26: Line 27:


  <nowiki>
  <nowiki>
touch ssh<nowiki>
touch ssh</nowiki>




Line 52: 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