-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup_livecam.sh
executable file
·34 lines (27 loc) · 1.13 KB
/
setup_livecam.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
27
28
29
30
31
32
33
34
#!/bin/bash
cd avc2ts
sudo apt install -y libavcodec-dev libavformat-dev libswscale-dev libavutil-dev libavdevice-dev libvncserver-dev
# Git does not allow git:// URLs anymore, so replace them with the https equivalent.
sed -i 's/git:\/\//https:\/\//g' preinstall.sh
./preinstall.sh || { echo 'AVC2TS preinstall failed' ; exit 1; }
make || { echo 'avc2ts build failed' ; exit 1; }
sudo cp avc2ts /usr/local/bin
cd ..
cd rist-installer
cd deb
sudo ./install-prerequisites.sh
sudo ./build.sh
cd ../installers
sudo dpkg -i $(ls librist*) || echo 'dpkg librist failed;'
cd ../..
cd tsduck/
sudo ./install-prerequisites.sh
sudo apt install dkms libelf-dev
cd buster
sudo dpkg -i $(ls tsduck*) || { echo 'dpkg tsduck failed' ; exit 1; }
sudo apt-get install -f -y || { echo 'apt-get install failed after tsduck installation' ; exit 1; }
sudo dpkg -i $(ls hides*) || { echo 'dpkg hides failed' ; exit 1; }
sudo apt-get install -f -y || { echo 'apt-get install failed after hides installation' ; exit 1; }
sudo apt --fix-broken -y install || { echo 'apt install --fix-broken failed' ; exit 1; }
read -p "Press enter to restart the machine"
sudo reboot now