Optional: Aliases für die BASH anpassen:
echo "alias l='ls -al'" > /home/pi/.bash_aliases
chown pi:pi /home/pi/.bash_aliases
System auf aktuellen Stand bringen und wolfram-engine entfernen (braucht man nicht und benötigt viel Platz):
sudo apt-get update
sudo apt-get -y remove wolfram-engine
sudo apt-get -y purge wolfram-engine
sudo apt-get -y dist-upgrade
Später und für den Build-Prozess benötigte Software installieren:
sudo apt-get -y install git git-core tclx8.4 tcllib tcl-tls itcl3
sudo apt-get -y install cmake libusb-1.0-0-dev build-essential debhelper
sudo apt-get -y install lighttpd rrdtool collectd vim xrdp
Verzeichnis für den Build-Prozess anlegen und Sourcen und Programme holen:
mkdir /home/pi/ADS-B_Sources
cd /home/pi/ADS-B_Sources
wget https://github.com/mutability/librtlsdr/releases/download/v0.5.4_git-1/librtlsdr0_0.5.4.git-1_armhf.deb
wget https://github.com/mutability/librtlsdr/releases/download/v0.5.4_git-1/librtlsdr-dev_0.5.4.git-1_armhf.deb
wget http://repo.feed.flightradar24.com/rpi_binaries/fr24feed_1.0.16-7_armhf.deb
wget http://flightaware.com/adsb/piaware/files/piaware_2.1-5_armhf.deb
wget http://client.planefinder.net/pfclient_3.1.201_armhf.deb
# wget http://code.shortie.de/dump1090-shortie.diff
Installation librtlsdr und rtl-sdr:
cd /home/pi/ADS-B_Sources
sudo dpkg -i librtlsdr0_0.5.4.git-1_armhf.deb
sudo dpkg -i librtlsdr-dev_0.5.4.git-1_armhf.deb
git clone git://git.osmocom.org/rtl-sdr.git
cd rtl-sdr/
mkdir build
cd build/
sudo cmake ../ -DINSTALL_UDEV_RULES=ON -DDETACH_KERNEL_DRIVER=ON
sudo make
sudo make install
sudo ldconfig
cd /home/pi/ADS-B_Sources
sudo cp ./rtl-sdr/rtl-sdr.rules /etc/udev/rules.d/
Build und Installation dump1090-mutability:
cd /home/pi/ADS-B_Sources
git clone https://github.com/mutability/dump1090.git
cd dump1090
# patch -p1 < ../dump1090-shortie.diff
dpkg-buildpackage -b
cd ..
sudo dpkg -i dump1090-mutability_1.15~dev_armhf.deb
sudo lighttpd-enable-mod dump1090
sudo /etc/init.d/lighttpd force-reload
Installation Flightradar24:
cd /home/pi/ADS-B_Sources
sudo dpkg -i fr24feed_1.0.16-7_armhf.deb
sudo chown root:root /etc/cron.d/fr24feed_updater
Installation PiAware Client:
cd /home/pi/ADS-B_Sources
sudo dpkg -i piaware_2.1-5_armhf.deb
sudo piaware-config -autoUpdate 1 -manualUpdate 1 -mlat 1 -mlatResultsFormat "beast,connect,localhost:30004 ext_basestation,listen,30106"
Installation PlaneFinder Client:
cd /home/pi/ADS-B_Sources
sudo dpkg -i pfclient_3.1.201_armhf.deb