-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstall.sh
executable file
·27 lines (24 loc) · 1.05 KB
/
install.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/bin/bash
BASEPATH="$(dirname "$(readlink -f "$0")")"
echo "$BASEPATH"
cd "$BASEPATH"
pacman -S ffmpeg --noconfirm --needed
pip install -r requirements.txt
ln -sf "$BASEPATH/[email protected]" /etc/systemd/system/
ln -sf "$BASEPATH/bootlab-tx" /usr/local/bin/
ln -sf "$BASEPATH/[email protected]" /etc/systemd/system/
ln -sf "$BASEPATH/bootlab-rx" /usr/local/bin/
ln -sf "$BASEPATH/[email protected]" /etc/systemd/system/
ln -sf "$BASEPATH/bootlab-rec" /usr/local/bin/
ln -sf "$BASEPATH/[email protected]" /etc/systemd/system/
ln -sf "$BASEPATH/bootlab-tunnel" /usr/local/bin/
systemctl daemon-reload
FILE=/boot/starter.txt
if test -f "$FILE"; then
echo "## [BootLab] audio tx-rx
# bootlab-tx@channel:password # send audio flux from USB audio in to Bootlab server
# bootlab-rx@channel # play audio flux from Bootlab server
# bootlab-rec@channel # record audio flux from Bootlab server on /mnt/usb0
# bootlab-tunnel@ubuntu:boot.telemir.fr:22:2222 # establish ssh tunnel with Bootlab server
" >> /boot/starter.txt
fi