How to install dump1090-fa on FEDORA and RED HAT x86_64
This method has been tested on
- Fedora 31
- Red Hat Enterprise Linux (RHEL) 8.1
(1) Install dependencies and build tools
FEDORA - Tools & Dependencies
sudo dnf install git wget
sudo dnf install make cmake libusb-devel ncurses-devel
RHEL- Tools & Dependencies
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 librtlsdr from source code.
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.
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 .
cd ~/
sudo git clone https://github.com/flightaware/dump1090.git dump1090-fa
cd dump1090-fa
sudo make BLADERF=no
.
(4) Fedora & RHEL - Test the Linux Binary
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.
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
sudo dnf install lighttpd
RHEL
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âs lighttpd integration & configuration files from source 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 start 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/ :
sudo semanage permissive -a httpd_t
(9) Fedora & RHEL - Configure Firewall to permit display of SkyView from LAN/internet
sudo firewall-cmd --add-service=http
sudo firewall-cmd --runtime-to-permanent
sudo firewall-cmd --reload
(10) Reboot Computer
.