FlightAware Discussions

Howto Install dump1090-fa on openSUSE x86_64

How to Install dump1090-fa on openSUSE x86_64

This method has been tested on openSUSE 15.1 - Leap

(1) Install build tools

sudo zypper install git-core gcc-c++ make cmake   

 

(2) Build & Install rtl-sdr from source code.

NOTE: The rtl-sdr package is available in openSUSE repository, but has something missing. As a result dump1090-fa fails to build. We will therefore build & install rtl-sdr package from source-code.

## Install dependency
sudo zypper install libusb-devel 

## Clone source code, build & install rtl-sdr
cd ~/  
git clone git://git.osmocom.org/rtl-sdr.git  
cd rtl-sdr  
sudo mkdir build && cd build 
sudo cmake ../ -DINSTALL_UDEV_RULES=ON -DDETACH_KERNEL_DRIVER=ON  
sudo make  
sudo make install  
sudo ldconfig 

 

(3) Build dump1090-fa linux binary from source code.

## Install dependency
sudo zypper install ncurses-devel  

## Clone source code, and build dump1090-fa's Linux Binary
cd ~/
sudo git clone https://github.com/flightaware/dump1090.git dump1090-fa  
cd dump1090-fa  
sudo make BLADERF=no 

(4) Test the binary (dongle must be plugged into the computer)

NOTE: Press Ctrl and c keys together to break the continous flow of output.

abcd@linux-zi0u:~> cd dump1090-fa
abcd@linux-zi0u:~/dump1090-fa> sudo ./dump1090

Sun Mar  8 20:19:27 2020 EDT  dump1090-fa  starting up.
rtlsdr: using device #0: Generic RTL2832U (Realtek, RTL2832U, SN 00000101)
Detached kernel driver
Found Rafael Micro R820T tuner
rtlsdr: tuner gain set to 49.6 dB
*8dc05218e112a300000000c0efeb;
CRC: 000000
RSSI: -2.5 dBFS
Score: 1400
Time: 15314.75us
DF:17 AA:C05218 CA:5 ME:E112A300000000
 Extended Squitter Emergency/priority status (28/1) (reliable)
  ICAO Address:  C05218 (Mode S / ADS-B)
  Air/Ground:    airborne
  Squawk:        6514
  Emergency/priority:      no emergency
^C

 

(5) 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    

## Create user "dump1090" to run systemd service
## Create group "plugdev" and add usder "dump1090" to this group
sudo useradd --system dump1090 
sudo groupadd plugdev  
sudo usermod -a -G plugdev dump1090  

sudo systemctl enable dump1090-fa  

sudo reboot  
sudo systemctl status dump1090-fa  

 

(6) Install & Configure lighttpd web server

sudo zypper install lighttpd 
sudo systemctl enable lighttpd   
sudo systemctl start lighttpd   
sudo systemctl status lighttpd  

sudo chmod 777 /etc/lighttpd  
sudo cp ~/dump1090-fa/debian/lighttpd/89-dump1090-fa.conf /etc/lighttpd/conf.d/89-dump1090-fa.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 755 /etc/lighttpd  

sudo systemctl restart lighttpd  

 

(7) 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

 

Map dispaly in browser of openSUSE at “localhost/dump1090-fa/”

 

Map display in browser of another computer on same LAN at “IP-of-openSUSE/dump1090-fa/”

How t Install Piaware Data Feeder on openSUSE

P L A C E H O L D E R