Readme update
This commit is contained in:
parent
26ea541e37
commit
9b4ce2932e
39
README.md
39
README.md
@ -10,44 +10,11 @@ Il peut etre transporté ou etre utilisé dans un magasin pour vendre un service
|
||||
|
||||
Le script peut aussi se lancer sur un ordinateur linux ayant accès à un lecteur nfc acr122u
|
||||
|
||||
## Dépendances du script :
|
||||
- [Python 3.x](https://www.python.org/downloads/) : Qui permet de lancer le script.
|
||||
- [Librarie Python Flask](https://pypi.org/project/Flask/) : Qui permet de mettre en place un serveur web et donc l'interface graphique dans ce projet.
|
||||
- [Libnfc](http://nfc-tools.org/index.php/Libnfc)
|
||||
- [MFOC](https://github.com/nfc-tools/mfoc)
|
||||
|
||||
## Installation :
|
||||
Après avoir installé Python3.x, vous devez installer la librairie Flask.
|
||||
Lancement du script d'installation :
|
||||
```sh
|
||||
python3 -m pip install flask
|
||||
```
|
||||
Vous pouvez ensuite télécharger le projet.
|
||||
Pour que le script fonctionne correctement vous devez désactiver 2 modules (il est aussi possible d'enlever ces modules de facon permanente, un exemple [ici]( https://wiki.archlinux.org/index.php/Touchatag_RFID_Reader)).
|
||||
```sh
|
||||
sudo modprobe -r pn533_usb pn533
|
||||
```
|
||||
Mfoc et LibNFC peuvent etre installer avec ces commandes :
|
||||
```sh
|
||||
sudo apt install libnfc*
|
||||
sudo apt install mfoc
|
||||
```
|
||||
Pour lancer le projet au lancement du raspberry :
|
||||
```sh
|
||||
sudo nano /etc/xdg/lxsession/LXDE-pi/autostart
|
||||
```
|
||||
et vous devez ajouter ces commandes (vous pouvez ensuite fermer le fichier) :
|
||||
```
|
||||
@sh /home/pi/launcher.sh &
|
||||
@chromium-browser --incognito --kiosk http://localhost:5000
|
||||
```
|
||||
Pour finir il faut créer le fichier launcher.sh
|
||||
```sh
|
||||
nano ~/launcher.sh
|
||||
```
|
||||
et y ajouter ce texte :
|
||||
```
|
||||
cd /home/pi/BadgeCloner
|
||||
python3 server.py
|
||||
chmod +x install.sh
|
||||
./install.sh
|
||||
```
|
||||
## Configuration :
|
||||
Vous pouvez changer le nom du répertoire des dumps avec la variable
|
||||
|
||||
@ -1,5 +1,7 @@
|
||||
#!/bin/sh
|
||||
|
||||
cd ~
|
||||
|
||||
# Installer git si ce n'est pas déjà fait
|
||||
command -v git >/dev/null 2>&1 || { echo >&2 "Git n'est pas installé. Installation..."; sudo apt-get install git; }
|
||||
|
||||
@ -31,7 +33,7 @@ make distclean
|
||||
sudo make install
|
||||
|
||||
# Retourner au répertoire d'origine
|
||||
cd .
|
||||
cd ~
|
||||
|
||||
# Compilation de mfoc
|
||||
cd mfoc
|
||||
@ -40,7 +42,7 @@ autoreconf -is
|
||||
make && sudo make install
|
||||
|
||||
# Retourner au répertoire d'origine
|
||||
cd .
|
||||
cd ~
|
||||
|
||||
sudo ldconfig
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user