From 24b41ac760eda3a5094d1c013c8fa3730a0cf49c Mon Sep 17 00:00:00 2001 From: Assistant builder Date: Thu, 11 Jun 2026 14:24:21 +0000 Subject: [PATCH] Bootstrap Pi system packages (portaudio, sndfile, venv) --- bin/bootstrap | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 bin/bootstrap diff --git a/bin/bootstrap b/bin/bootstrap new file mode 100644 index 0000000..8437b2f --- /dev/null +++ b/bin/bootstrap @@ -0,0 +1,15 @@ +#!/usr/bin/env bash +# Install Pi-side system packages required by the test projects. +# Idempotent — safe to re-run. apt-get only installs what's missing. + +set -euo pipefail + +PI_USER="${PI_USER:-pi}" +PI_HOST="${PI_HOST:-192.168.50.115}" +PI_PASS="${PI_PASS:-assistant}" + +sshpass -p "$PI_PASS" ssh -o StrictHostKeyChecking=accept-new \ + "$PI_USER@$PI_HOST" \ + "echo '$PI_PASS' | sudo -S -p '' apt-get update -qq && \ + echo '$PI_PASS' | sudo -S -p '' apt-get install -y --no-install-recommends libportaudio2 libsndfile1 python3-venv" \ + 2>&1 | sed -E "s/${PI_PASS}/***/g"