From charlesreid1

Revision as of 21:57, 18 August 2017 by Admin (talk | contribs) (→‎Hardware)

Scripts to install prerequisites for flight-aware: https://charlesreid1.com:3000/charlesreid1/flight-aware

Hardware

FlightAwareHardware1.jpg FlightAwareHardware2.jpg

Software

Start by installing stuff that you need:

#!/bin/sh
#
# pastebin.com/eKbm118F
# 
# This installs prereqs and builds rtl-sdr.
# You will need to reboot at the end.

echo "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"
echo "~~~ INSTALLING STUFF ~~~~~~~~~~~~~~~~~~~~~~"
echo "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"

apt-get install -y \
	libboost-all-dev \
	libusb-1.0 \
	libusb-dev \
	libusb-1.0-0-dev \
	devscripts \
	cmake \
	portaudio19-dev

echo "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"
echo "~~~ INSTALLING EVEN MORE STUFF ~~~~~~~~~~~~"
echo "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"

apt-get install -y \
	tcl8.5-dev \
	tclx8.4-dev \
	itcl3-dev \
	tcl-tls \
	tcllib \
	tcl-tclreadline \

echo "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"
echo "~~~ INSTALLING RTL-SDR STUFF ~~~~~~~~~~~~~~"
echo "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"

git clone git://git.osmocom.org/rtl-sdr.git /root/codes/rtl-sdr
cd /root/codes/rtl-sdr
mkdir build
cd build
cmake ../
make
make install
cd /root
cp /root/codes/rtl-sdr/rtl-sdr.rules /etc/udev/rules.d/.
ldconfig

echo "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"
echo "~~~ DISABLING DVB DRIVER. NO TV HERE BRO ~~"
echo "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"

mkdir -p /etc/modprobe.d/
cd /etc/modprobe.d/

echo "blacklist dvb_usb_rtl28xxu" >> /etc/modprobe.d/ban-rtl.conf

echo "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"
echo "~~~ OKAY NOW PLUG IN THE RECEIVER BRO ~~~~~"
echo "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"
echo "~~~ WHEN U R DONE THEN RESTART ~~~~~~~~~~~~"
echo "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"

Next, install software specifically for dump1090. Once you're finished, you should be able to see some flight info:

#!/bin/sh
#
# pastebin.com/eKbm118F
#
# This installs dump1090_mr.
# The last step should show some flight info.

echo "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"
echo "~~~ INSTALLING DUMP1090_MR ~~~~~~~~~~~~~~~~"
echo "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"

DUMP1090_PATH="/root/codes/dump1090"
git clone https://www.github.com/flightaware/dump1090 ${DUMP1090_PATH}
cd ${DUMP1090_PATH}
make BLADERF=no

echo "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"
echo "~~~ OK BRO HERE GOES ~~~~~~~~~~~~~~~~~~~~~~"
echo "~~~ HOPE U SEE SOME PLANE STUFF RN ~~~~~~~~"
echo "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"

${DUMP1090_PATH}/dump1090 --interactive

Finally, install the tcllauncher for flightaware:

#!/bin/sh
# 
# pastebin.com/eKbm118F
# 
# tinyurl.com/y7lghzs4
#
# The FlightAware should now be working.
# This script will install PiAware
# so you have a fancy-pants dashboard.

echo "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"
echo "~~~ INSTALL FLIGHTAWARE TCLLAUNCHER ~~~~~~~"
echo "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"

export FA_DIR="/root/codes/tcllauncher"
git clone https://github.com/flightaware/tcllauncher.git ${FA_DIR}
cd ${FA_DIR}
autoconf
./configure --with-tcl=/usr/lib/tcl8.5
make
make install

echo "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"
echo "~~~ INSTALL PIAWARE ~~~~~~~~~~~~~~~~~~~~~~~"
echo "~~~ (IF N.E.1 AXES, UR RUNNIN WHEEZY) ~~~~~"
echo "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"

export PIAWARE_DIR="/root/codes/piaware_builder"
git clone https://github.com/flightaware/piaware_builder.git ${PIAWARE_DIR}
cd ${PIAWARE_DIR}
./sensible-build.sh wheezy

make
make install
sudo update-rc.d piaware defaults

echo "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"
echo "~~~ NOW SET UR FLIGHTAWARE CREDS ~~~~~~~~~~"
echo "~~~ service piaware start ~~~~~~~~~~~~~~~~~"
echo "~~~ piaware-config -user USERNAME -password"
echo "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"

Links

Multilateration (MLAT) overview: https://flightaware.com/adsb/mlat/

PiAware if you already have dump1090: http://flightaware.com/adsb/piaware/install

PiAware building base station: http://flightaware.com/adsb/piaware/build

PiAware repo: https://github.com/flightaware/piaware

PiAware builder repo: https://github.com/flightaware/piaware_builder

PiAware repo wiki - release notes: https://github.com/flightaware/piaware/wiki/PiAware-Release-Notes

  • "Piaware will now attempt to start dump1090 if no ADS-B producer program is seen listening for connections on port 30005 (the "Beast" binary data port) for more than six minutes."

Dump1090 repo: https://github.com/flightaware/dump1090

FlightAware stats: https://flightaware.com/adsb/stats/user/charlesreid1

Flags