Skip to content

Instantly share code, notes, and snippets.

@varnav
Last active December 14, 2023 15:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save varnav/493c34b3fc731c12f1ccd5136760805f to your computer and use it in GitHub Desktop.
Save varnav/493c34b3fc731c12f1ccd5136760805f to your computer and use it in GitHub Desktop.
Install ADS-B feeders for arm64 arch
#!/bin/bash -ex
# Script will install multiple ADS-B feeders to ARM64 microcomputers like Orange Pi
# Before running make sure you have your coordinates (lat/lon in a form of DD.DDDD) and antenna height (in both feet and m) handy.
# https://discussions.flightaware.com/t/package-install-of-piaware-ver-7-2-on-arm64-aarch64-and-amd64-x86-64-machines/81136/4
if [ "$EUID" -ne 0 ]
then echo "Please run as root"
exit
fi
cd /tmp
echo "Prereqs"
apt install pkgconf -y
echo "Readsb"
bash -c "$(wget -O - https://github.com/wiedehopf/adsb-scripts/raw/master/readsb-install.sh)"
echo "adsb.fi"
curl -L -o /tmp/feed.sh https://raw.githubusercontent.com/d4rken/adsb-fi-scripts/master/install.sh
bash /tmp/feed.sh
rm -f /tmp/feed.sh
echo "ADS-B Exchange"
curl -L -o /tmp/axfeed.sh https://adsbexchange.com/feed.sh
bash /tmp/axfeed.sh
echo "Readsb maps and graphs"
bash -c "$(wget -nv -O - https://github.com/wiedehopf/tar1090/raw/master/install.sh)"
sed -i -e 's?.*flightawareLinks.*?flightawareLinks = true;?' /usr/local/share/tar1090/html/config.js
bash -c "$(curl -L -o - https://github.com/wiedehopf/graphs1090/raw/master/install.sh)"
echo "FR24"
dpkg --add-architecture armhf
apt-get update
bash -c "$(wget -O - https://repo-feed.flightradar24.com/install_fr24_rpi.sh)"
MYIP=$(ip route get 1.2.3.4 | grep -m1 -o -P 'src \K[0-9,.]*')
echo "
Links:
Map: http://${MYIP}/tar1090/
Graphs: http://${MYIP}/graphs1090/
Planefinder: http://${MYIP}:30053/
FR24 Status: http://${MYIP}:8754/
Radarbox: https://www.radarbox.com/raspberry-pi/claim
FlightAware: https://flightaware.com/adsb/piaware/claim
FlightRadar24: https://www.flightradar24.com/activate-raspberry-pi
https://www.adsbexchange.com/myip/
Please reboot
"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment