maj readme.md

This commit is contained in:
icon 2022-09-01 10:39:46 +04:00
parent 23524b9491
commit 2c7bf9ecfa
1 changed files with 33 additions and 13 deletions

View File

@ -1,4 +1,31 @@
# VMA 405 # Installation du Cashless sur le pi
## 1 - Cloner le projet
## 2 - Créer une image
- PI OS Lite LEGACY
- Utilisateur = sysop
- Wifi
- SSH
Attention, penser à mettre votre clef publique sur le pi (ssh-copy)
## 3 - Ansible(hôte) inventaire des pi
```
sudo nano /etc/ansible/hosts
```
```
[rpiDsi]
pi1 ansible_host=192.168.1.11 hostname=pi1 token=xxxxxxxxxxxx password=xxxxxxxxxxxx frontType=FPI serveur=nom_de_domain(+port si besoin) protocole=http(ou https)
pi2 ansible_host=192.168.1.6 hostname=pi2 token=xxxxxxxxxxxx password=xxxxxxxxxxxx frontType=FPI serveur=nom_de_domain(+port si besoin) protocole=http(ou https)
```
## 4 - Ansible(hôte) installation
- A la racine du projet
```
ansible-playbook install_1024x600_vma405_chromium.yml -K
```
# Informations
## Pin raspberry pi 3 b+
<table> <table>
<tbody> <tbody>
<tr> <tr>
@ -10,6 +37,7 @@
</tbody> </tbody>
</table> </table>
## Cablage VMA405 ou RC522
<table> <table>
<tbody> <tbody>
<tr> <tr>
@ -40,13 +68,7 @@
<tbody> <tbody>
</table> </table>
## splash screen (écran de boot)
# installation de node js (ansible)
install_1024x600_vma405_chromium.yml
# splash screen (écran de boot = pub)
``` ```
sudo cp splash.png /usr/share/plymouth/themes/pix/splash.png sudo cp splash.png /usr/share/plymouth/themes/pix/splash.png
sudo cp splash.png /usr/share/plymouth/themes/pix/splash.png sudo cp splash.png /usr/share/plymouth/themes/pix/splash.png
@ -80,7 +102,7 @@ WantedBy=sysinit.target
sudo systemctl enable splashscreen.service sudo systemctl enable splashscreen.service
sudo systemctl start splashscreen.service sudo systemctl start splashscreen.service
# /ext/xdg/openbox/autostart ## /ext/xdg/openbox/autostart
``` ```
#/etc/xdg/openbox/ #/etc/xdg/openbox/
DISPLAY=:0 xdotool getactivewindow key F5 DISPLAY=:0 xdotool getactivewindow key F5
@ -107,9 +129,7 @@ node serveur_nfc.js
``` ```
# /home/sysop/.bashrc (ajouter) ## /home/sysop/.bashrc (ajouter)
``` ```
[[ -z $DISPLAY && $XDG_VTNR -eq 1 ]] && startx -- -nocursor [[ -z $DISPLAY && $XDG_VTNR -eq 1 ]] && startx -- -nocursor
``` ```
# L'automatisation de l'install par ansible est en cours !!!