backend setup script and service sample

This commit is contained in:
Mikkeli Matlock
2026-01-26 11:41:04 +09:00
parent 60a1c1811e
commit 2a379ede20
2 changed files with 83 additions and 6 deletions

View File

@@ -42,19 +42,19 @@ Called automatically by `build.py`. Looks for theme matching `navigator` in `con
| Script | Purpose |
|--------|---------|
| `pi_setup.sh` | First-time Pi config (deps, permissions, UI systemd service) |
| `pi_setup.sh` | First-time Pi config for UI (deps, permissions, systemd) |
| `pi_setup_backend.sh` | First-time Pi config for backend (uv, gpsd, systemd) |
| `smartserow-ui.service.sample` | UI systemd unit template |
| `smartserow-backend.service.sample` | Backend systemd unit template |
```bash
# On the Pi (UI)
# On the Pi - UI setup
chmod +x pi_setup.sh
./pi_setup.sh
# Backend service (manual for now)
sudo cp smartserow-backend.service.sample /etc/systemd/system/smartserow-backend.service
sudo systemctl daemon-reload
sudo systemctl enable smartserow-backend
# On the Pi - Backend setup (independent)
chmod +x pi_setup_backend.sh
./pi_setup_backend.sh
```
## Configuration