#!/bin/bash # Check if script is running as root if [ "$EUID" -ne 0 ] then echo "Please run as root" exit fi # your personal machine running jacktrip REMOTE_JACK_SERVER=nat.local # change to any name to identify this jacktrip client JOB_NAME=J1 BUFFER_SIZE=1024 # -d hw:1,0 for pikvm v3 hat # -d hw:0,0 for others AUDIO_DEVICE=-d hw:1,0 pacman -Syu pacman -S --needed jack2 jacktrip njconnect jack-example-tools # Checking if user 'jacktrip' already exists if id "jacktrip" &>/dev/null; then echo "User 'jacktrip' already exists. Skipping user creation." else useradd -M -r jacktrip -G audio fi cat > /etc/systemd/system/jack.conf < /etc/systemd/system/jackd.service < /etc/systemd/system/jacktrip.service <