- tripleboot-install.sh : partitionnement + 3x debootstrap automatisé - install-x86.sh : installation appli adaptée x86 - setup-kiosk.sh : auto-login + Chromium kiosk tactile - photobooth-x86.service : service systemd x86 - install-tripleboot.md : guide d'installation Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
61 lines
1.5 KiB
Bash
61 lines
1.5 KiB
Bash
#!/bin/bash
|
|
# Installation du photobooth sur Debian 13 x86_64 (Terra portable tactile)
|
|
set -e
|
|
|
|
echo "=== Installation Photobooth - Debian 13 x86_64 ==="
|
|
|
|
# Mise a jour systeme
|
|
sudo apt update && sudo apt upgrade -y
|
|
|
|
# Dependances systeme
|
|
sudo apt install -y \
|
|
python3 python3-pip python3-venv \
|
|
libgphoto2-dev gphoto2 \
|
|
cups libcups2-dev \
|
|
chromium \
|
|
libopencv-dev python3-opencv \
|
|
unclutter-xfixes \
|
|
git \
|
|
xinput \
|
|
xdotool
|
|
|
|
# Repertoire du projet
|
|
APP_DIR="/home/jules/photobooth"
|
|
|
|
# Cloner ou mettre a jour le depot
|
|
if [ -d "$APP_DIR" ]; then
|
|
echo "Mise a jour du depot..."
|
|
cd "$APP_DIR"
|
|
git pull
|
|
else
|
|
echo "Clonage du depot..."
|
|
git clone https://git.copydev.fr/jules/photobooth.git "$APP_DIR"
|
|
cd "$APP_DIR"
|
|
fi
|
|
|
|
# Creer le venv
|
|
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-x86.service /etc/systemd/system/photobooth.service
|
|
sudo systemctl daemon-reload
|
|
sudo systemctl enable photobooth
|
|
|
|
# Configurer l'auto-login en mode kiosk
|
|
echo ""
|
|
echo "=== Configuration auto-login kiosk ==="
|
|
sudo bash scripts/setup-kiosk.sh
|
|
|
|
echo ""
|
|
echo "=== Installation terminee ==="
|
|
echo "Redemarrer pour lancer le photobooth automatiquement"
|
|
echo "Ou manuellement : ./scripts/start.sh"
|