-
-
Save MarkHowell1961/e81b6aa50e72d6d14049b091fd267d23 to your computer and use it in GitHub Desktop.
Revisions
-
Overemployed revised this gist
Jun 22, 2023 . 1 changed file with 2 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -27,8 +27,8 @@ fi cat > /etc/systemd/system/jack.conf <<EOF JACK_NO_AUDIO_RESERVATION=1 JACK_OPTS=-d alsa $AUDIO_DEVICE -r 44100 -p $BUFFER_SIZE JACKTRIP_OPTS=-C $REMOTE_JACK_SERVER -n 1 --remotename $JOB_NAME EOF cat > /etc/systemd/system/jackd.service <<EOF -
Overemployed revised this gist
Jun 22, 2023 . 1 changed file with 2 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -27,8 +27,8 @@ fi cat > /etc/systemd/system/jack.conf <<EOF JACK_NO_AUDIO_RESERVATION=1 JACK_OPTS='-d alsa $AUDIO_DEVICE -r 44100 -p $BUFFER_SIZE' JACKTRIP_OPTS='-C $REMOTE_JACK_SERVER -n 1 --remotename $JOB_NAME' EOF cat > /etc/systemd/system/jackd.service <<EOF -
Overemployed revised this gist
Jun 22, 2023 . 1 changed file with 22 additions and 10 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,3 +1,11 @@ #!/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 @@ -7,9 +15,15 @@ BUFFER_SIZE=1024 # -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 <<EOF JACK_NO_AUDIO_RESERVATION=1 @@ -21,18 +35,16 @@ cat > /etc/systemd/system/jackd.service <<EOF [Unit] Description=jackd After=sound.target [Service] User=jacktrip Type=simple LimitRTPRIO=infinity LimitMEMLOCK=infinity LimitRTTIME=infinity EnvironmentFile=/etc/systemd/system/jack.conf ExecStart=/usr/bin/jackd \$JACK_OPTS Restart=always RestartSec=2s [Install] WantedBy=multi-user.target EOF @@ -42,7 +54,6 @@ cat > /etc/systemd/system/jacktrip.service <<EOF Description=jacktrip Requires=jackd.service After=network.target jackd.service [Service] User=jacktrip Type=simple @@ -51,16 +62,17 @@ LimitMEMLOCK=infinity LimitRTTIME=infinity EnvironmentFile=/etc/systemd/system/jack.conf ExecStartPre=jack_wait -w -t 5 ExecStart=/usr/bin/jacktrip \$JACKTRIP_OPTS Restart=always RestartSec=2s [Install] WantedBy=multi-user.target EOF systemctl daemon-reload systemctl enable jackd.service systemctl enable jacktrip.service systemctl start jackd.service systemctl start jacktrip.service -
Overemployed revised this gist
Jul 20, 2022 . 1 changed file with 1 addition and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -12,6 +12,7 @@ pacman -S jack2 jacktrip njconnect jack-example-tools useradd -M -r jacktrip -G audio cat > /etc/systemd/system/jack.conf <<EOF JACK_NO_AUDIO_RESERVATION=1 JACK_OPTS=-d alsa $AUDIO_DEVICE -r 44100 -p $BUFFER_SIZE JACKTRIP_OPTS=-C $REMOTE_JACK_SERVER -n 1 --remotename $JOB_NAME EOF -
Overemployed created this gist
Jul 20, 2022 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,65 @@ # 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 -Sy pacman -S jack2 jacktrip njconnect jack-example-tools useradd -M -r jacktrip -G audio cat > /etc/systemd/system/jack.conf <<EOF JACK_OPTS=-d alsa $AUDIO_DEVICE -r 44100 -p $BUFFER_SIZE JACKTRIP_OPTS=-C $REMOTE_JACK_SERVER -n 1 --remotename $JOB_NAME EOF cat > /etc/systemd/system/jackd.service <<EOF [Unit] Description=jackd After=sound.target [Service] User=jacktrip Type=simple LimitRTPRIO=infinity LimitMEMLOCK=infinity LimitRTTIME=infinity EnvironmentFile=/etc/systemd/system/jack.conf ExecStart=/usr/bin/jackd $JACK_OPTS Restart=always RestartSec=2s [Install] WantedBy=multi-user.target EOF cat > /etc/systemd/system/jacktrip.service <<EOF [Unit] Description=jacktrip Requires=jackd.service After=network.target jackd.service [Service] User=jacktrip Type=simple LimitRTPRIO=infinity LimitMEMLOCK=infinity LimitRTTIME=infinity EnvironmentFile=/etc/systemd/system/jack.conf ExecStartPre=jack_wait -w -t 5 ExecStart=/usr/bin/jacktrip $JACKTRIP_OPTS Restart=always RestartSec=2s [Install] WantedBy=multi-user.target EOF systemctl enable jackd.service systemctl enable jacktrip.service systemctl start jackd.service systemctl start jacktrip.service