Update README.md
This commit is contained in:
parent
1c9780d052
commit
2a7c601b42
22
README.md
22
README.md
@ -16,10 +16,18 @@ Frontend (sqlite.py) basiert auf https://github.com/tonypdavis/Raspberry-Pi-Barc
|
|||||||
**Achtung: Frontend und Scan-Service müssen auf die gleiche Datenbankdatei konfiguriert werden!**
|
**Achtung: Frontend und Scan-Service müssen auf die gleiche Datenbankdatei konfiguriert werden!**
|
||||||
|
|
||||||
## Installation
|
## Installation
|
||||||
|
Siehe auch https://pypi.org/project/cysystemd/
|
||||||
|
|
||||||
|
Fedora:
|
||||||
```
|
```
|
||||||
dnf install -y systemd-devel python3-venv
|
dnf install -y systemd-devel python3-venv
|
||||||
sudo usermod -G dialout -a $USER #den aktuellen User zu dialout hinzufügen
|
sudo usermod -G dialout -a $USER #den aktuellen User zu dialout hinzufügen
|
||||||
```
|
```
|
||||||
|
Ubuntu:
|
||||||
|
```
|
||||||
|
apt install build-essential libsystemd-dev systemd-dev python3-venv
|
||||||
|
sudo usermod -G dialout -a $USER #den aktuellen User zu dialout hinzufügen
|
||||||
|
```
|
||||||
|
|
||||||
```
|
```
|
||||||
cd /opt/
|
cd /opt/
|
||||||
@ -60,16 +68,28 @@ journalctl -f -u usb-scanner.service
|
|||||||
```
|
```
|
||||||
|
|
||||||
Datenbank per Shell leeren:
|
Datenbank per Shell leeren:
|
||||||
|
Fedora:
|
||||||
```
|
```
|
||||||
sudo dnf install sqlite3
|
sudo dnf install sqlite3
|
||||||
|
```
|
||||||
|
Ubuntu:
|
||||||
|
```
|
||||||
|
sudo apt install sqlite3
|
||||||
|
```
|
||||||
|
```
|
||||||
sqlite3 kugelstossmeeting-prod.db "DELETE FROM tickets;"
|
sqlite3 kugelstossmeeting-prod.db "DELETE FROM tickets;"
|
||||||
sqlite3 kugelstossmeeting-prod.db "DELETE FROM scans;"
|
sqlite3 kugelstossmeeting-prod.db "DELETE FROM scans;"
|
||||||
sqlite3 kugelstossmeeting-test.db "VACUUM;"
|
sqlite3 kugelstossmeeting-test.db "VACUUM;"
|
||||||
```
|
```
|
||||||
|
|
||||||
Datenbank per DB Browser for SQLite bearbeiten/ansehen:
|
Datenbank per DB Browser for SQLite bearbeiten/ansehen:
|
||||||
|
Fedora:
|
||||||
```
|
```
|
||||||
sudo apt-get install sqlitebrowser
|
sudo dnf install sqlitebrowser
|
||||||
|
```
|
||||||
|
Ubuntu:
|
||||||
|
```
|
||||||
|
sudo apt install sqlitebrowser
|
||||||
```
|
```
|
||||||
GUI starten:
|
GUI starten:
|
||||||
```
|
```
|
||||||
|
Loading…
x
Reference in New Issue
Block a user