Build and Install dump1090-fa on following distros of Arch Linux
(1) Arch Linux x64_x86
(2) AlarmPi (Arch Linux for armhf RPi 2/3 )
STEP-1
1.1 - Create a file install-dump-fa.sh
1.2 - Make it executable
1.3 - Open it in nano to edit it
[abcd@archlinux ~]$ sudo touch install-dump1090-fa.sh
[abcd@archlinux ~]$ sudo chmod +x install-dump1090-fa.sh
[abcd@archlinux ~]$ sudo nano install-dump1090-fa.sh
STEP-2
2.1 - Copy-paste following code in the newly created file install-dump1090-fa.sh
2.2 - Save the file (Ctrl+o) and close it (Ctrl+x)
NOTE: Scroll down to see full code. Only part is displayed in the window below
#!/bin/bash
#first move to home directory
#all subsequent code is relative to home directory
cd ~/
#Install build tools and dependencies
yes | sudo pacman -Sy git wget make pkg-config gcc rtl-sdr lighttpd
#Clone source code
sudo git clone https://github.com/flightaware/dump1090.git
cd ~/dump1090
#Do you have bladeRF?
#If not, you dont need to install its support package
#Make dump1090-fa package WITHOUT bladeRF
sudo make BLADERF=no
#CONFIGURE DUMP1090-FA
sudo cp ~/dump1090/dump1090 /usr/bin/dump1090-fa
sudo mkdir -p /usr/share/dump1090-fa
sudo cp -r ~/dump1090/public_html /usr/share/dump1090-fa/html
sudo cp ~/dump1090/debian/dump1090-fa.default /etc/default/dump1090-fa
sudo cp ~/dump1090/debian/dump1090-fa.service /lib/systemd/system/dump1090-fa.service
sudo systemctl enable dump1090-fa.service
sudo useradd --system dump1090
## CONFIGURE LIGHTTPD
sudo cp /etc/lighttpd/lighttpd.conf /etc/lighttpd/lighttpd.conf.orig
sudo mkdir /etc/lighttpd/conf.d
sudo cp ~/dump1090/debian/lighttpd/88-dump1090-fa-statcache.conf /etc/lighttpd/conf.d/
sudo cp ~/dump1090/debian/lighttpd/89-dump1090-fa.conf /etc/lighttpd/conf.d/
#Add "server.module" and "include" lines in lighttpd.conf
sudo chmod 777 /etc/lighttpd/lighttpd.conf
sudo echo "" >> /etc/lighttpd/lighttpd.conf
sudo echo "server.modules += ( \"mod_alias\" )" >> /etc/lighttpd/lighttpd.conf
sudo echo "include \"/etc/lighttpd/conf.d/*\"" >> /etc/lighttpd/lighttpd.conf
sudo chmod 644 /etc/lighttpd/lighttpd.conf
sudo systemctl enable lighttpd
sudo systemctl restart lighttpd
sudo systemctl restart dump1090-fa
#
#
STEP-3
3.1 - Run the script
[abcd@archlinux ~]$ ./install-dump1090-fa.sh
STEP-4
4.1 - Open your broeser and see SkyView map at this address:
localhost/dump1090-fa
IP-of-Pi/dump1090-fa/
STEP-5
5.1 - Open file /etc/default/dump1090-fa
for editing
[abcd@archlinux ~]$ sudo nano /etc/default/dump1090-fa
.
5.2 - Scroll down to following line
RECEIVER_OPTIONS="--device-index 0 --gain -10 --ppm 0 --net-bo-port 30005"
.
5.3 - Add --lat xx.xxxx lon yy.yyyy
so line becomes like below
NOTE: Replace xx.xxxx and yy.yyyy by your actual latitude and longitude
RECEIVER_OPTIONS="--device-index 0 --gain -10 --ppm 0 --net-bo-port 30005 --lat xx.xxx --lon yy.yyyy"
.
5.4 - Save (Ctrl+o) and Close (Ctrl+x) the file
.
5.5 - Restart dump1090-fa
[abcd@archlinux ~]$ sudo systemctl restart dump1090-fa
5.6 - Clear browser cache (Ctrl+Shift+Delete) and Reload browser (Ctrl+F5) and see your SkyView map.