Files
castbox-provisioning/README.md

1.9 KiB

how the gold image was created

  • use base-image that was created with pi-gen_auracaster sudo apt update && sudo apt upgrade -y

git clone https://gitea.pstruebi.xyz/auracaster/bumble-auracast

sudo apt install -y pipewire wireplumber pipewire-audio-client-libraries rtkit cpufrequtils

mkdir -p ~/.config/pipewire/pipewire.conf.d cp ~/bumble-auracast/src/service/pipewire/99-lowlatency.conf ~/.config/pipewire/pipewire.conf.d/

sudo cpufreq-set -g performance poetry config virtualenvs.in-project true

sudo cp ~/bumble-auracast/src/service/aes67/90-pipewire-aes67-ptp.rules /etc/udev/rules.d/ sudo udevadm control --log-priority=debug --reload-rules sudo udevadm trigger

/etc/modprobe.d/usb-audio-lowlatency.conf option snd_usb_audio nrpacks=1

sudo bash ~/bumble-auracast/src/auracast/server/provision_domain_hostname.sh castbox-summitwave local

  • password was changed to something secure - stored in bitwarden

sudo tee /etc/ssh/sshd_config.d/10-disable-passwords.conf >/dev/null <<'EOF' PubkeyAuthentication yes PasswordAuthentication no KbdInteractiveAuthentication no ChallengeResponseAuthentication no PermitRootLogin no EOF

sudo systemctl reload ssh ssh -o PreferredAuthentications=password -o PubkeyAuthentication=no pi@raspi.local

per-device Provisioning

For production, the devices need to be provisoned uniquely

  • provision with rpi-sb-provisioner
  • after initial provisioning using ssh:
    • install vpn with a unique configuration under /etc/wireguard/wg0.conf
    • wg-quick up wg0
    • enable wg0 service
    • set the hostname
    • if custom device without ui:
      • set channel name etc. in bumble-auracast/src/auracast/.env
    • execute the update service scripts
    • start the application (script if custom device, server and frontend if ui version)
    • activate overlayfs (?)