Dump1090-Mut Question

Well, I finally got my setup back running after 3 month or so break(things broken, then had to pack for my move). To get it back up, I used a new image of the raspbian-piaware download on the flightaware site. I’m now wanting to get my stats back up again with mutability. I’m wondering if the released version of 1.14 has the MLAT data passing through it and works with the most recent piaware, or if I’ll have to resort to trying to get the dev version compiled and running on the piaware, and I’ve had issues in the past getting that accomplished.

use this to install everything in one go
ads-b-flight-tracking-f21/ads-b-feeder-receiver-setup-scripts-t36532.html
It takes only a few minutes.
it does DumpMut(latest 1.15 dev) and the collectd stats package.

can choose to do:-
dump978
FlightAware’s PiAware: flightaware.com
Plane Finder ADS-B Client: planefinder.net
ADS-B Exchange: adsbexchange.com

I did it on Raspbian Jessie, however, it should work on the Piaware image.

The Piaware image is still based on Raspbian Wheezey. This is missing required sdr-rtl libraries which need to be installed manually before the automatic feeder setup scripts can be run. The following should be sufficient:


~ $ wget https://github.com/mutability/librtlsdr/releases/download/v0.5.4_git-1/librtlsdr0_0.5.4.git-1_armhf.deb
~ $ wget https://github.com/mutability/librtlsdr/releases/download/v0.5.4_git-1/librtlsdr-dev_0.5.4.git-1_armhf.deb
~ $ sudo dpkg -i librtlsdr0_0.5.4.git-1_armhf.deb
~ $ sudo dpkg -i librtlsdr-dev_0.5.4.git-1_armhf.deb

If possible, it would be better to start with a new and clean Raspbian Jessie installation. The scripts will take care of everything else. Actually, there is also an ADS B Receiver image available which makes things even easier. See here:
https://github.com/jprochazka/adsb-receiver/wiki/Using-the-ADS-B-Receiver-Image

Ran those commands then tried to run the installer again, and no luck on getting it to work.

“No luck” is a fairly vague statement. Would you let us know exactly what you tried, what messages you saw and what does not work?

Here are the commands and the output I get when running the listed commands/scripts.

First Command:



pi@piaware ~/adsb-receiver $ wget https://github.com/mutability/librtlsdr/releases/download/v0.5.4_git-1/librtlsdr0_0.5.4.git-1_armhf.deb
--2016-02-20 20:01:46--  https://github.com/mutability/librtlsdr/releases/download/v0.5.4_git-1/librtlsdr0_0.5.4.git-1_armhf.deb
Resolving github.com (github.com)... 192.30.252.131
Connecting to github.com (github.com)|192.30.252.131|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://github-cloud.s3.amazonaws.com/releases/23254914/2bb35796-7cad-11e4-987b-deb5840acf74.deb?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAISTNZFOVBIJMK3TQ%2F20160220%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20160220T200201Z&X-Amz-Expires=300&X-Amz-Signature=a6fcb5771636ffd83f8d0cc269bdefd2c5f8b41e17c1d481de22571eec327568&X-Amz-SignedHeaders=host&actor_id=0&response-content-disposition=attachment%3B%20filename%3Dlibrtlsdr0_0.5.4.git-1_armhf.deb&response-content-type=application%2Foctet-stream [following]
--2016-02-20 20:02:01--  https://github-cloud.s3.amazonaws.com/releases/23254914/2bb35796-7cad-11e4-987b-deb5840acf74.deb?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAISTNZFOVBIJMK3TQ%2F20160220%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20160220T200201Z&X-Amz-Expires=300&X-Amz-Signature=a6fcb5771636ffd83f8d0cc269bdefd2c5f8b41e17c1d481de22571eec327568&X-Amz-SignedHeaders=host&actor_id=0&response-content-disposition=attachment%3B%20filename%3Dlibrtlsdr0_0.5.4.git-1_armhf.deb&response-content-type=application%2Foctet-stream
Resolving github-cloud.s3.amazonaws.com (github-cloud.s3.amazonaws.com)... 54.231.9.201
Connecting to github-cloud.s3.amazonaws.com (github-cloud.s3.amazonaws.com)|54.231.9.201|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 36562 (36K) [application/octet-stream]
Saving to: `librtlsdr0_0.5.4.git-1_armhf.deb.1'

100%======================================>] 36,562      --.-K/s   in 0.1s

2016-02-20 20:02:24 (374 KB/s) - `librtlsdr0_0.5.4.git-1_armhf.deb.1' saved [36562/36562]


Next Command:



pi@piaware ~/adsb-receiver $ wget https://github.com/mutability/librtlsdr/releases/download/v0.5.4_git-1/librtlsdr-dev_0.5.4.git-1_armhf.deb
--2016-02-20 20:02:56--  https://github.com/mutability/librtlsdr/releases/download/v0.5.4_git-1/librtlsdr-dev_0.5.4.git-1_armhf.deb
Resolving github.com (github.com)... 192.30.252.128
Connecting to github.com (github.com)|192.30.252.128|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://github-cloud.s3.amazonaws.com/releases/23254914/2bb1bc6a-7cad-11e4-979b-7582b19b7a8b.deb?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAISTNZFOVBIJMK3TQ%2F20160220%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20160220T200312Z&X-Amz-Expires=300&X-Amz-Signature=9298fa15fb30622d746822a665a3fc6aef98449c8bec8d58e4614745c755d5d4&X-Amz-SignedHeaders=host&actor_id=0&response-content-disposition=attachment%3B%20filename%3Dlibrtlsdr-dev_0.5.4.git-1_armhf.deb&response-content-type=application%2Foctet-stream [following]
--2016-02-20 20:03:12--  https://github-cloud.s3.amazonaws.com/releases/23254914/2bb1bc6a-7cad-11e4-979b-7582b19b7a8b.deb?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAISTNZFOVBIJMK3TQ%2F20160220%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20160220T200312Z&X-Amz-Expires=300&X-Amz-Signature=9298fa15fb30622d746822a665a3fc6aef98449c8bec8d58e4614745c755d5d4&X-Amz-SignedHeaders=host&actor_id=0&response-content-disposition=attachment%3B%20filename%3Dlibrtlsdr-dev_0.5.4.git-1_armhf.deb&response-content-type=application%2Foctet-stream
Resolving github-cloud.s3.amazonaws.com (github-cloud.s3.amazonaws.com)... 54.231.112.168
Connecting to github-cloud.s3.amazonaws.com (github-cloud.s3.amazonaws.com)|54.231.112.168|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 38968 (38K) [application/octet-stream]
Saving to: `librtlsdr-dev_0.5.4.git-1_armhf.deb.1'

100%======================================>] 38,968      --.-K/s   in 0.1s

2016-02-20 20:03:28 (383 KB/s) - `librtlsdr-dev_0.5.4.git-1_armhf.deb.1' saved [38968/38968]


Next:



pi@piaware ~/adsb-receiver $ sudo dpkg -i librtlsdr0_0.5.4.git-1_armhf.deb
(Reading database ... 74017 files and directories currently installed.)
Preparing to replace librtlsdr0:armhf 0.5.4~git-1 (using librtlsdr0_0.5.4.git-1_armhf.deb) ...
Unpacking replacement librtlsdr0:armhf ...
Setting up librtlsdr0:armhf (0.5.4~git-1) ...


Next:



pi@piaware ~/adsb-receiver $ sudo dpkg -i librtlsdr-dev_0.5.4.git-1_armhf.deb
(Reading database ... 74017 files and directories currently installed.)
Preparing to replace librtlsdr-dev 0.5.4~git-1 (using librtlsdr-dev_0.5.4.git-1_armhf.deb) ...
Unpacking replacement librtlsdr-dev ...
Setting up librtlsdr-dev (0.5.4~git-1) ...


Then run install.sh



pi@piaware ~/adsb-receiver $ ./install.sh
Checking if the package whiptail is installed... [OK]



Downloading latest package lists for enabled repositories and PPAs...

Hit http://flightaware.com wheezy Release.gpg
Hit http://repo.feed.flightradar24.com flightradar24 Release.gpg
Hit http://repo.feed.flightradar24.com flightradar24 Release
Hit http://flightaware.com wheezy Release
Hit http://raspberrypi.collabora.com wheezy Release.gpg
Hit http://archive.raspberrypi.org wheezy Release.gpg
Hit http://raspberrypi.collabora.com wheezy Release
Hit http://archive.raspberrypi.org wheezy Release
Hit http://repo.feed.flightradar24.com flightradar24/raspberrypi-stable armhf Pa   ckages
Hit http://flightaware.com wheezy/main armhf Packages
Hit http://raspberrypi.collabora.com wheezy/rpi armhf Packages
Hit http://flightaware.com wheezy/contrib armhf Packages
Hit http://flightaware.com wheezy/non-free armhf Packages
Ign http://repo.feed.flightradar24.com flightradar24/raspberrypi-stable Translat   ion-en_US
Hit http://flightaware.com wheezy/rpi armhf Packages
Ign http://repo.feed.flightradar24.com flightradar24/raspberrypi-stable Translat   ion-en
Hit http://archive.raspberrypi.org wheezy/main armhf Packages
Ign http://raspberrypi.collabora.com wheezy/rpi Translation-en_US
Ign http://raspberrypi.collabora.com wheezy/rpi Translation-en
Ign http://archive.raspberrypi.org wheezy/main Translation-en_US
Ign http://archive.raspberrypi.org wheezy/main Translation-en
Ign http://flightaware.com wheezy/contrib Translation-en_US
Ign http://flightaware.com wheezy/contrib Translation-en
Ign http://flightaware.com wheezy/main Translation-en_US
Ign http://flightaware.com wheezy/main Translation-en
Ign http://flightaware.com wheezy/non-free Translation-en_US
Ign http://flightaware.com wheezy/non-free Translation-en
Ign http://flightaware.com wheezy/rpi Translation-en_US
Ign http://flightaware.com wheezy/rpi Translation-en
Reading package lists... Done
Executing the dump1090-mutability installation script...

-------------------------------------------
 Now ready to install dump1090-mutability.
-------------------------------------------
Dump 1090 is a Mode S decoder specifically designed for RTLSDR devices.
Dump1090-mutability is a fork of MalcolmRobb's version of dump1090 that adds new
functionality and is designed to be built as a Debian/Raspbian package.

https://github.com/mutability/dump1090

Press enter to continue...

Installing packages needed to build and fulfill dependencies...

Checking if the package git is installed... [OK]
Checking if the package curl is installed... [OK]
Checking if the package build-essential is installed... [OK]
Checking if the package debhelper is installed... [OK]
Checking if the package cron is installed... [OK]
Checking if the package rtl-sdr is installed... [NOT INSTALLED]
Installing the package rtl-sdr...

Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package rtl-sdr

Checking if the package rtl-sdr is installed... [PREVIOUS INSTALLATION FAILED]
Attempting to Install the package rtl-sdr again in 5 seconds (ATTEMPT 2 OF 5)...
^C


Ok I finally figured out part of the problem… had to get the rtl-sdr_0.5.4.git-1_armhf.deb package as well.

Now while it’s trying to install dump1090-mut it gets through a decent amount of it, but is still failing here’s the snippet nearest where it appears to be failing:



        dpkg-shlibdeps -Tdebian/dump1090-mutability.substvars debian/dump1090-mutability/usr/bin/view1090-mutability debian/dump1090-mutability/usr/bin/dump1090-mutability
dpkg-shlibdeps: error: no dependency information found for /usr/lib/librtlsdr.so.0 (used by debian/dump1090-mutability/usr/bin/dump1090-mutability)
dh_shlibdeps: dpkg-shlibdeps -Tdebian/dump1090-mutability.substvars debian/dump1090-mutability/usr/bin/view1090-mutability debian/dump1090-mutability/usr/bin/dump1090-mutability returned exit code 2
debian/rules:30: recipe for target 'binary' failed
make: *** [binary] Error 2
dpkg-buildpackage: error: fakeroot debian/rules binary gave error exit status 2

Installing the dump1090-mutability package...

dpkg: error processing dump1090-mutability_1.15~dev_*.deb (--install):
 cannot access archive: No such file or directory
Errors were encountered while processing:
 dump1090-mutability_1.15~dev_*.deb
\033[31m
The dump1090-mutability package did not install properly!


Thank you very much, that was very helpful! The problem is that the script tests for package rtl-sdr but cannot find it. I’m actually not sure if the rtl-sdr package is really required. Would you do a test and try to install dump1090-mutability manually using these steps here:
post177419.html#p177419

If you get dump1090-mutability working this way, the return to JP’s script. It should detect that dump1090-mutability is installed and you can then install the portal with the graphs.

EDIT: Just saw your update. Try the manual dump1090-mutability method. If that does not work then you may be better off with a fresh Jessie install or JP’s image.

When doing the manual compile, I get the same issue:


dpkg-shlibdeps: error: no dependency information found for /usr/lib/librtlsdr.so.0 (used by debian/dump1090-mutability/usr/bin/dump1090-mutability)
dh_shlibdeps: dpkg-shlibdeps -Tdebian/dump1090-mutability.substvars debian/dump1090-mutability/usr/bin/view1090-mutability debian/dump1090-mutability/usr/bin/dump1090-mutability returned exit code 2
debian/rules:30: recipe for target 'binary' failed
make: *** [binary] Error 2
dpkg-buildpackage: error: fakeroot debian/rules binary gave error exit status 2


Have a look here, it seems to have the same error:
http://discussions.flightaware.com/post183777.html#p183777
Note obj’s advice:

You need to remove the unmanaged copies of librtlsdr in /usr/local/lib on the build machine, the debian packaging system is trying to work out the dependencies it should add for a binary that links to the copies in /usr/local/lib and failing because those copies were not installed from a package.

Note that you don’t have to build the dump1090-mutability package on the machine that you’re going to install on - you can build elsewhere (so long as it’s basically the same sort of system) and copy the resulting .deb over.

Ok, then the next part is, how do I find the duplicates, and then remove them? I might have just figured out how to list the packages… with “dpkg-query -l ‘rtl’” and that returns



ii  librtlsdr-dev  0.5.4~git-1  armhf        Software defined radio receiver fo
ii  librtlsdr0:arm 0.5.4~git-1  armhf        Software defined radio receiver fo
un  python-importl <none>                    (no description available)
ii  rtl-sdr        0.5.4~git-1  armhf        Software defined radio receiver fo


Do I remove the second one, and how?

Sorry slookabill, I have no idea here; I was only quoting obj. You could check in /usr/local/lib/ to see if any of these files are there and remove them from there if present.

You’ve got duplicates because your installing over the FA image. Just start with a fresh OS image (stock, not FA) and use the scripts provided.

The Readme document (https://github.com/jprochazka/adsb-receiver) was updated to exclude support for PiAware Image-based installations. You should start with a clean Jessie-based installation or else use the image:
https://github.com/jprochazka/adsb-receiver/releases

Well… then one more question, does that image, or another image similar to it, better support a hidden wireless network? I still haven’t gotten my setup to work correctly with my wi-fi network when it’s hidden

Jessie is a later version of Raspbian so should provide better support.
Having a “hidden wireless network” provides no security. Any competent scanner would find it.
It just makes people feel safer, when they are not.

The Jessie image deliberately doesn’t have a GUI, so you’ll have to install wicd-curses to setup wifi.

I haven’t tested it because I don’t have a hidden wireless network - but wicd-curses does have the ***option ***to connect to a hidden network.


sudo apt-get install wicd-curses

you may have to uninstall a conflicting DHCP package.


sudo apt-get remove dhcpcd5

then just run wicd-curses to setup your wifi.


sudo dhcp-curses

setup is fairly self explanatory, but more info can be had here:

blog.ubidots.com/setup-wifi-on-r … using-wicd