Installation
Audience: Deployment Administrator Related: Raspberry Pi · Gcp · Environment And Secrets · First Run
Use the repository deployment scripts for a new installation. They install the required operating-system packages, create or update the Python virtual environment, prepare /etc/blackcap/blackcap.env, initialize configuration, install systemd units, run idempotent database migrations, and configure scheduled operations.
Use tools/deploy_pi.sh for a Raspberry Pi server and tools/deploy_gcp.sh for a GCP application host. Review the target-specific guide before running a script. Never commit the generated environment file or provider credentials.
Raspberry Pi
cd /home/pi/Blackcap-Pi
sudo ./tools/deploy_pi.sh
The script prompts for the service user, public URL, menu schedule, local e-ink role, remote Let’s Cook watcher, package installation, stunnel, and Gunicorn proxy behavior.
GCP
cd /opt/Blackcap
sudo ./tools/deploy_gcp.sh
The script prompts for the Cloud SQL connection, PostgreSQL credentials, private-IP use, public hostname, Nginx/HTTPS setup, certificate automation, schedules, and remote Let’s Cook watcher.
Manual verification
sudo systemctl status inky_admin.service --no-pager
sudo journalctl -u inky_admin.service -n 100 --no-pager