PC version of PiAware for field spotting

I wonder if there would be any possibility to offer PiAware on deb/64 bit platform to those who go
plane spotting at the airport and take laptop with them.

I could bring temporary coverage to FR, help with better MLAT to planespotters and FR
and everyone would be a winner.

Even better, everyone has a car, have a mobile solution. I know that there was an app for Android,
but that required Phone to be connected to the dongle and that was eating battery if not on split cable connected to mains,
and could not really leave it in the car as no calls could be answered.

With laptop, or cheap chromebook that can have closed lid if not required lets say, when someone parks at work
(those working at the Airport) and leave it there running … with the running times of 12 hours it should not be a problem …

I have been using Dell Latitude for few years, they have elegant car charger, come with build in Mobile Broadband modules
(Or USB dongle can be purchased with the GPS module separately … ), with GPS and can run Linux …

I didn’t try it, but according to https://github.com/flightaware/piaware/blob/master/README.md it should be possible to build it from source.

Couple of years ago, on my Windows 7 laptop with Intel i3 quad-core cpu, I have added Ubuntu 10.10 (maverick) as dual boot.

Today I started the old laptop, and booted Ubuntu, and tried to build dump1090-fa from source, using JProchazka’s script (Adsb Receiver Project thread). It FAILED

abcd@abcd-PC:~/adsb-receiver$ ./install.sh


INSTALLATION HALTED!
UNABLE TO INSTALL A REQUIRED PACKAGE.
SETUP HAS BEEN TERMINATED!

The package “debhelper” could not be installed in 5 attempts.

ANY FURTHER SETUP AND/OR INSTALLATION REQUESTS HAVE BEEN TERMINIATED

Then I tried to built dump1090-mutability from source using manual method. That also FAILED

abcd@abcd-PC:~$ sudo apt-get update

abcd@abcd-PC:~$ sudo apt-get upgrade

abcd@abcd-PC:~$ sudo apt-get install git
git is already the newest version.

abcd@abcd-PC:~$ sudo apt-get install build-essential
build-essential is already the newest version.

abcd@abcd-PC:~$ sudo apt-get install debhelper
Failed to fetch us.archive.ubuntu.com/ubuntu/poo … u1_all.deb 404 Not Found [IP: 2001:67c:1562::16 80]
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

abcd@abcd-PC:~$ sudo apt-get install --fix-missing debhelper
Failed to fetch us.archive.ubuntu.com/ubuntu/poo … u1_all.deb 404 Not Found [IP: 2001:67c:1562::19 80]

abcd@abcd-PC:~$ sudo apt-get install rtl-sdr
E: Unable to locate package rtl-sdr

abcd@abcd-PC:~$ sudo apt-get install librtlsdr-dev
E: Unable to locate package librtlsdr-dev

abcd@abcd-PC:~$ sudo apt-get install libusb-1.0-0-dev
The following NEW packages will be installed:
libusb-1.0-0-dev
Err us.archive.ubuntu.com/ubuntu/ maverick/main libusb-1.0-0-dev i386 2:1.0.8-2
404 Not Found [IP: 2001:67c:1562::16 80]
Failed to fetch us.archive.ubuntu.com/ubuntu/poo … 2_i386.deb 404 Not Found [IP: 2001:67c:1562::16 80]
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

abcd@abcd-PC:~$ sudo apt-get install --fix-missing libusb-1.0-0-dev
Failed to fetch us.archive.ubuntu.com/ubuntu/poo … 2_i386.deb 404 Not Found [IP: 2001:67c:1562::19 80]

abcd@abcd-PC:~$ sudo apt-get install pkg-config
pkg-config is already the newest version.

abcd@abcd-PC:~$ sudo apt-get install fakeroot
fakeroot is already the newest version.

abcd@abcd-PC:~$ sudo apt-get install curl
curl is already the newest version.
curl set to manually installed.

abcd@abcd-PC:~$ sudo apt-get install lighttpd
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

abcd@abcd-PC:~$ sudo apt-get install --fix-missing lighttpd
Err security.ubuntu.com/ubuntu/ maverick-security/universe lighttpd i386 1.4.26-3ubuntu2.1
404 Not Found [IP: 2001:67c:1360:8001::17 80]
Failed to fetch security.ubuntu.com/ubuntu/pool/ … 1_i386.deb 404 Not Found [IP: 2001:67c:1360:8001::17 80]

=======================================

abcd@abcd-PC:~$ apt-cache policy debhelper
debhelper:
Installed: (none)
Candidate: 8.0.0ubuntu1
Version table:
8.0.0ubuntu1 0
500 us.archive.ubuntu.com/ubuntu/ maverick/main i386 Packages

abcd@abcd-PC:~$ apt-cache policy librtlsdr-dev
N: Unable to locate package librtlsdr-dev

abcd@abcd-PC:~$ apt-cache policy libusb-1.0-0-dev
libusb-1.0-0-dev:
Installed: (none)
Candidate: 2:1.0.8-2
Version table:
2:1.0.8-2 0
500 us.archive.ubuntu.com/ubuntu/ maverick/main i386 Packages

abcd@abcd-PC:~$ apt-cache policy lighttpd
lighttpd:
Installed: (none)
Candidate: 1.4.26-3ubuntu2.1
Version table:
1.4.26-3ubuntu2.1 0
500 us.archive.ubuntu.com/ubuntu/ maverick-updates/universe i386 Packages
500 security.ubuntu.com/ubuntu/ maverick-security/universe i386 Packages
1.4.26-3ubuntu2 0
500 us.archive.ubuntu.com/ubuntu/ maverick/universe i386 Packages

Try using an OS install that’s not 7 years old as a starting point.

No plans to offer binary packages for x86 / x86_64 at this stage (it’s a large support burden for a relatively small group of users), but you can build a package yourself from source; start at github.com/flightaware/piaware_builder

ATTEMPT - 1: Burned “Ubuntu-16.04.3-desktop-amd64.iso” on USB Flash and booted from it, chose “Live CD” and again tried. FAILURE
Failed to install: debhelper, rtl-sdr, librtlsdr-dev, libusb-1.0-0-dev, lighttpd

ATTEMPT - 2: Burned “debian-live-9.1.0-amd64-cinnamon.iso” on USB Flash and booted from it, ran “Live CD” and again tried. FAILURE

user@debian:~$ wget flightaware.com/adsb/piaware/fil … .1_all.deb
2017-08-07 07:17:05 (241 KB/s) - ‘piaware-repository_3.5.1_all.deb’ saved [4800/4800]

user@debian:~$ sudo dpkg -i piaware-repository_3.5.1_all.deb
Setting up piaware-repository (3.5.1) …

user@debian:~$ sudo apt-get update
N: Skipping acquire of configured file ‘piaware/binary-amd64/Packages’ as repository ‘http://flightaware.com/adsb/piaware/files/packages jessie InRelease’ doesn’t support architecture ‘amd64’

user@debian:~$ sudo apt-get install piaware
E: Unable to locate package piaware

user@debian:~$ sudo apt-get install dump1090-fa
E: Unable to locate package dump1090-fa

ATTEMPT - 3: Now tried manual install of dump1090-mutability on “debian-live-9.1.0-amd64-cinnamon.iso” on USB Flash - SUCCESS

user@debian:~$ sudo apt-get update

user@debian:~$ sudo apt-get install -y git
Setting up git (1:2.11.0-3) …

user@debian:~$ sudo apt-get install -y build-essential
Setting up build-essential (12.3) …

user@debian:~$ sudo apt-get install -y debhelper
Setting up debhelper (10.2.5) …

user@debian:~$ sudo apt-get install -y rtl-sdr
Setting up rtl-sdr (0.5.3-11+b2) …

user@debian:~$ sudo apt-get install -y librtlsdr-dev
Setting up librtlsdr-dev (0.5.3-11+b2) …

user@debian:~$ sudo apt-get install -y libusb-1.0-0-dev
libusb-1.0-0-dev is already the newest version (2:1.0.21-1).

user@debian:~$ sudo apt-get install -y pkg-config
Setting up pkg-config (0.29-4+b1) …

user@debian:~$ sudo apt-get install -y fakeroot
fakeroot is already the newest version (1.21-3.1).

user@debian:~$ sudo apt-get install -y curl
Setting up curl (7.52.1-5) …

user@debian:~$ sudo apt-get install -y cron
cron is already the newest version (3.0pl1-128+b1).

user@debian:~$ sudo apt-get install -y lighttpd
Setting up lighttpd (1.4.45-1) …

user@debian:~$ rtl_test -t
Found 1 device(s):
0: Realtek, RTL2838UHIDIR, SN: 00000001

Using device 0: Generic RTL2832U OEM
Detached kernel driver
Found Rafael Micro R820T tuner
Supported gain values (29): 0.0 0.9 1.4 2.7 3.7 7.7 8.7 12.5 14.4 15.7 16.6 19.7 20.7 22.9 25.4 28.0 29.7 32.8 33.8 36.4 37.2 38.6 40.2 42.1 43.4 43.9 44.5 48.0 49.6
[R82XX] PLL not locked!
Sampling at 2048000 S/s.
No E4000 tuner found, aborting.
Reattached kernel driver

user@debian:~$ sudo mkdir install-dump
user@debian:~$ cd install-dump
user@debian:~/install-dump$ sudo git clone github.com/mutability/dump1090.git
user@debian:~/install-dump$ cd ~/install-dump/dump1090

user@debian:~/install-dump/dump1090$ sudo dpkg-buildpackage -b

dpkg-deb: building package ‘dump1090-mutability’ in ‘…/dump1090-mutability_1.15~dev_amd64.deb’.
dpkg-genbuildinfo --build=binary
dpkg-genchanges --build=binary >…/dump1090-mutability_1.15~dev_amd64.changes
dpkg-genchanges: info: binary-only upload (no source code included)
dpkg-source --after-build dump1090
dpkg-buildpackage: info: binary-only upload (no source included)

user@debian:~/install-dump/dump1090$ cd ~/install-dump
user@debian:~/install-dump$ sudo dpkg -i dump1090-mutability_1.15~dev_*.deb

user@debian:~/install-dump$ sudo lighty-enable-mod dump1090
user@debian:~/install-dump$ sudo systemctl force-reload lighttpd
user@debian:~/install-dump$ sudo dpkg-reconfigure dump1090-mutability

user@debian:~$ sudo systemctl restart lighttpd
user@debian:~$ sudo systemctl status lighttpd
● lighttpd.service - Lighttpd Daemon
Loaded: loaded (/ lib / systemd / system / lighttpd.service; enabled; vendor preset:
Active: active (running) since Mon 2017-08-07 07:59:59 UTC; 28s ago

user@debian:~$ sudo systemctl restart dump1090-mutability
user@debian:~$ sudo systemctl status dump1090-mutability -l
● dump1090-mutability.service - LSB: dump1090 daemon (mutability variant)
Loaded: loaded (/ etc / init.d / dump1090-mutability; generated; vendor preset: en
Active: active (exited) since Mon 2017-08-07 08:01:07 UTC; 31s ago

ATTEMPT - 4: On “debian-live-9.1.0-amd64-cinnamon.iso” on USB Flash, tried automated install of dump1090-fa + Piaware by JProchazka’s scripts, after modifications (click here). FAILURE.

Installing the dump1090-fa package…

Selecting previously unselected package dump1090-fa.
(Reading database … 194234 files and directories currently installed.)
Preparing to unpack dump1090-fa_3.5.1_amd64.deb …
Unpacking dump1090-fa (3.5.1) …
dpkg: dependency problems prevent configuration of dump1090-fa:
dump1090-fa depends on libbladerf1 (>= 2016.06); however:
Version of libbladerf1:amd64 on system is 0.2016.06-1+b2.
dump1090-fa depends on libbladerf-udev; however:
Package libbladerf-udev is not installed.

dpkg: error processing package dump1090-fa (–install):
dependency problems - leaving unconfigured
Errors were encountered while processing:
dump1090-fa

Checking that the dump1090-fa package was installed properly…

INSTALLATION HALTED!
UNABLE TO INSTALL A REQUIRED PACKAGE.
SETUP HAS BEEN TERMINATED!

The package “dump1090-fa” could not be installed.


Dump1090-fa setup halted.

Press enter to continue…
ANY FURTHER SETUP AND/OR INSTALLATION REQUESTS HAVE BEEN TERMINIATED

user@debian:~/adsb-receiver$ sudo apt-get install libbladerf-udev
Reading package lists… Done
Building dependency tree
Reading state information… Done
Package libbladerf-udev is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package ‘libbladerf-udev’ has no installation candidate

ATTEMPT - 5: On “debian-live-9.1.0-amd64-cinnamon.iso” on USB Flash, tried automated install of dump1090-mutability + Piaware by JProchazka’s scripts, after modifications (click here). FAILURE.

Dump1090-mutability setup is complete.

Press enter to continue…

Setting up FlightAware’s PiAware…

Installing packages needed to build and fulfill dependencies…

Checking if the package git is installed… [OK]
Checking if the package build-essential is installed… [OK]
Checking if the package debhelper is installed… [OK]
Checking if the package tcl8.6-dev is installed… [NOT INSTALLED]
Installing the package tcl8.6-dev…

Reading package lists… Done
Building dependency tree
Reading state information… Done
You might want to run ‘apt --fix-broken install’ to correct these.
The following packages have unmet dependencies:
dump1090-fa : Depends: libbladerf1 (>= 2016.06) but 0.2016.06-1+b2 is to be installed
Depends: libbladerf-udev but it is not installable
tcl8.6-dev : Depends: zlib1g-dev but it is not going to be installed
E: Unmet dependencies. Try ‘apt --fix-broken install’ with no packages (or specify a solution).

Checking if the package tcl8.6-dev is installed… [INSTALLATION ATTEMPT FAILED]

INSTALLATION HALTED!
UNABLE TO INSTALL A REQUIRED PACKAGE.
SETUP HAS BEEN TERMINATED!

The package “tcl8.6-dev” could not be installed in 5 attempts.

ANY FURTHER SETUP AND/OR INSTALLATION REQUESTS HAVE BEEN TERMINIATED

ATTEMPT - 6: Tried to fix broken install manually. FAILED

user@debian:~/adsb-receiver$ sudo apt --fix-broken install
Reading package lists… Done
Building dependency tree
Reading state information… Done
Correcting dependencies… Done
The following packages will be REMOVED:
dump1090-fa
0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 13.8 MB disk space will be freed.
Do you want to continue? [Y/n] y
(Reading database … 195203 files and directories currently installed.)
Removing dump1090-fa (3.5.1) …

I managed to build the dump1090-fa package by removing the bladerf dependencies:

  • remove all libbladerf* references in debian/control
  • set BLADERF=no in debian/rules (dh_auto_build – RTLSDR=yes BLADERF=no DUMP1090_VERSION=$(DEB_VERSION))

Running ok on an old Asus eeePC with debian 8.9 and compiled and installed on a debian 9.1 amd64 virtual machine.

Piaware package builder was run without any problems on both setups.

hi

I use a vmware VM under windows 7, running xubuntu 16.04.

the steps:

  1. after initial creation of the VM, update, upgrade, add dump1090-mutability from j.prochazka’s site.

sudo apt-get install -y git
git clone https://github.com/jprochazka/adsb-receiver.git

  1. run the following from current maintainer romeo-golf site as root

sudo su

provide your password and continue with:



export PROJECTBRANCH=2.5.1
cd ~/adsb-receiver
git remote rm origin
git remote add origin https://github.com/romeo-golf/adsb-receiver.git
git fetch
git checkout -b ${PROJECTBRANCH} origin/${PROJECTBRANCH}
./install.sh

reboot.

takes about 30’
HTH
brgds

On reading this I thought, “I’ve done this before - what’s the problem?”

I’ve just installed Ubuntu Server 16.04.3 on VMWare ESXi so let’s give it a go. After it sorts itself out with a “dpkg --configure -a” :unamused: , the standard setup script works just fine and completes ok.

BUT note that I installed dump1090-mutability NOT dumpp1090-fa.

There was a recent workaround for dumpp1090-fa on the OrangePi-PC. But no tweaks required for dump1090-mutability. :smiley:

Same on a PC - just run the git command line to download, make executable, choose dump1090-mutability during install and everything is fine.

Have not checked whether reception is working but it did on an OrangePi-PC.

If you don’t like the map for mutability, look up the instructions to change to dump100-fa map. That’s what I do (sorry obj :wink: ).

Or just use the Google Map version of Dump1090-Mutability. Best version IMO.

On my old laptop (Intel i3 cpu) I had DUAL BOOT Win 7 + Ubuntu 10.10.

Tonight I upgraded Ubuntu from version 10.10 to 16.04 amd64, and installed dump1090-mutability using OPTION-3 of “Bake a Pi” thread.

Next 2 steps will be:
(1) Change dump1090-mutability map by Skyview map (Skin/GUI change only), using TWEAK-2(a) of thread “TWEAKS”

(2) Try to build & install Piaware data feeder from source, using JProchazka’s script. My attempt to install both Piaware and dump1090-fa, using Package Install, have FAILED.

DUMP1090-MUTABILITY ON UBUNTU 16.4 AMD64
https://s20.postimg.org/9r4vmjakd/Screenshot_from_2017-08-09_07-55-19.png

DUAL BOOT THROUGH WINDOWS MBR
https://s20.postimg.org/mv787ls1p/20170809_135609.jpg

DUAL BOOT, THROUGH UBUNTU GRUB
https://s20.postimg.org/6ybo2ia7x/20170809_042926.jpg

As a side-note, Windows 10 can have native sandboxed Ubuntu, OpenSUSE and SLES now (those are not in a virtual machine):

msdn.microsoft.com/en-us/comman … 2147217396

I’ve just tested the installation of adsb-receiver with dump1090-fa on a debian 8 virtual machine.
First thing to do is to build bladeRF from source.


cd ~
git clone https://github.com/Nuand/bladeRF.git
cd bladeRF
dpkg-buildpackage -b
sudo dpkg -i ../libbladerf1_xxx
sudo dpkg -i ../libbladerf-udev_xxx
sudo dpkg -i ../libbladerf-dev_xxx


“dpkg-buildpackage -b” will complain about unmet dependencies. Install them and restart the build process.


cd ~
git clone https://github.com/jprochazka/adsb-receiver.git
cd adsb-receiver
<update the versions in bash/variables.sh>
./installer.sh


Done.

@abcd567

tried before Ubuntu but failed, dont know why.
that’s why I use Xubuntu 16.04.

Perhaps I’m missing something here.
Site 3745 [Testbed (Rover)] is my 'portable pi. Goes in the RV, and can go to the airport in the car.
Android phone provides wireless hotspot to send to FA.
Laptop goes along for skyview.
I understand the thought experiment ‘Can I compile piaware on x86’. But, if you are just trying to get from here to there, it seems like there are easier paths. YMMV

Using JProchazka’s script, installed
(1) Piaware data feeder
(2) Planefinder data feeder
(3) Flightradar24 datafeeder
(4) Adsbexchange data feeder

For i386, version numbers are now updated in this post in post #1627 of hread “Adsb Receiver Project”:

[Url]https://discussions.flightaware.com/t/ads-b-receiver-project-setup-scripts/17807/1627[/url]

FlightAware PiAware
PIAWAREVERSION=“3.5.1”

PlaneFinder ADS-B Client
PFCLIENTVERSIONARM=“3.7.20”
PFCLIENTVERSIONI386=“3.7.1”

Flightradar24 Linux Debian package
FR24CLIENTVERSIONI386=“1.0.18-5”

mlat-client
MLATCLIENTVERSION=“0.2.9”
MLATCLIENTTAG=“v0.2.9”

Installed Web Portal / Graphs

Very cool, thanks!

Installation of dump1090-fa on Ubuntu 16.04 amd64 Laptop

Successfully applied to Ubuntu 16.04, shouriken’s method for Debian 8.
The technique used by shouriken is to built the bladeRF using source code from Nuand.

Here is the detailed step-by-step method for installing dump1090-fa and Piaware on Ubuntu 16.04 - amd64.

INSTALL PACKAGES/TOOLS NEEDED TO BUILD



sudo apt-get update
sudo apt-get -y install git
sudo apt-get -y install debhelper
sudo apt-get -y install cmake
sudo apt-get -y install libusb-1.0-0-dev


INSTALL PACKAGES NEEDED TO FULFILL DEPENDENCIES



sudo apt-get install -y doxygen
sudo apt-get install -y libtecla-dev
sudo apt-get install -y libtecla1-dev
sudo apt-get install -y help2man
sudo apt-get install -y pandoc
sudo apt-get install -y libncurses5-dev

BUILD PACKAGE bladeRF


sudo mkdir build-bladeRF
cd build-bladeRF
sudo git clone https://github.com/Nuand/bladeRF.git
cd bladeRF
sudo dpkg-buildpackage -b


AFTER BUILDPACKAGE IS SUCCESSFULLY COMPLETED



sudo dpkg -i ../libbladerf1_*
sudo dpkg -i ../libbladerf-udev_*
sudo dpkg -i ../libbladerf-dev_*


NOW RUN JPROCHAZKA’s SCRIPT TO BUILD & INSTALL DUMP1090-FA + PIAWARE


cd ~
git clone https://github.com/jprochazka/adsb-receiver.git


EDIT FILE VARIABLES.SH to Update version numbers.
For details, please see this post: [url]https://discussions.flightaware.com/t/ads-b-receiver-project-setup-scripts/17807/1627[/url]



sudo nano ~/adsb-receiver/bash/variables.sh


Now run the script



cd ~/adsb-receiver
chmod +x install.sh
./install.sh