====== Installation d'un nouveau module ======
{{ :documentation:materiel:raspberry:pasted:20230313-090854.png?0x200 }}
- Installer l'image avec imager sur linux Lite Os 32b
- booter le raspberry en branchant le clavier et un écran
- executer raspiconfig pour paramétrer le raspberry
- langue
- wifi
- clavier
- timezone
- ssh
- Ip
- MAJ
- apt-get update
- apt-get dist-upgrade
- Installation des outils
- node-red
===== Installation de node-red =====
sudo apt install build-essential git curl
bash <(curl -sL https://raw.githubusercontent.com/node-red/linux-installers/master/deb/update-nodejs-and-nodered)
install sqlite in node-red
node-red admin init
node-red-pi --max-old-space-size=256
sudo systemctl enable nodered.service
sudo systemctl disable nodered.service
cmdline.txt
smsc95xx.macaddr=02:00:00:fc:10:98
raspi-config
clavier
timsezone localisation
ssh
wifi
Langue clavier
===== userconf =====
- créer un fichier userconf (icaging)
- générer un mot de passe :
echo 'yourpassword' | openssl passwd -6 -stdin
echo 'icaging1234' | openssl passwd -6 -stdin
$6$iVsE2XacZgO5w6GX$E25CeM5q0.MAZ9SUsllVqgE9f8avWJ4MPPHHyWg7ie9rdTAq3LUzbWNehHKxszCpK4Yx2EWR5LTt305Uf3g2H/
echo 'icaging1234' | openssl passwd -6 -stdin
$6$iVsE2XacZgO5w6GX$E25CeM5q0.MAZ9SUsllVqgE9f8avWJ4MPPHHyWg7ie9rdTAq3LUzbWNehHKxszCpK4Yx2EWR5LTt305Uf3g2H/
===== Activer le wifi =====
- Créer un fichier sur la parition boot : wpa_supplicant.conf
country=FR
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1
network={
scan_ssid=1
ssid="icaging"
psk="icaging$!"
}