FlightAware Discussions

Dump1090-mutability ver 1.15~dev package now available in Repository!

Which one do you mean?
The repository of debian packages?
It holds debian packages.

I don’t think i understand your question.

The repository package:

  1. Is not available in Stretch Repository, only in Buster Repository
  2. Requires 3 new dependencies which were not required earlier:
  • libjs-excanvas
  • libjs-jquery-ui
  • libjs-jquery-ui-theme-smoothness
pi@raspberrypi:~ $ sudo apt install dump1090-mutability
... ... ...
... ... ...
The following NEW packages will be installed:
  dump1090-mutability libjs-excanvas libjs-jquery-ui
  libjs-jquery-ui-theme-smoothness
0 upgraded, 4 newly installed, 0 to remove and 9 not upgraded.
Need to get 830 kB of archives.
After this operation, 5,413 kB of additional disk space will be used.
Do you want to continue? [Y/n]

tried today on freshly written Raspbian Buster (No software or packages whatsoever installed).
More dependencies were installed today:

dump1090-mutability
libfam0
libjs-excanvas
libjs-jquery-ui
libjs-jquery-ui-theme-smoothness
libmariadb3
librtlsdr0
lighttpd
lighttpd-modules-ldap
lighttpd-modules-mysql
mariadb-common
mysql-common
spawn-fcgi

.

cat /etc/os-release | grep PRETTY
PRETTY_NAME="Raspbian GNU/Linux 10 (buster)"

uname -a
Linux raspberrypi 4.19.57-v7+ #1244 SMP Thu Jul 4 18:45:25 BST 2019 armv7l GNU/Linux

.

sudo apt update
sudo apt install dump1090-mutability
... ... ...
The following additional packages will be installed:
  libfam0 libjs-excanvas libjs-jquery-ui libjs-jquery-ui-theme-smoothness
  libmariadb3 librtlsdr0 lighttpd lighttpd-modules-ldap lighttpd-modules-mysql
  mariadb-common mysql-common spawn-fcgi

Suggested packages:
  fam libjs-jquery-ui-docs rrdtool php-cgi apache2-utils lighttpd-doc
The following NEW packages will be installed:
  dump1090-mutability libfam0 libjs-excanvas libjs-jquery-ui
  libjs-jquery-ui-theme-smoothness libmariadb3 librtlsdr0 lighttpd
  lighttpd-modules-ldap lighttpd-modules-mysql mariadb-common mysql-common
  spawn-fcgi
0 upgraded, 13 newly installed, 0 to remove and 9 not upgraded.
Need to get 1,411 kB of archives.
After this operation, 7,184 kB of additional disk space will be used.
Do you want to continue? [Y/n]

Future plans

Packages following the same model for MalcolmRobb & FlightAware’s forks of dump1090 are in the pipeline. So is a repackaged version of piaware.

.

Great news for users of Linux amd64 on Intel PC.
If this materializes, for architectures other than arm (RPI), piaware packages could be installed by command sudo apt install piaware and sudo apt install dump1090-fa. No need to build from source code.

1 Like

Building from source

Note about Bias-t support: Bias-t support is available for RTL-SDR.com V3 dongles. If you wish to enable bias-t support, you must insure that you are building this package with a version of librtlsdr that supports this capability. You can find suitable source packages here and here. To enable the necessary support code when building, be sure to include preprocessor define macro HAVE_RTL_BIAST.

Bug-Fix for “Ajax call fail. Unable to fetch data” for both the ver 1.15~dev and EB_VERSION was done by following command

sudo wget -O /etc/udev/rules.d/rtl-sdr.rules "https://raw.githubusercontent.com/osmocom/rtl-sdr/master/rtl-sdr.rules"

This Bug-Fix no more works after following commit done 6 days ago

Commit b281473
Dated Feb 26, 2020

Use udev uaccess rules

Solution may possibly be (untested)

  1. Clone source code locally,
  2. Checkout to one commit earlier than the last commit on Feb 26
    git checkout f2a9a81
  3. Use the file rtl-sdr.rules from cloned source code, after it is checkedout to commit f2a9a81

EDIT

I think an easier solution (untested) is that in url of raw file in wget command, replace master by f2a9a81, so the command becomes like this:

sudo wget -O /etc/udev/rules.d/rtl-sdr.rules "https://raw.githubusercontent.com/osmocom/rtl-sdr/f2a9a81/rtl-sdr.rules"

Heh, I always wondered why they decided to call it “EB_VERSION” when packaging this.

Turns out that they didn’t, it’s just a typo in debian/rules:

export DUMP1090_VERSION = $DEB_VERSION

(Make doesn’t follow quite the same rules as shellscripts for variable expansion, so that needs to be ${DEB_VERSION} to work correctly)

1 Like
sudo wget -O /etc/udev/rules.d/rtl-sdr.rules "https://raw.githubusercontent.com/osmocom/rtl-sdr/f2a9a81/rtl-sdr.rules"    

sudo reboot

Tested. YES above bug-fix works :slight_smile:

Used raw file rtl-sdr.rules from one commit before latest Feb 26 revision, i.e. from commit f2a9a81 .

So did I!
Never imagined it is a typo :rofl:

EASY BUG-FIX

No need to download the file rtl-sdr.rules.
Simply add user "dump1090" to group "plugdev", and that does the job :slight_smile:

(This is based on the observation that the last modifications to rtl-sdr.rules includes, among other things, adding GROUP="plugdev")

 

## Check
$ groups dump1090
dump1090 : nogroup

## Add user dump1090 to group plugdev
$ sudo usermod -a -G plugdev dump1090 

## Check again
$ groups dump1090
dump1090 : nogroup plugdev 

## Restart dump1090-mutability
$ sudo systemctl restart dump1090-mutability

## Check gmap.html, live now :)

 

Just out of curiosity, wanted to know how dump1090-fa package install on Buster works without need for any work around.

(1) Wrote Raspbian Buster to microSD card

(2) Slipped microSD card into Pi 4 and powered up

(3) Did package install of dump1090-fa 3.8.0

(4) Checked and found:

  • file /etc/udev/rules.d/rtl-sdr.rules does NOT exist
  • dump1090 is a member of group plugdev
  • plugdev group exists in Buster

 

pi@raspberrypi:~ $ cat /etc/udev/rules.d/rtl-sdr.rules
cat: /etc/udev/rules.d/rtl-sdr.rules: No such file or directory
pi@raspberrypi:~ $ groups dump1090
dump1090 : nogroup plugdev

 

Please scroll down to see full list of groups

pi@raspberrypi:~ $ cut -d: -f1 /etc/group | sort
adm
audio
avahi
backup
bin
bluetooth
cdrom
crontab
daemon
dialout
dip
disk
fax
floppy
games
gnats
gpio
i2c
input
irc
kmem
kvm
list
lp
mail
man
messagebus
netdev
news
nogroup
operator
pi
plugdev
proxy
render
root
sasl
shadow
spi
src
ssh
staff
sudo
sys
systemd-coredump
systemd-journal
systemd-network
systemd-resolve
systemd-timesync
tape
tty
users
utmp
uucp
video
voice
www-data

The equivalent is installed as part of the librtlsdr0 package and can be found at /lib/udev/rules.d/60-librtlsdr0.rules

This is done as part of dump1090-fa’s postinstall script (originally for bladerf support actually):

1 Like

@obj
Thanks Oliver for clarification.

Yes, found the file rtl-sdr.rules.
Also found that the package librtlsdr0 is installed as part of dump1090-fa package installation:

pi@raspberrypi:~ $ sudo apt-get install dump1090-fa
.... .... ....
.... .... ....
The following NEW packages will be installed:
  dump1090-fa libbladerf1 libfam0 libmariadb3 librtlsdr0 lighttpd lighttpd-modules-ldap lighttpd-modules-mysql
  mariadb-common mysql-common spawn-fcgi

Just now found that over a year ago, someone has filed a bug report at Debian for adding user running dump1090-mutability to group plugdev:

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=917770

The package install of dump1090-mutability from BUSTER repo installs, among so many other packages, librtlsdr0, but still gets warning “Problem Fetching Data from dump1090”

FIX: add user dump1090 to group plugdev

 

pi@raspberrypi:~ $ lsb_release -sc
buster

pi@raspberrypi:~ $ sudo apt install dump1090-mutability
... ... ...
... ... ...

The following NEW packages will be installed:
  dump1090-mutability javascript-common libfam0 libjs-excanvas libjs-jquery
  libjs-jquery-ui libjs-jquery-ui-theme-smoothness libmariadb3 librtlsdr0
  lighttpd lighttpd-modules-ldap lighttpd-modules-mysql mariadb-common
  mysql-common spawn-fcgi
0 upgraded, 15 newly installed, 0 to remove and 20 not upgraded.

image

 

FIX:

pi@raspberrypi:~ $ groups dump1090
dump1090 : nogroup

pi@raspberrypi:~ $ sudo usermod -a -G plugdev dump1090

pi@raspberrypi:~ $ groups dump1090
dump1090 : nogroup plugdev

pi@raspberrypi:~ $ sudo systemctl restart dump1090-mutability

image