Following are four (4) additional steps to make the hand-installed dump1090-fa work.
(1) Added rtl-sdr.rules, and rebooted, still spinning wheel on map
sudo wget -O /etc/udev/rules.d/rtl-sdr.rules "https://raw.githubusercontent.com/osmocom/rtl-sdr/master/rtl-sdr.rules"
sudo reboot
.
(2) Added line START_DUMP1090="yes"
to file /etc/default/dump1090-fa
, so it became
START_DUMP1090="yes"
RECEIVER_OPTIONS="--device-index 0 --gain -10 --ppm 0 --net-bo-port 30005"
DECODER_OPTIONS="--max-range 360"
NET_OPTIONS="--net --net-heartbeat 60 --net-ro-size 1000 --net-ro-interval 1 --net-ri-port 0 --net-ro-port 30002 --net-sbs-port 30003 --net-bi-port 30004,30104 --net-bo-port 30005"
JSON_OPTIONS="--json-location-accuracy 1"
Rebooted, still spinning wheel on map, and now it gives this output
sudo systemctl status dump1090-fa -l
â dump1090-fa.service - LSB: dump1090 daemon (Flightaware variant)
Loaded: loaded (/etc/init.d/dump1090-fa; generated; vendor preset: enabled)
Active: active (exited) since Mon 2018-08-20 13:11:53 EDT; 5min ago
Docs: man:systemd-sysv-generator(8)
Process: 404 ExecStart=/etc/init.d/dump1090-fa start (code=exited, status=0/SUCCESS)
CGroup: /system.slice/dump1090-fa.service
Aug 20 13:11:53 raspberrypi systemd[1]: Starting LSB: dump1090 daemon (Flightaware variant)...
Aug 20 13:11:53 raspberrypi dump1090-fa[404]: start-stop-daemon: user 'dump1090' not found
Aug 20 13:11:53 raspberrypi systemd[1]: Started LSB: dump1090 daemon (Flightaware variant).
.
(3) Added user dump1090
, and rebooted
sudo adduser --system dump1090
Adding system user `dump1090' (UID 109) ...
Adding new user `dump1090' (UID 109) with group `nogroup' ...
Creating home directory `/home/dump1090' ...
sudo reboot
.
After reboot, the spinning whell still there.
Checked dump1090-fa status, new error messages now
pi@raspberrypi:~ $ sudo systemctl status dump1090-fa -l
â dump1090-fa.service - LSB: dump1090 daemon (Flightaware variant)
Loaded: loaded (/etc/init.d/dump1090-fa; generated; vendor preset: enabled)
Active: active (exited) since Mon 2018-08-20 13:23:18 EDT; 1min 20s ago
Docs: man:systemd-sysv-generator(8)
Process: 401 ExecStart=/etc/init.d/dump1090-fa start (code=exited, status=0/SUCCESS)
CGroup: /system.slice/dump1090-fa.service
Aug 20 13:23:18 raspberrypi systemd[1]: Starting LSB: dump1090 daemon (Flightaware variant)...
Aug 20 13:23:18 raspberrypi dump1090-fa[401]: touch: missing file operand
Aug 20 13:23:18 raspberrypi dump1090-fa[401]: Try 'touch --help' for more information.
Aug 20 13:23:18 raspberrypi dump1090-fa[401]: chown: missing operand after âdump1090:rootâ
Aug 20 13:23:18 raspberrypi dump1090-fa[401]: Try 'chown --help' for more information.
Aug 20 13:23:18 raspberrypi dump1090-fa[401]: /etc/init.d/dump1090-fa: 134: /etc/init.d/dump1090-fa: cannot create : Directory nonexistent
Aug 20 13:23:18 raspberrypi systemd[1]: Started LSB: dump1090 daemon (Flightaware variant).
.
Checked if /run/dump1090-fa directory (for json files) and log file /var/log/dump1090-fa.log is created by init script or not. Found
- directory
/run/dump1090-fa
exists - file
/var/log/dump1090-fa.log
does not exist.
.
(4) Added line LOGFILE="/var/log/dump1090-fa.log"
to file /etc/init.d/dump1090-fa
and rebooted. The file became like this
# PATH should only include /usr/* if it runs after the mountnfs.sh script
PATH=/sbin:/usr/sbin:/bin:/usr/bin
DESC="dump1090-fa daemon"
NAME=dump1090-fa
DAEMON=/usr/bin/$NAME
ARGS="--measure-noise "
PIDFILE=/var/run/$NAME.pid
SCRIPTNAME=/etc/init.d/$NAME
DUMP1090_USER="dump1090"
JSON_DIR="/run/dump1090-fa"
LOGFILE="/var/log/dump1090-fa.log"
.
SUCCESS !!!
sudo systemctl status dump1090-fa -l
â dump1090-fa.service - LSB: dump1090 daemon (Flightaware variant)
Loaded: loaded (/etc/init.d/dump1090-fa; generated; vendor preset: enabled)
Active: active (running) since Mon 2018-08-20 13:43:11 EDT; 3min 15s ago
Docs: man:systemd-sysv-generator(8)
Process: 411 ExecStart=/etc/init.d/dump1090-fa start (code=exited, status=0/SUCCESS)
CGroup: /system.slice/dump1090-fa.service
ââ493 /usr/bin/dump1090-fa --measure-noise --net --max-range 300 --net-ri-port 0 --net-ro-port 0 --net-bi-port 0 --net-bo-port 0 --net-sbs-
Aug 20 13:43:10 raspberrypi systemd[1]: Starting LSB: dump1090 daemon (Flightaware variant)...
Aug 20 13:43:11 raspberrypi systemd[1]: Started LSB: dump1090 daemon (Flightaware variant).
.
Edited file /usr/share/dump1090-fa/html/config.js
and updated following 3 parameters
SiteShow = true; // true to show a center marker
SiteLat = xx.xxxx; // position of the marker
SiteLon = yy.yyyy;
.