ab cd
Senior Member
How to Install dump1090-fa and Planefinder feeder on Red Hat (RHEL) & Fedora
Tested on:
Fedora 31, x86_64
Red Hat Enterprise Linux (RHEL) 8.1, x86_64
STEP-1: Install dump1090-fa (see below)
STEP-2: Install Planefinder Data Feeder (Scroll down to post #2)
STEP-3: Install FlightRadar24 Data Feeder (Scroll down to post #3)
STEP-1: Install dump1090-fa
FEDORA - Install Dependencies & Tools
RHEL- Install Dependencies & Tools
(2) Fedora & RHEL - Build & Install package "librtlsdr"
This package is essential for building dump1090-fa linux binary in step (3)
NOTE: The command starting with "sudo cmake ../" has 4 flags after it and is very long, and full command is not visible directly. Please scroll right to see and copy it in full.
(3) Fedora & RHEL - Build dump1090-fa linux binary from source code.
(4) Fedora & RHEL - Test the dump1090-fa Linux Binary
(5) Fedora & RHEL - Configure & enable systemd for dump1090-fa by copying necessary files from cloned source code.
(6) Install lighttpd web server
Fedora
RHEL
(7) Fedora & RHEL - Copy necessary dump1090-fa integration & configuration file from source code.
(8) Fedora & RHEL - Configure SELinux to run permissive for httpd
This will enable lighttpd to pull aircraft data from folder /var/run/dump1090-fa/:
(9) Fedora & RHEL - Configure Firewall to permit display of SkyView from LAN/internet.
(10) Reboot Computer
Map display in browser of RHEL at localhost/dump1090-fa/
Map dispaly in browser of FEDORA at localhost/dump1090-fa/
Map display in browser of another computer on same LAN at IP-of-Fedora:8080
[/SIZE][/B]
Tested on:
Fedora 31, x86_64
Red Hat Enterprise Linux (RHEL) 8.1, x86_64
STEP-1: Install dump1090-fa (see below)
STEP-2: Install Planefinder Data Feeder (Scroll down to post #2)
STEP-3: Install FlightRadar24 Data Feeder (Scroll down to post #3)
STEP-1: Install dump1090-fa
FEDORA - Install Dependencies & Tools
Code:
sudo dnf install git wget
sudo dnf install make cmake libusb-devel ncurses-devel
RHEL- Install Dependencies & Tools
Code:
sudo dnf install git wget
sudo dnf install gcc-c++ make cmake libusbx-devel ncurses-devel
## In case of issues in building binaries, use following command to install build tool package
## sudo dnf groupinstall 'Development Tools'
(2) Fedora & RHEL - Build & Install package "librtlsdr"
This package is essential for building dump1090-fa linux binary in step (3)
NOTE: The command starting with "sudo cmake ../" has 4 flags after it and is very long, and full command is not visible directly. Please scroll right to see and copy it in full.
Code:
cd ~/
git clone https://github.com/steve-m/librtlsdr.git
cd librtlsdr
sudo mkdir build && cd build
sudo cmake ../ -DINSTALL_UDEV_RULES=ON -DDETACH_KERNEL_DRIVER=ON -DLIB_INSTALL_DIR=/usr/lib64 -DCMAKE_INSTALL_PREFIX=/usr
sudo make
sudo make install
sudo ldconfig
(3) Fedora & RHEL - Build dump1090-fa linux binary from source code.
Code:
cd ~/
sudo git clone https://github.com/flightaware/dump1090.git dump1090-fa
cd dump1090-fa
sudo make BLADERF=no
(4) Fedora & RHEL - Test the dump1090-fa Linux Binary
Code:
cd ~/dump1090-fa
sudo ./dump1090
Sat Jan 25 16:52:54 2020 EST dump1090-fa starting up.
rtlsdr: using device #0: Generic RTL2832U (Realtek, RTL2832UFA, SN 00000101)
Detached kernel driver
Found Rafael Micro R820T tuner
rtlsdr: tuner gain set to 49.6 dB
*8dc07976235130f2c79820d7f6ee;
CRC: 000000
RSSI: -3.4 dBFS
Score: 1400
Time: 8240.83us
DF:17 AA:C07976 CA:5 ME:235130F2C79820
Extended Squitter Aircraft identification and category (4) (reliable)
ICAO Address: C07976 (Mode S / ADS-B)
Air/Ground: airborne
Ident: TSC219
Category: A3
(5) Fedora & RHEL - Configure & enable systemd for dump1090-fa by copying necessary files from cloned source code.
Code:
sudo cp ~/dump1090-fa/dump1090 /usr/bin/dump1090-fa
sudo cp ~/dump1090-fa/debian/dump1090-fa.default /etc/default/dump1090-fa
sudo cp ~/dump1090-fa/debian/dump1090-fa.service /usr/lib/systemd/system/dump1090-fa.service
sudo mkdir -p /usr/share/dump1090-fa/
sudo cp ~/dump1090-fa/debian/start-dump1090-fa /usr/share/dump1090-fa/start-dump1090-fa
sudo cp -r ~/dump1090-fa/public_html /usr/share/dump1090-fa/html
sudo useradd --system dump1090
sudo systemctl enable dump1090-fa
sudo systemctl start dump1090-fa
sudo systemctl status dump1090-fa
## If status shows FAILED, then reboot the computer, and after reboot check status again
sudo reboot
sudo systemctl status dump1090-fa
(6) Install lighttpd web server
Fedora
Code:
sudo dnf install lighttpd
RHEL
Code:
sudo dnf install https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm
sudo dnf install lighttpd
(7) Fedora & RHEL - Copy necessary dump1090-fa integration & configuration file from source code.
Code:
sudo cp ~/dump1090-fa/debian/lighttpd/89-dump1090-fa.conf /etc/lighttpd/conf.d/89-dump1090-fa.conf
sudo chmod 666 /etc/lighttpd/lighttpd.conf
echo "server.modules += ( \"mod_alias\" )" >> /etc/lighttpd/lighttpd.conf
echo "include \"/etc/lighttpd/conf.d/89-dump1090-fa.conf\"" >> /etc/lighttpd/lighttpd.conf
sudo sed -i 's/server.use-ipv6 = "enable"/server.use-ipv6 = "disable"/' /etc/lighttpd/lighttpd.conf
sudo chmod 644 /etc/lighttpd/lighttpd.conf
sudo systemctl enable lighttpd
sudo systemctl restart lighttpd
(8) Fedora & RHEL - Configure SELinux to run permissive for httpd
This will enable lighttpd to pull aircraft data from folder /var/run/dump1090-fa/:
Code:
sudo semanage permissive -a httpd_t
(9) Fedora & RHEL - Configure Firewall to permit display of SkyView from LAN/internet.
Code:
sudo firewall-cmd --add-service=http
sudo firewall-cmd --runtime-to-permanent
sudo firewall-cmd --reload
(10) Reboot Computer
Map display in browser of RHEL at localhost/dump1090-fa/
Map dispaly in browser of FEDORA at localhost/dump1090-fa/
Map display in browser of another computer on same LAN at IP-of-Fedora:8080
Last edited: