.
CLICK ON SCREENSHOT TO SEE LARGER SIZE
SUCCESS With Another Puppy-Linux:
BionicDog (Forked from DebianDog)
Xnialpup lacks lot of infrastructure, and requires lots of workarounds and loads of packages to be added, and still no success as systemd still does not work properly, and also Piaware builder got stuck at cx_freez.
I landed into another version of Puppy-Linux, the BionicDog (forked from DebianDog). It is Ubuntu Bionic, but "pupped". It is fast and lightweigt (405 Mb), as well as has all the necessary infrastructure out of the box (i.e. firmware, systemd, apt, dpkg etc etc).
BionicDog
1 - Installation of OS on USB Flash Stick / Pendrive
1.1 - From above page download:
BionicDog32_2018-06-04-firmware_all.iso (Size: 405MB)
1.2 - Burn above .iso to a DVD. I have used a USB Flash instead, and burned image by Win32Disk imager. I will call it USB#1
1.3 - Boot PC using USB#1 (or DVD)
1.4 - Plugg-in 2nd USB Flash Stick / Pendrive on which the BionicDog Full install will be done. Call it USB#2
1.4 - Click menu → System → BionicDog-Full-Install
1.5 - Choose USB#2 as drive on which BionicDog will be installed (sdc1 in screenshot below, but it may be a different partition number on your computer)
1.6 - Click Install button
.
1.7 - Click “YES” button
.
.
1.8 - Click OK button
.
1.9 - Click OK button
.
1.10 - Congratulations, BionicDog is installed on USB#2 (sdc1 in this examle). Shutdown computer. When asked to “Save”, click “Quit” button.
.
2 - Remove Installation media (DVD or USB#1) and boot from USB#2.
NOTE:
(a) Booting from USB#2 takes about 2 ~ 3 minutes depending on speed of USB and CPU.
(b) During boot, at one stage, the display does not show any progress for a while. This gives the impression that computer has hanged/froze. Please be patient, it will automatically move-on after a while.
3 - Installation of dump1090-fa
.
3.1 - Update system
root@live:~# apt update
.
3.2 - Install packages necessary to build and to fulfil dependencies
root@live:~# apt install -y git curl build-essential debhelper pkg-config
root@live:~# apt install -y rtl-sdr librtlsdr-dev libusb-1.0-0 libusb-1.0-0-dev
root@live:~# apt install -y cron lighttpd fakeroot dh-systemd libncurses5-dev
.
.
3.3 - Clone source-code from github
root@live:~# git clone https://github.com/flightaware/dump1090.git
.
3.4 - Enter Cloned directory “dump1090”, and remove bladeRF entries from 2 files as shown in 2.4.1 & 2.4.2
root@live:~# cd dump1090
3.4.1. Edit file debian/control
and remove bladeRF
root@live:~# cd dump1090
root@live:~/dump1090# nano debian/control
- Scroll down till you find the first lines below.
- Scroll down further to find second line.
- Delete libbladerf in both lines as shown in red below.
.
3.4.2 - Edit file debian/rules
and change BLADERF=yes
to BLADERF=no
root@live:~# cd dump1090
root@live:~/dump1090# nano debian/rules
- Scroll down till you find the line shown below.
- Change BLADERF=yes to BLADERF=no as shown in red below.
.
3.5 - Build the dump1090-fa package
root@live:~# cd dump1090
root@live:~/dump1090# sudo dpkg-buildpackage -b
.
3.6 - After package building is completed, go out of dump1090 directory and check if the package is actually built:
root@live:~/dump1090# cd ../
root@live:~# ls
2019-01-26-163236_222x119_scrot.png dump1090-fa_3.6.3_i386.deb
Desktop dump1090-fa-dbgsym_3.6.3_i386.ddeb
Downloads my-documents
dump1090 Startup
dump1090_3.6.3_all.deb tint2launchers
dump1090-fa_3.6.3_i386.buildinfo txt2svg
dump1090-fa_3.6.3_i386.changes
.
3.7 - Install dump1090-fa
root@live:~# sudo dpkg -i dump1090-fa_*.deb
root@live:~# sudo reboot
.
3.8 - Check after Reboot
root@live:~# systemctl status dump1090-fa
● dump1090-fa.service - dump1090 ADS-B receiver (FlightAware customization)
Loaded: loaded (/lib/systemd/system/dump1090-fa.service; enabled; vendor preset: enabled)
Active: active (running) since Sun 2019-01-27 02:26:15 EST; 27s ago
Docs: https://flightaware.com/adsb/piaware/
Main PID: 21362 (dump1090-fa)
Tasks: 3 (limit: 4915)
CGroup: /system.slice/dump1090-fa.service
└─21362 /usr/bin/dump1090-fa --device-index 0 --gain -10 --ppm 0 --net-bo-port 300
Jan 27 02:26:15 live systemd[1]: Started dump1090 ADS-B receiver (FlightAware customization).
Jan 27 02:26:15 live dump1090-fa[21362]: Sun Jan 27 02:26:15 2019 EST dump1090-fa 3.6.3 star
Jan 27 02:26:15 live dump1090-fa[21362]: rtlsdr: using device #0: Generic RTL2832U (Realtek,
Jan 27 02:26:15 live dump1090-fa[21362]: Detached kernel driver
Jan 27 02:26:15 live dump1090-fa[21362]: Found Rafael Micro R820T tuner
Jan 27 02:26:15 live dump1090-fa[21362]: rtlsdr: enabling tuner AGC
.
NOTE:
1 - Using mag-mount antenna inside room
2 - VERY FEW FLIGHTS AT THIS HOUR OF NIGHT
CLICK ON SCREENSHOT TO SEE LARGER SIZE
.
4 - Installation of Piaware data feeder
.
4.1 - Update system
root@live:~# apt update
.
4.2 - Install packages necessary to build and to fulfil dependencies
root@live:~# apt install -y git devscripts build-essential debhelper
root@live:~# apt install -y tcl8.6-dev autoconf python3-dev python3-venv
root@live:~# apt install -y virtualenv dh-systemd zlib1g-dev tclx8.4
root@live:~# apt install -y tcllib tcl-tls itcl3 net-tools
.
4.3 - Clone source-code and build Piaware package
root@live:~# git clone https://github.com/flightaware/piaware_builder.git
root@live:~# cd piaware_builder
root@live:~/piaware_builder# CODENAME=(`lsb_release -sc`)
root@live:~/piaware_builder# echo ${CODENAME}
root@live:~/piaware_builder# ./sensible-build.sh ${CODENAME}
root@live:~/piaware_builder# cd package-${CODENAME}
root@live:~/piaware_builder/package-bionic# dpkg-buildpackage -b
.
4.4 - Check if the package is actually built
root@live:~/piaware_builder/package-bionic# cd ../
root@live:~/piaware_builder# ls
bionic package-bionic README.md
changelog piaware_3.6.3~ubuntu1804+1_i386.buildinfo sensible-build.sh
common piaware_3.6.3~ubuntu1804+1_i386.changes stretch
Jenkinsfile piaware_3.6.3~ubuntu1804+1_i386.deb wheezy
jessie piaware-dbgsym_3.6.3~ubuntu1804+1_i386.ddeb xenial
.
4.5 - Install Piaware
root@live:~/piaware_builder# sudo dpkg -i piaware_*.deb
.
4.6 - CONFIGURE PIAWARE
root@live:~/piaware_builder# cd
root@live:~# piaware-config feeder-id xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
root@live:~# piaware-config allow-auto-updates yes
root@live:~# piaware-config allow-manual-updates yes
root@live:~# systemctl restart piaware
.
4.7 - Check Status
root@live:~# systemctl status piaware
● piaware.service - FlightAware ADS-B uploader
Loaded: loaded (/lib/systemd/system/piaware.service; enabled; vendor preset: enabled)
Active: active (running) since Sun 2019-01-27 03:46:17 EST; 7min ago
Docs: https://flightaware.com/adsb/piaware/
Main PID: 32197 (piaware)
Tasks: 4 (limit: 4915)
CGroup: /system.slice/piaware.service
├─32197 /usr/bin/piaware -p /run/piaware/piaware.pid -plainlog -statusfile /run/piaware/status.json
├─32218 /usr/lib/piaware/helpers/fa-mlat-client --input-connect localhost:30005 --input-type dump1090 --results beast,connect,
└─32704 /usr/lib/piaware/helpers/faup1090 --net-bo-ipaddr localhost --net-bo-port 30005 --stdout --lat 43.xxx --lon -79.xxx
Jan 27 03:46:52 live piaware[32197]: 0 msgs recv'd from dump1090; 0 msgs sent to FlightAware
Jan 27 03:47:21 live sudo[32702]: piaware : TTY=unknown ; PWD=/ ; USER=root ; COMMAND=/bin/netstat --program --tcp --wide --all --numeri
Jan 27 03:47:21 live sudo[32702]: pam_unix(sudo:session): session opened for user root by (uid=0)
Jan 27 03:47:21 live sudo[32702]: pam_unix(sudo:session): session closed for user root
Jan 27 03:47:21 live piaware[32197]: ADS-B data program 'dump1090-fa' is listening on port 30005, so far so good
Jan 27 03:47:21 live piaware[32197]: Starting faup1090: /usr/lib/piaware/helpers/faup1090 --net-bo-ipaddr localhost --net-bo-port 30005 -
Jan 27 03:47:21 live piaware[32197]: Started faup1090 (pid 32704) to connect to dump1090-fa
Jan 27 03:47:21 live piaware[32197]: piaware received a message from dump1090-fa!
Jan 27 03:48:32 live piaware[32197]: piaware has successfully sent several msgs to FlightAware!
Jan 27 03:51:52 live piaware[32197]: 16 msgs recv'd from dump1090-fa (16 in last 5m); 16 msgs sent to FlightAware