Files
photobooth/scripts/install.sh
Jules c8e4ec80c1 Init photobooth - borne photo evenementielle RPi4
Backend FastAPI complet : camera gphoto2, filtres/overlays Pillow,
chroma key OpenCV, multi-shot/collage, GIF, impression CUPS, email SMTP,
QR code. Frontend web vanilla (HTML/CSS/JS) pour Chromium kiosk.
Menu admin cache (appui long coin ecran). Toutes les fonctionnalites
activables/desactivables. Scripts install + systemd pour RPi4.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-21 21:46:31 +01:00

40 lines
970 B
Bash

#!/bin/bash
# Installation du photobooth sur Raspberry Pi 4
set -e
echo "=== Installation Photobooth ==="
# Mise a jour systeme
sudo apt update && sudo apt upgrade -y
# Dependances systeme
sudo apt install -y \
python3 python3-pip python3-venv \
libgphoto2-dev \
cups libcups2-dev \
chromium-browser \
libopencv-dev python3-opencv \
unclutter
# Creer le venv
cd "$(dirname "$0")/.."
python3 -m venv .venv
source .venv/bin/activate
# Installer les dependances Python
pip install -r backend/requirements.txt
# Creer les dossiers de donnees
mkdir -p data/photos data/exports
mkdir -p frontend/assets/overlays frontend/assets/backgrounds frontend/assets/sounds
# Installer le service systemd
sudo cp scripts/photobooth.service /etc/systemd/system/
sudo systemctl daemon-reload
sudo systemctl enable photobooth
echo ""
echo "=== Installation terminee ==="
echo "Demarrer avec : sudo systemctl start photobooth"
echo "Ou manuellement : ./scripts/start.sh"