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 32

 



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/ 3

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.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©️ discussions.flightaware.com

Комментарии

Популярные сообщения из этого блога

S.M.A.R.T. (часть 3). Расшифровка и понимание SMART атрибутов

Настройка PROXMOX

Configuring IPMI under Linux using ipmitool