Fully Manual Method to Install Beast Splitter
Credits:
I have derived this manual method from file beastsplitter.sh
of Joe Prochazka’s “adsb-receiver project”.
STEP-BY-STEP METHOD
(1) Update your system
sudo apt-get update
(2) Install packages needed to meet dependencies
sudo apt-get install debhelper libboost-system-dev libboost-program-options-dev libboost-regex-dev dh-systemd
(3) Make new directory to hold build files of beast-splitter, enter the build-bs directory, and clone the soutce-code of beast-splitter
sudo mkdir build-bs
cd build-bs
sudo apt-get install git
sudo git clone https://github.com/flightaware/beast-splitter.git
(4) Enter the cloned directory and build package
Note: It will take long time to complete build process.
cd beast-splitter
sudo dpkg-buildpackage -b
(5) After above build process is completed, and beast-splitter package is built, install it
cd ../
sudo dpkg -i beast-splitter_*.deb
(6) Create necessary scripts to start beast-splitter at boot, and keep it alive.
6.1 - Create new blank file bs-maint.sh
cd build-bs
sudo nano bs-maint.sh
6.2 - Copy-paste following code in the newly created blank file bs-maint.sh
Note: Replace [BEASTSPLITTER_LISTEN_PORT]
and [BEASTSPLITTER_CONNECT_PORT]
by their actual values.
#! /bin/bash
while true
do
sleep 30
beast-splitter --serial /dev/beast --listen [BEASTSPLITTER_LISTEN_PORT]:R --connect localhost:[BEASTSPLITTER_CONNECT_PORT]:R
done
6.3 - Make file bs-maint.sh
executeable
sudo chmod +x bs-maint.sh
6.4 - Open file rc.local
for editing
sudo nano /etc/rc.local
6.5 - Add following line in the above file, just above last line, i.e. above exit 0
.
/home/pi/build-bs/bs-maint.sh &
6.6 - Reboot Pi
sudo reboot