Updating jprochazka/adsb-receiver project with new 3.7.1?

I use JP’s script for non-arm machines (e.g. x64_x86, i386 etc), and other than Debian based OS (like Ubuntu etc) as the pre-built packages are not available for these architectures.

Since both the RPi and OrangePi PC have arm cpu, and both Raspbian Stretch and Armbian Stretch are Debian based, I use the pre-built package available.

I have created a bash script more than a year ago for my personal use. I have been using it for package install on RPi and OPiPC.

(1) DUMP1090-FA + 5 FEEDERS + GRAPHS

NOTE:
THIS SCRIPT DOES NOT INSTALL DUMP978-FA AND SKYVIEW978.
THESE TWO I BUILT FROM SOURCE CODE MANUALLY

sudo touch ~/install_dump1090-fa_5feeders.sh
sudo chmod +x ~/install_dump1090-fa_5feeders.sh
sudo nano ~/install_dump1090-fa_5feeders.sh

## COPY-PASTE CODE BELOW, SAVE, THEN RUN
cd ~/
./install_dump1090-fa_5feeders.sh

NOTES:

  1. FOLLOWING CODE TO BE COPY-PATED IN FILE install_dump-1090-fa_5feeders.sh
  2. REPLACE XXXXX, XX.XXXX, YY.YYYY, ZZZ WHEREVER THESE OCCUR BY THEIR ACTUAL VALUES.
#!/bin/bash
echo "updating....."
sudo apt-get update

## DUMP1090-FA INSTALLATION
echo "installing dump1090-fa......"
sudo wget http://flightaware.com/adsb/piaware/files/packages/pool/piaware/p/piaware-support/piaware-repository_3.7.1_all.deb 
sudo dpkg -i piaware-repository_3.7.1_all.deb 
sudo apt-get update 
sudo apt-get install -y dump1090-fa 

## TERRAIN LIMIT RINGS
echo "Adding Terrain Limit Ring ...."
sudo wget -O /usr/share/dump1090-fa/html/upintheair.json "http://www.heywhatsthat.com/api/upintheair.json?id=XXXXXXXX&refraction=0.25&alts=12192"  

##  IMPORTANT NOTE: REPLACE XXXXXXXX BY YOUR HEYWHATSTHAT ID

## PIAWARE INSTALLATION
echo "installing Piaware data feeder......"
sudo apt-get install -y piaware 
sudo piaware-config allow-auto-updates yes 
sudo piaware-config allow-manual-updates yes 

echo "Adding Flightaware Feeder ID......"
sudo piaware-config feeder-id XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX

## IMPORTANT NOTE: REPLACE XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX BY YOUR ACTUAL FEEDER ID

echo "Restarting Piaware Data feeder ...."
sudo systemctl restart piaware

## WIEDEHOPF's GRAPHS INSTALLATION
echo "Installing wiedehopf's Graphs...."
sudo bash -c "$(wget -q -O - https://raw.githubusercontent.com/wiedehopf/graphs1090/master/install.sh)"
echo "Installation of Graphs completed..."

## PLANEFINDER DATA FEEDER INSTALLATION
echo "installing Planefider data feeder......"
wget http://client.planefinder.net/pfclient_4.1.1_armhf.deb
sudo dpkg -i pfclient_4.1.1_armhf.deb

echo "installing pfclient configuration......"
PF_FILE="/etc/pfclient-config.json"
sudo chmod 666 $PF_FILE
sudo cat <<\EOT > $PF_FILE
{
"tcp_address":"127.0.0.1",
"tcp_port":"30005",
"select_timeout":"10",
"data_upload_interval":"10",
"connection_type":"1",
"aircraft_timeout":"30",
"data_format":"1",
"latitude":"XX.XXXX",
"longitude":"YY.YYYY",
"sharecode":"XXXXXXXXXXXX"
}

EOT

## IMPORTANT NOTE: REPLACE XXXXXXXXXXXX, XX.XXXX, and YY.YYYY BY YOUR ACTUAL VALUES

echo ""
echo "Installation and configuration of PFClient completed....."
echo ""
echo "Restarting PFClient ....."
sudo systemctl restart pfclient

## RB24FEEDER INSTALLATION
echo "Starting installation of RadarBox24 feeder....."
sudo bash -c "$(wget -O - http://apt.rb24.com/inst_rbfeeder.sh)"

## MLAT-CLIENT INSTALLATION
echo "Installing mlat-client....."
sudo apt-get install mlat-client

echo "Starting automatic configuration of RB24 feeder....."
RB24_FILE=/etc/rbfeeder.ini
sudo touch $RB24_FILE
sudo chmod 666 $RB24_FILE
sudo cat <<\EOT > $RB24_FILE
[client]
network_mode=true
log_file=/var/log/rbfeeder.log
key=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
sn=

lat=XX.XXXX
lon=YY.YYYY
alt=ZZZ

sat_used=0
sat_visible=0

[network]
mode=beast
external_port=30005
external_host=127.0.0.1

[mlat]
autostart_mlat=true

EOT

## IMPORTANT NOTE: REPLACE XXXXXXXXXXXX, XX.XXXX, YY.YYYY, ZZZ  BY YOUR ACTUAL VALUES

echo "Restating rbfeeder ...."
sudo systemctl restart rbfeeder

## OPENSKY FEEDER INSTALLATION
echo "Installing Opensky-network Feeder ....."
wget https://opensky-network.org/files/firmware/opensky-feeder_latest_armhf.deb
sudo dpkg -i opensky-feeder_latest_armhf.deb

## FR24FEED INSTALLATION
echo "Starting automatic configuration of FR24 feeder....."

FR24_FILE=/etc/fr24feed.ini
sudo touch $FR24_FILE
sudo chmod 666 $FR24_FILE
sudo cat <<\EOT > $FR24_FILE
receiver="beast-tcp"
host="127.0.0.1:30005"
fr24key="XXXXXXXXXXXXXXXX"

bs="no"
raw="no"
logmode="0"
windowmode="0"
mpx="no"
mlat="yes"
mlat-without-gps="yes"
use-http=yes
http-timeout=20

EOT

## IMPORTANT NOTE: REPLACE XXXXXXXXXXXX BY YOUR ACTUAL FR24KEY
echo ""

echo ""
echo echo "Starting installation of FR24 feeder....."
sudo bash -c "$(wget -O - http://repo.feed.flightradar24.com/install_fr24_rpi.sh)"

sudo systemctl restart fr24feed
echo "Installation and configuration of FR24 Feeder completed....."

.

(2) DUMP1090-MUTABILITY + 5 FEEDERS + GRAPHS

NOTE:
THIS SCRIPT DOES NOT INSTALL DUMP978-FA AND SKYVIEW978.
THESE TWO I BUILT FROM BUILT FROM SOURCE CODE MANUALLY

sudo touch ~/install_dump1090-mutab_5feeders.sh
sudo chmod +x ~/install_dump1090-mutab_5feeders.sh
sudo nano ~/install_dump1090-mutab_5feeders.sh

## COPY-PASTE CODE BELOW, SAVE, THEN RUN
cd ~/
./install_dump1090-mutab_5feeders.sh

NOTES:

  1. FOLLOWING CODE TO BE COPY-PATED IN FILE install_dump-1090-fa_5feeders.sh
  2. REPLACE XXXXX, XX.XXXX, YY.YYYY, ZZZ WHEREVER THESE OCCUR BY THEIR ACTUAL VALUES.
#!/bin/bash
echo "updating....."
sudo apt-get update

## DUMP1090-MUTABILITY INSTALLATION
echo "installing dump1090-mutability......"
echo "Installing packages needed to build, and needed to fulfill dependencies...."
sudo apt install -y git debhelper librtlsdr-dev lighttpd
sudo apt install -y rtl-sdr build-essential cron curl
sudo apt install -y fakeroot libusb-1.0-0-dev pkg-config 

echo "Installation of dump1090-mut dependencies & tools completed"

echo "CLONING THE SOURCE FILES....."
sudo git clone https://github.com/mutability/dump1090.git dump1090-mut  

echo "MOVING INTO CLONED DIRECTORY ...."
cd /home/pi/dump1090-mut  

echo "BUILDING DUMP1090-MUTABILITY PACKAGE ...."
sudo dpkg-buildpackage -b   

echo "INSTALLING THE DUMP1090-MUTABILITY PACKAGE ...."
cd ../
sudo dpkg -i dump1090-mutability_1.15~dev_*.deb   

echo "CONFIGURING THE WEB SERVER ...."
sudo lighty-enable-mod dump1090   
sudo systemctl force-reload lighttpd   

echo "STRETCH WORKAROUND (Ajax call Fail) ...."
sudo wget -O  /etc/udev/rules.d/rtl-sdr.rules "https://raw.githubusercontent.com/osmocom/rtl-sdr/master/rtl-sdr.rules" 

echo "Adding Terrain Limit Ring ...."
sudo wget -O /usr/share/dump1090-mutability/html/upintheair.json "http://www.heywhatsthat.com/api/upintheair.json?id=XXXXXXXX&refraction=0.25&alts=12192"  
##  IMPORTANT NOTE: REPLACE XXXXXXXX BY YOUR HEYWHATSTHAT ID

sudo dpkg-reconfigure dump1090-mutability 
echo "Installation of dump1090-mutability completed"

## PIAWARE INSTALLATION
echo "installing Piaware data feeder......"
sudo wget http://flightaware.com/adsb/piaware/files/packages/pool/piaware/p/piaware-support/piaware-repository_3.7.1_all.deb 
sudo dpkg -i piaware-repository_3.7.1_all.deb 
sudo apt-get update 
sudo apt-get install -y piaware 
sudo piaware-config allow-auto-updates yes 
sudo piaware-config allow-manual-updates yes 

echo "Adding Flightaware Feeder ID......"
sudo piaware-config feeder-id XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX

## IMPORTANT NOTE: REPLACE XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX BY YOUR ACTUAL FEEDER ID

echo "Restarting Piaware Data feeder ...."
sudo systemctl restart piaware

## WIEDEHOPF's GRAPHS INSTALLATION
echo "Installing wiedehopf's Graphs...."
sudo bash -c "$(wget -q -O - https://raw.githubusercontent.com/wiedehopf/graphs1090/master/install.sh)"
echo "Installation of Graphs completed..."

## PLANEFINDER DATA FEEDER INSTALLATION
echo "installing Planefider data feeder......"
wget http://client.planefinder.net/pfclient_4.1.1_armhf.deb
sudo dpkg -i pfclient_4.1.1_armhf.deb

echo "installing pfclient configuration......"
PF_FILE="/etc/pfclient-config.json"
sudo chmod 666 $PF_FILE
sudo cat <<\EOT > $PF_FILE
{
"tcp_address":"127.0.0.1",
"tcp_port":"30005",
"select_timeout":"10",
"data_upload_interval":"10",
"connection_type":"1",
"aircraft_timeout":"30",
"data_format":"1",
"latitude":"XX.XXXX",
"longitude":"YY.YYYY",
"sharecode":"XXXXXXXXXXXX"
}

EOT

## IMPORTANT NOTE: REPLACE XXXXXXXXXXXX, XX.XXXX, and YY.YYYY BY YOUR ACTUAL VALUES

echo "Installation and configuration of PFClient completed....."
echo "Restarting PFClient ....."
sudo systemctl restart pfclient

## RB24FEEDER INSTALLATION
echo "Starting installation of RadarBox24 feeder....."
sudo bash -c "$(wget -O - http://apt.rb24.com/inst_rbfeeder.sh)"

## MLAT-CLIENT INSTALLATION
echo "Installing mlat-client....."
sudo apt-get install mlat-client

echo "Starting automatic configuration of RB24 feeder....."

RB24_FILE=/etc/rbfeeder.ini
sudo touch $RB24_FILE
sudo chmod 666 $RB24_FILE
sudo cat <<\EOT > $RB24_FILE
[client]
network_mode=true
log_file=/var/log/rbfeeder.log
key=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
sn=

lat=XX.XXXX
lon=YY.YYYY
alt=ZZZ

sat_used=0
sat_visible=0

[network]
mode=beast
external_port=30005
external_host=127.0.0.1

[mlat]
autostart_mlat=true

EOT

## IMPORTANT NOTE: REPLACE XXXXXXXXXXXX, XX.XXXX, YY.YYYY, ZZZ  BY YOUR ACTUAL VALUES

echo "Restarting rbfeeder...."
sudo systemctl restart rbfeeder

## OPENSKY FEEDER INSTALLATION
echo "Installing Opensky-network Feeder ....."
wget https://opensky-network.org/files/firmware/opensky-feeder_latest_armhf.deb
sudo dpkg -i opensky-feeder_latest_armhf.deb

## FR24FEED INSTALLATION
echo "Starting automatic configuration of FR24 feeder....."

FR24_FILE=/etc/fr24feed.ini
sudo touch $FR24_FILE
sudo chmod 666 $FR24_FILE
sudo cat <<\EOT > $FR24_FILE
receiver="beast-tcp"
host="127.0.0.1:30005"
fr24key="XXXXXXXXXXXXXXXX"

bs="no"
raw="no"
logmode="0"
windowmode="0"
mpx="no"
mlat="yes"
mlat-without-gps="yes"
use-http=yes
http-timeout=20

EOT

## IMPORTANT NOTE: REPLACE XXXXXXXXXXXX BY YOUR ACTUAL FR24KEY
echo ""

echo ""
echo echo "Starting installation of FR24 feeder....."
sudo bash -c "$(wget -O - http://repo.feed.flightradar24.com/install_fr24_rpi.sh)"

sudo systemctl restart fr24feed
echo ""
echo "Installation and configuration of FR24 Feeder completed....."

1 Like