PiAware on Ubuntu 18.10

FAILED ATTEMPT IF GENUINE NAME “COSMIC” IS USED

abcd@ubuntu1810:~/piaware_builder$ CODENAME=(`lsb_release -sc`)
abcd@ubuntu1810:~/piaware_builder$ echo ${CODENAME}
cosmic

abcd@ubuntu1810:~/piaware_builder$ ./sensible-build.sh ${CODENAME}
unknown build distribution cosmic
syntax: ./sensible-build.sh <wheezy|jessie|stretch|xenial|bionic>

WORKAROUND

Use: CODENAME=“bionic”
Instead of: CODENAME=(`lsb_release -sc`)

abcd@ubuntu1810:~/piaware_builder$ CODENAME="bionic"
abcd@ubuntu1810:~/piaware_builder$ echo ${CODENAME}
bionic

abcd@ubuntu1810:~/piaware_builder$ ./sensible-build.sh ${CODENAME}
Retrieving v3.6.3 from https://github.com/flightaware/piaware.git
Cloning into './package-bionic/piaware'...
remote: Enumerating objects: 3418, done.
remote: Total 3418 (delta 0), reused 0 (delta 0), pack-reused 3418
Receiving objects: 100% (3418/3418), 906.93 KiB | 3.67 MiB/s, done.
..... .... .... .....
..... .... .... .....
..... .... .... .....
Retrieving cxfreeze
2018-12-28 05:30:38 URL:https://files.pythonhosted.org/packages/5f/16/eab51d6571dfec2554248cb027c51babd04d97f594ab6359e0707361297d/cx_Freeze-5.1.1.tar.gz [61381/61381] -> "-" [1]
Updating changelog for bionic (18.04) build
Ok, package is ready to be built in ./package-bionic
run 'dpkg-buildpackage -b' there (or move it to a Pi and do so there, or use pbuilder, etc)

.
.

abcd@ubuntu1810:~/piaware_builder$ cd package-${CODENAME}
abcd@ubuntu1810:~/piaware_builder/package-bionic$ dpkg-buildpackage -b
dpkg-buildpackage: info: source package piaware
dpkg-buildpackage: info: source version 3.6.3~ubuntu1804+1
dpkg-buildpackage: info: source distribution bionic
dpkg-buildpackage: info: source changed by FlightAware build automation <adsb-devs@flightaware.com>
dpkg-buildpackage: info: host architecture amd64
 dpkg-source --before-build package-bionic
 fakeroot debian/rules clean
dh clean --with=systemd
   debian/rules override_dh_auto_clean
make[1]: Entering directory '/home/abcd/piaware_builder/package-bionic'
..... .... .... .....
..... .... .... .....
..... .... .... .....
   dh_builddeb
	dpkg-deb --build debian/piaware ..
dpkg-deb: building package 'piaware' in '../piaware_3.6.3~ubuntu1804+1_amd64.deb'.
..... .... .... .....
..... .... .... .....
..... .... .... .....
abcd@ubuntu1810:~/piaware_builder/package-bionic$ ls ../
bionic       package-bionic                                README.md
changelog    piaware_3.6.3~ubuntu1804+1_amd64.buildinfo    sensible-build.sh
common       piaware_3.6.3~ubuntu1804+1_amd64.changes      stretch
Jenkinsfile  piaware_3.6.3~ubuntu1804+1_amd64.deb          wheezy
jessie       piaware-dbgsym_3.6.3~ubuntu1804+1_amd64.ddeb  xenial


abcd@ubuntu1810:~/piaware_builder/package-bionic$ cd ../
abcd@ubuntu1810:~/piaware_builder$ sudo dpkg -i piaware_*.deb
Selecting previously unselected package piaware.
(Reading database ... 142153 files and directories currently installed.)
Preparing to unpack piaware_3.6.3~ubuntu1804+1_amd64.deb ...
Unpacking piaware (3.6.3~ubuntu1804+1) ...
Setting up piaware (3.6.3~ubuntu1804+1) ...
Created symlink /etc/systemd/system/default.target.wants/piaware.service → /lib/systemd/system/piaware.service.
Created symlink /etc/systemd/system/piaware.service.wants/generate-pirehose-cert.service → /lib/systemd/system/generate-pirehose-cert.service.
Processing triggers for libc-bin (2.28-0ubuntu1) ...
Processing triggers for systemd (239-7ubuntu10) ...
Processing triggers for rsyslog (8.32.0-1ubuntu5) ...
Processing triggers for man-db (2.8.4-2) ...

.
.

abcd@ubuntu1810:~/piaware_builder$ sudo systemctl status piaware

● piaware.service - FlightAware ADS-B uploader
   Loaded: loaded (/lib/systemd/system/piaware.service; enabled; vendor preset:
   Active: active (running) since Fri 2018-12-28 05:36:17 EST; 1min 1s ago
     Docs: https://flightaware.com/adsb/piaware/
 Main PID: 14402 (piaware)
    Tasks: 3 (limit: 2339)
   Memory: 8.7M
   CGroup: /system.slice/piaware.service
           ├─14402 /usr/bin/piaware -p /run/piaware/piaware.pid -plainlog -stat
           └─14525 /usr/lib/piaware/helpers/faup1090 --net-bo-ipaddr localhost 

Dec 28 05:36:25 ubuntu1810 sudo[14510]:  piaware : TTY=unknown ; PWD=/ ; USER=ro
Dec 28 05:36:25 ubuntu1810 sudo[14510]: pam_unix(sudo:session): session opened f
Dec 28 05:36:25 ubuntu1810 sudo[14510]: pam_unix(sudo:session): session closed f
Dec 28 05:36:25 ubuntu1810 piaware[14402]: ADS-B data program 'dump1090-fa' is l
Dec 28 05:36:25 ubuntu1810 piaware[14402]: Starting faup1090: /usr/lib/piaware/h
Dec 28 05:36:25 ubuntu1810 piaware[14402]: Started faup1090 (pid 14525) to conne
Dec 28 05:36:25 ubuntu1810 piaware[14402]: logged in to FlightAware as user gues
Dec 28 05:36:25 ubuntu1810 piaware[14402]: my feeder ID is 8ff016a6-ac6c-4d52-a0
Dec 28 05:36:25 ubuntu1810 piaware[14402]: piaware received a message from dump1
Dec 28 05:36:55 ubuntu1810 piaware[14402]: 1 msgs recv'd from dump1090-fa; 1 msg