Howto Install Piaware 4.0 on Debian-10 amd64, Ubuntu-20 amd64 & Kali-2020 amd64 on PC

OPTION-1: Upgrade from version 3.8.1

If you have build & installed ver 3.8.1 packages from source-code, then:

  1. You already have all the build tool and dependencies (except two new one) already installed.
  2. You already have source-code on your Pi in following folders:
  • dump1090
  • piaware_builder

To build and install new packages for version 4.0, do this:

1.1 - DUMP1090-FA

sudo apt install libhackrf-dev liblimesuite-dev libbladerf-dev  

cd dump1090  
git fetch --all  
git reset --hard origin/master

sudo dpkg-buildpackage -b --no-sign 

cd ../
sudo dpkg -i dump1090-fa_4.0_*.deb 

1.2 - PIAWARE

cd piaware_builder 
git fetch --all 
git reset --hard origin/master 

sudo ./sensible-build.sh buster  
cd package-buster   
sudo dpkg-buildpackage -b --no-sign   

cd ../   
sudo dpkg -i piaware_4.0_*.deb 

1.3 - DUMP978-FA

cd dump978  
git fetch --all  
git reset --hard origin/master

sudo dpkg-buildpackage -b --no-sign 

cd ../
sudo dpkg -i dump978-fa_4.0_*.deb 
sudo dpkg -i skyaware978_4.0_*.deb 

 



OPTION-2: Fresh Install By Automated Scripts

The bash scripts given below do following:
(1) clone source-code from Flightaware’s Github site.
(2) Install build tools & dependencies.
(3) Build .deb package from the source-code.
(4) Install the .deb package built by script.
(5) Enable the installation in systemd (for Kali Linux)
(sudo systemctl enable dump1090-fa, and sudo systemctl enable piaware)

2.1 - DUMP1090-FA

Copy-paste following command in SSH console and press Enter key. The script will install dump1090-fa.

sudo bash -c "$(wget -O - https://raw.githubusercontent.com/abcd567a/piaware-ubuntu20-amd64/master/install-dump1090-fa.sh)"

2.2 - PIAWARE

Copy-paste following command in SSH console and press Enter key. The script will install piaware.

sudo bash -c "$(wget -O - https://raw.githubusercontent.com/abcd567a/piaware-ubuntu20-amd64/master/install-piaware.sh)"

2.3- DUMP978-FA (For USA Only)

NOTE:
After the bash script below completes installation of dump978-fa, scroll down and execute following item:
4 - Configuration for using both dump1090-fa & dump978-fa (Two dongles are required)

sudo bash -c "$(wget -O - https://raw.githubusercontent.com/abcd567a/piaware-ubuntu20-amd64/master/install-dump978-fa.sh)"

Information & Guide:

https://github.com/abcd567a/piaware-ubuntu20-amd64/blob/master/README.md

 



OPTION-3: Fresh Install By Manually Building Packages from Source Code

3.1- DUMP1090-FA

3.1.1 - Install build tools

sudo apt install -y git build-essential debhelper pkg-config dh-systemd 

3.1.2 - Install dependencies

sudo apt install -y librtlsdr-dev libncurses5-dev lighttpd 
sudo apt install -y libbladerf-dev libhackrf-dev liblimesuite-dev 

## Following two commands are for Kali Linux only
sudo systemctl enable lighttpd 
sudo systemctl restart lighttpd

3.1.3 - Clone dump1090-fa source code and build dump1090-fa package

cd /~ 
git clone https://github.com/flightaware/dump1090 

cd dump1090
sudo dpkg-buildpackage -b --no-sign 

3.1.4 - Install dump1090-fa package

cd ../ 
sudo dpkg -i dump1090-fa_*.deb 

## Following two commands are for Kali Linux only
sudo systemctl enable dump1090-fa 
sudo systemctl restart dump1090-fa 

## REBOOT COMPUTER
sudo reboot

3.2 - PIAWARE

3.2.1 - Install build tools

sudo apt install -y git debhelper dh-systemd 

3.2.2 Build & Install tcl-tls from source code.

3.2.2.1 - Install tcl-tls dependencies

sudo apt install -y libssl-dev tcl-dev chrpath 

3.2.2.2 - Clone tcl-tls source code and build tcl-tls package*

cd /~
git clone http://github.com/flightaware/tcltls-rebuild.git 

cd tcltls-rebuild 
./prepare-build.sh buster 
cd package-buster 
sudo dpkg-buildpackage -b --no-sign 

3.2.2.3 - Installing tcl-tls package

cd ../ 
sudo dpkg -i tcl-tls_*.deb 

3.2.3 - Install piaware dependencies

sudo apt install -y python3-dev python3-venv 
sudo apt install -y libboost-system-dev libboost-program-options-dev 
sudo apt install -y libboost-regex-dev libboost-filesystem-dev 
sudo apt install -y net-tools tclx8.4 tcllib itcl3 

3.2.4 - Clone piaware source code and building package

cd /~
git clone http://github.com/flightaware/piaware_builder 

cd piaware_builder 
sudo ./sensible-build.sh buster 
cd package-buster 
sudo dpkg-buildpackage -b --no-sign 

3.2.5 - Install piaware package

cd ../ sudo dpkg -i piaware_*.deb 

## Following two commands are for Kali only
sudo systemctl enable piaware 
sudo systemctl restart piaware 

3.2.6 - Configuration

If you already have feeder-id, please configure piaware with it using commands below. The Feeder Id (Unique Identifier) is available on this address while you are logged-in to your Flightaware account:

https://flightaware.com/adsb/stats/user/

In first command below, replace xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx by your actual feeder-id (Unique Identifier)

sudo piaware-config feeder-id xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx 

sudo piaware-config allow-manual-updates yes  
sudo piaware-config allow-auto-updates yes 
sudo systemctl restart piaware 

If you dont already have a feeder-id, please go to Flightaware Claim page while loggedin

https://flightaware.com/adsb/piaware/claim

 

 

3.3 - Build and Install DUMP978-FA - (For USA only)

3.3.1 - Install dump978-fa dependencies

sudo apt install libsoapysdr-dev soapysdr-module-rtlsdr    

3.2.2 - Clone dump978-fa source code, build package, and install it.

cd ~/  
git clone https://github.com/flightaware/dump978  
cd dump978 
sudo dpkg-buildpackage -b --no-sign  
cd ../  
sudo dpkg -i dump978-fa_*.deb  
sudo dpkg -i skyaware978_*.deb   

3.3.3. - Enable piaware to use dump978-fa

sudo piaware-config uat-receiver-type sdr  
sudo systemctl restart piaware   

4 - Configuration for using both dump1090-fa & dump978-fa (Two dongles are required)

4.1 - Serialize dongles: (CLICK HERE)

If you want to receive both ES1090 and UAT978, then two dongles are required, one for 1090 and other for 978. In this case you will have to serialize dongles so that correct dongle+antenna sets are used by dump1090-fa and dump978-fa.

For 1090 Mhz dongle: use serial # 00001090
For 978 Mhz dongle : use serial # 00000978

4.2 - Configure dump1090-fa & dump978-fa to use dongles of assigned serial numbers

sudo sed -i 's/--device-index 0/--device-index 00001090/' /etc/default/dump1090-fa   
sudo sed -i 's/driver=rtlsdr/driver=rtlsdr,serial=00000978/' /etc/default/dump978-fa   

4.3 - Reboot so that dump1090-fa & dump978-fa can pick their assigned dongles at boot

$ sudo reboot  

5 - USING ONLY ONE FREQUENCY (978 Mhz OR 1090 Mhz)

5.1 - If you want to run 978 Mhz only

In this case, you will need only one dongle, but you will have to disable dump1090-fa by following command

sudo piaware-config uat-receiver-type sdr
sudo piaware-config receiver-type none
sudo systemctl restart piaware

To re-enable dump1090-fa (requires an additional dongle for dump1090-fa)

sudo piaware-config receiver-type rtlsdr
sudo systemctl restart piaware

5.2 - If you want to run 1090 Mhz only

In this case, you will need only one dongle, but you will have to disable dump978-fa by following command

sudo piaware-config receiver-type rtlsdr
sudo piaware-config uat-receiver-type none
sudo systemctl restart piaware

To re-enable dump978-fa (requires an additional dongle for dump978-fa)

sudo piaware-config uat-receiver-type sdr
sudo systemctl restart piaware
3 Likes

Thank you, you made my reinstall much easier, after I have swapped the dead SSD.

1 Like

6 - B O N U S

6.0 Piaware-web

Copy-paste following command and press Enter key.

sudo bash -c "$(wget -O - https://raw.githubusercontent.com/abcd567a/piaware-ubuntu20-amd64/master/install-piaware-web.sh)"

6.1 - ModeSMixer2

6.1.1 - For Debian 10, copy-paste following command and press Enter key.
sudo bash -c "$(wget -O - https://raw.githubusercontent.com/abcd567a/mm2/master/install-mm2-debian10.sh)"

6.1.2 - For Ubuntu20 and Kali2020, copy-paste following command and press Enter key.
sudo bash -c "$(wget -O - https://raw.githubusercontent.com/abcd567a/mm2/master/install-mm2-ubuntu20.sh)"

6.1.3 - When the script finishes installation, it will display instructions to configure. Follow those instructions

6.1.4 - For help and to list all config parameters:
modesmixer2 --help

6.1.5 - For detailed Install, Configuration, and Uninstall instructions:
https://github.com/abcd567a/mm2/blob/master/README.md

 

6.2 - Flightradar24 Feeder

6.2.1 - Issue following two commands to download and install fr24feed’s deb package for amd64 architecture:

wget https://repo-feed.flightradar24.com/linux_x86_64_binaries/fr24feed_1.0.25-3_amd64.deb    

sudo dpkg -i fr24feed_1.0.25-3_amd64.deb   

 

6.2.2 - CONFIGURE

CASE (a): If you have a sharing key:
sudo nano /etc/fr24feed.ini

Above command will open a file with following entries

bs=yes
raw=yes
mlat="yes"
mlat-without-gps="yes"

Add following lines to the file fr24feed.ini (replace xxxxxxxxxxx by your actual sharing key).

receiver="beast-tcp"
host="127.0.0.1:30005"
fr24key="xxxxxxxxxxxxxx"

Save file (Ctrl+o) and close (Ctrl+x)

Restart fr24feed
sudo systemctl restart fr24feed

Wait for few minutes, then check status
fr24feed-status

CASE (b): If you do NOT have a sharing key:
signup using following command and provide your details such as email, latitude, longitude etc

sudo fr24feed --signup
sudo systemctl restart fr24feed

Wait for fe minutes, then check status
fr24feed-status

 

6.3 - Planefinder feeder

This method uses i386 deb package, as planefinder’s amd64 package is not available

6.3.1 - Prepare x86_64 OS to accept i386 deb package and i386 linux binary

sudo dpkg --add-architecture i386   
## Check
dpkg --print-foreign-architectures    
# i386

## Update apt 
sudo apt update   

 

6.3.2 - Install dependencies

sudo apt install gcc-8-base:i386 libc6:i386 libgcc1:i386 libidn2-0:i386 libunistring2:i386   

 

6.3.3 - Download and install deb package “pfclient_4.1.1_i386.deb”

wget http://client.planefinder.net/pfclient_4.1.1_i386.deb   

sudo dpkg -i pfclient_4.1.1_i386.deb   

sudo systemctl status pfclient   

 

6.3.4 - In your browser go to page localhost:30053 (or to IP:30053 from another computer)
If you dont have a sharing key: Add your email and other details
If you have sharing key, add it & latitude, longitude.

 

 

2 Likes

I wonder if mm2mixer can be configured to show up on /tar1090 too?

Possibly by following method, but I have not tested it.

sudo nano /usr/share/mm2/mm2.conf

In above file, add following lines to feed data from modesmixer2 to dump1090-fa (or tar1090) on port 30004 (beast) & 30104 (mlat)

 --outServer  beast:30004
 --outServer  beastmlat:30104  

OR

Assuming tar1090 is running on another Pi with IP address 192.168.0.16

--outConnect beast:192.168.0.16:30004
--outConnect beastmlat:192.168.0.16:30104  

 

Oh, I meant the actual range sweeps, not the planes.
Or other method to show the actual range.

/tar1090/?pTracks is recommended for judging actual range.
By default covers the last 8 hours, see the github page for more.

1 Like

That /pTracks… is VERY nice looking, but also kind of kills the browser with that many lines, takes 10-20 seconds to draw. A contour is less resource hog.

PS: I have a way smaller coverage now days…
My tree antenna had its rope rub against bark and eventually broke. It fell on the ground, and I didn’t have time to lift it up again in the tree. So I zip-tied against my kids trampoline bars (about 9’ high)… before I left home for a 60 days trip over the Atlantic.
Accessing the home network with ZeroTier.

Most don’t have quite as much traffic as you do.

/?pTracks=2
Try this maybe for 2 hours?

You can also filter by altitude after it has loaded.

Maybe i’ll make something that records the contour and puts it in a file … we’ll see.
Probably not soon :wink:

1 Like

Install piaware-web

sudo bash -c "$(wget -O - https://raw.githubusercontent.com/abcd567a/piaware-ubuntu20-amd64/master/install-piaware-web.sh)"

 

 

I have already upgraded to buster, run version 3.8.1 and want to upgrade to piaware 4. As I send data to you and ADSBEx will an upgrade mean any extra work to configure data being sent or received from ADSBEx

Thanks

Is this the appropriate place for this query. It seems to be about updates and impact on other service providers so passes that test.

Thanks

The procedure for piaware should be now:

cd piaware_builder 
sudo git fetch --all 
sudo git reset --hard origin/master 

sudo ./sensible-build.sh buster  
cd package-buster   
sudo dpkg-buildpackage -b --no-sign   

cd ../   
sudo dpkg -i piaware_5.0_*.deb 

And for dump1090:
dpkg-genbuildinfo --build=binary
dpkg-genchanges --build=binary >…/dump1090-fa_5.0_amd64.changes
dpkg-genchanges: info: binary-only upload (no source code included)
dpkg-source --after-build .
dpkg-buildpackage: info: binary-only upload (no source included)

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.