ich geh behindert
This commit is contained in:
@@ -217,139 +217,19 @@ sudo systemctl enable myp-kiosk.service
|
||||
### Lokaler Zugriff
|
||||
|
||||
- **HTTPS**: `https://localhost:443`
|
||||
- **HTTP (Entwicklung)**: `http://localhost:5000`
|
||||
- **HTTP (Entwicklung)**: `http://localhost:5000` (--debug)
|
||||
|
||||
### Netzwerk-Zugriff
|
||||
|
||||
- **HTTPS**: `https://<raspberry-pi-ip>:443`
|
||||
|
||||
### Remote-Zugang (falls konfiguriert)
|
||||
|
||||
- **SSH**: `ssh user@<raspberry-pi-ip>` (Passwort: `raspberry`)
|
||||
- **RDP**: `<raspberry-pi-ip>:3389` (Benutzer: `root`, Passwort: `744563017196A`)
|
||||
- **HTTPS**: `https://192.168.0.105:443` (LAN)
|
||||
|
||||
### Standard-Anmeldedaten
|
||||
|
||||
- **Benutzername**: `admin`
|
||||
- **Passwort**: `admin123`
|
||||
- **Benutzername**: `admin@mercedes-benz.com`
|
||||
- **Passwort**: `744563017196A`
|
||||
|
||||
⚠️ **Wichtig**: Ändern Sie das Standard-Passwort nach der ersten Anmeldung!
|
||||
|
||||
## 🔧 Konfiguration
|
||||
|
||||
### Umgebungsvariablen
|
||||
|
||||
```bash
|
||||
# Produktionsumgebung
|
||||
export FLASK_ENV=production
|
||||
export FLASK_HOST=0.0.0.0
|
||||
export FLASK_PORT=443
|
||||
|
||||
# Entwicklungsumgebung
|
||||
export FLASK_ENV=development
|
||||
export FLASK_HOST=127.0.0.1
|
||||
export FLASK_PORT=5000
|
||||
```
|
||||
|
||||
### SSL-Konfiguration
|
||||
|
||||
```bash
|
||||
# Automatische Zertifikat-Generierung
|
||||
python3 utils/ssl_config.py /opt/myp
|
||||
|
||||
# Manuelle Zertifikat-Erneuerung
|
||||
python3 utils/ssl_config.py /opt/myp --force
|
||||
```
|
||||
|
||||
### Drucker-Konfiguration
|
||||
|
||||
1. **Admin-Panel** → **Drucker** → **Neuer Drucker**
|
||||
2. IP-Adresse und TP-Link Tapo-Zugangsdaten eingeben
|
||||
3. Drucker-Test durchführen
|
||||
4. Smart-Plug-Integration aktivieren
|
||||
|
||||
## 📊 Überwachung
|
||||
|
||||
### Service-Status
|
||||
|
||||
```bash
|
||||
# HTTPS-Service
|
||||
sudo systemctl status myp-https.service
|
||||
sudo journalctl -u myp-https -f
|
||||
|
||||
# Kiosk-Service
|
||||
sudo systemctl status myp-kiosk.service
|
||||
sudo journalctl -u myp-kiosk -f
|
||||
|
||||
# Watchdog-Service
|
||||
sudo systemctl status kiosk-watchdog.service
|
||||
sudo tail -f /var/log/kiosk-watchdog.log
|
||||
```
|
||||
|
||||
### System-Tests
|
||||
|
||||
```bash
|
||||
# HTTPS-Erreichbarkeit
|
||||
curl -k https://localhost:443
|
||||
|
||||
# SSL-Zertifikat prüfen
|
||||
openssl s_client -connect localhost:443 -servername localhost
|
||||
|
||||
# Automatische Tests mit setup.sh
|
||||
sudo ./setup.sh # Option 5: System-Test
|
||||
```
|
||||
|
||||
### Log-Dateien
|
||||
|
||||
```bash
|
||||
# Anwendungslogs
|
||||
tail -f logs/app/app.log
|
||||
tail -f logs/auth/auth.log
|
||||
tail -f logs/printers/printers.log
|
||||
|
||||
# Systemlogs
|
||||
sudo journalctl -u myp-https -f
|
||||
sudo tail -f /var/log/kiosk-watchdog.log
|
||||
|
||||
# Installationslog
|
||||
sudo tail -f /var/log/myp-install.log
|
||||
```
|
||||
|
||||
## 🛠️ Entwicklung
|
||||
|
||||
### Entwicklungsserver starten
|
||||
|
||||
```bash
|
||||
# HTTP-Entwicklungsserver (Port 5000)
|
||||
python app.py --debug
|
||||
|
||||
# HTTPS-Produktionsserver (Port 443)
|
||||
python app.py
|
||||
```
|
||||
|
||||
### Frontend-Entwicklung
|
||||
|
||||
```bash
|
||||
# TailwindCSS im Watch-Modus
|
||||
npm run watch:css
|
||||
|
||||
# CSS kompilieren
|
||||
npm run build:css
|
||||
|
||||
# Alle Assets bauen
|
||||
npm run build
|
||||
```
|
||||
|
||||
### Datenbank-Management
|
||||
|
||||
```bash
|
||||
# Datenbank initialisieren
|
||||
python -c "from models import init_database; init_database()"
|
||||
|
||||
# Backup erstellen
|
||||
python -c "from utils.backup_manager import BackupManager; BackupManager().create_backup()"
|
||||
```
|
||||
|
||||
## 🔒 Sicherheit
|
||||
|
||||
### SSL/TLS
|
||||
@@ -370,85 +250,7 @@ python -c "from utils.backup_manager import BackupManager; BackupManager().creat
|
||||
|
||||
- **Minimale X11-Umgebung** ohne Desktop
|
||||
- **Kiosk-User** ohne Sudo-Rechte
|
||||
- **Systemd-Service-Isolation**
|
||||
- **Read-only Systempartitionen** (optional)
|
||||
|
||||
## 📚 Dokumentation
|
||||
|
||||
### Detaillierte Anleitungen
|
||||
|
||||
- [`docs/SETUP_ANLEITUNG.md`](docs/SETUP_ANLEITUNG.md) - Konsolidiertes Setup-System
|
||||
- [`docs/INSTALLATION_DEBIAN_KIOSK.md`](docs/INSTALLATION_DEBIAN_KIOSK.md) - Vollständige Kiosk-Installation
|
||||
- [`docs/API_DOCUMENTATION.md`](docs/API_DOCUMENTATION.md) - API-Referenz
|
||||
- [`docs/CONFIGURATION.md`](docs/CONFIGURATION.md) - Konfigurationsoptionen
|
||||
- [`docs/TROUBLESHOOTING.md`](docs/TROUBLESHOOTING.md) - Fehlerbehebung
|
||||
|
||||
### API-Endpunkte
|
||||
|
||||
- **Authentifizierung**: `/auth/login`, `/auth/logout`
|
||||
- **Drucker**: `/api/printers`, `/api/printers/{id}`
|
||||
- **Jobs**: `/api/jobs`, `/api/jobs/{id}`
|
||||
- **Benutzer**: `/api/users`, `/api/users/{id}`
|
||||
- **Dashboard**: `/api/dashboard/refresh`, `/api/stats`
|
||||
|
||||
## 🐛 Fehlerbehebung
|
||||
|
||||
### Häufige Probleme
|
||||
|
||||
#### HTTPS nicht erreichbar
|
||||
|
||||
```bash
|
||||
# Service-Status prüfen
|
||||
sudo systemctl status myp-https.service
|
||||
|
||||
# SSL-Zertifikate neu generieren
|
||||
sudo python3 utils/ssl_config.py /opt/myp --force
|
||||
sudo systemctl restart myp-https.service
|
||||
|
||||
# Oder mit setup.sh
|
||||
sudo ./setup.sh # Option 1 für Zertifikat-Neugenerierung
|
||||
```
|
||||
|
||||
#### Kiosk-Browser startet nicht
|
||||
|
||||
```bash
|
||||
# X-Server prüfen
|
||||
ps aux | grep X
|
||||
|
||||
# Browser manuell starten
|
||||
sudo su - kiosk
|
||||
DISPLAY=:0 chromium --kiosk https://localhost:443
|
||||
|
||||
# Service-Status prüfen
|
||||
sudo systemctl status myp-kiosk.service
|
||||
```
|
||||
|
||||
#### Hohe Speichernutzung
|
||||
|
||||
```bash
|
||||
# Browser-Cache leeren
|
||||
sudo rm -rf /home/kiosk/.chromium-kiosk/Default/Cache/*
|
||||
|
||||
# System-Cache leeren
|
||||
sudo sync && sudo echo 3 > /proc/sys/vm/drop_caches
|
||||
|
||||
# Watchdog überwacht automatisch Speichernutzung
|
||||
sudo journalctl -u kiosk-watchdog -f
|
||||
```
|
||||
|
||||
### Support
|
||||
|
||||
Bei Problemen:
|
||||
|
||||
1. **System-Test durchführen**: `sudo ./setup.sh` → Option 5
|
||||
2. **Log-Bundle erstellen**:
|
||||
|
||||
```bash
|
||||
sudo tar -czf myp-logs-$(date +%Y%m%d).tar.gz \
|
||||
logs/ \
|
||||
/var/log/kiosk-watchdog.log \
|
||||
/var/log/myp-install.log
|
||||
```
|
||||
- Chromium-Kiosk: Beschränkungen implementiert in Browserinstanz selbst
|
||||
|
||||
## 🔄 Updates
|
||||
|
||||
|
Reference in New Issue
Block a user