# Installing PiAware on Ubuntu

**URL:** <https://discussions.flightaware.com/t/installing-piaware-on-ubuntu/15522>\
**Category:** ADS-B Flight Tracking\
**Created:** [October 6, 2014, 1:27am UTC](https://discussions.flightaware.com/t/installing-piaware-on-ubuntu/15522 "2014-10-06T01:27:34Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rubyducky](https://avatars.discourse-cdn.com/v4/letter/r/a9a28c/32.png) [@Rubyducky](https://discussions.flightaware.com/u/Rubyducky)\
**Post date:** [October 6, 2014, 1:27am UTC](https://discussions.flightaware.com/t/installing-piaware-on-ubuntu/15522/1 "2014-10-06T01:27:34Z")

</div>

I have successfully installed PiAware and the associated software on Ubuntu and documented the process! Hopefully this is useful to someone…

[pastebin.com/eKbm118F](http://pastebin.com/eKbm118F)

---

<div class="post-metadata">

**Author:** ![dbaker](https://sea1.discourse-cdn.com/flex019/user_avatar/discussions.flightaware.com/dbaker/32/97166_2.png) [@dbaker](https://discussions.flightaware.com/u/dbaker)\
**Post date:** [October 6, 2014, 3:16pm UTC](https://discussions.flightaware.com/t/installing-piaware-on-ubuntu/15522/2 "2014-10-06T15:16:10Z")

</div>

Awesome! We can use this as a jumping off point for official support!

---

<div class="post-metadata">

**Author:** ![martindejmal](https://avatars.discourse-cdn.com/v4/letter/m/94ad74/32.png) [@martindejmal](https://discussions.flightaware.com/u/martindejmal)\
**Post date:** [October 20, 2014, 6:23pm UTC](https://discussions.flightaware.com/t/installing-piaware-on-ubuntu/15522/3 "2014-10-20T18:23:21Z")

</div>

Thanks, it helped me to install on Raspbian on my Raspberry Pi, since I run Jessie Raspbian which does not contain some legacy dependency packages which piaware relies on.

---

<div class="post-metadata">

**Author:** ![N101JL](https://sea1.discourse-cdn.com/flex019/user_avatar/discussions.flightaware.com/n101jl/32/108060_2.png) [@N101JL](https://discussions.flightaware.com/u/N101JL)\
**Post date:** [April 9, 2015, 12:40am UTC](https://discussions.flightaware.com/t/installing-piaware-on-ubuntu/15522/4 "2015-04-09T00:40:54Z")

</div>

Worked great! I’m currently working on substituting dump1090-mutability.

---

<div class="post-metadata">

**Author:** ![obj](https://sea1.discourse-cdn.com/flex019/user_avatar/discussions.flightaware.com/obj/32/118984_2.png) [@obj](https://discussions.flightaware.com/u/obj)\
**Post date:** [April 9, 2015, 8:21am UTC](https://discussions.flightaware.com/t/installing-piaware-on-ubuntu/15522/5 "2015-04-09T08:21:45Z")

</div>

I have some 14.04 packages of piaware-mutability + dump1090-mutability available in a PPA here: [launchpad.net/~ojowett/+archive/ubuntu/dump1090](https://launchpad.net/~ojowett/+archive/ubuntu/dump1090)

---

<div class="post-metadata">

**Author:** ![rjankowski](https://sea1.discourse-cdn.com/flex019/user_avatar/discussions.flightaware.com/rjankowski/32/128888_2.png) [@rjankowski](https://discussions.flightaware.com/u/rjankowski)\
**Post date:** [April 9, 2015, 7:31pm UTC](https://discussions.flightaware.com/t/installing-piaware-on-ubuntu/15522/6 "2015-04-09T19:31:32Z")

</div>

> [@obj](#):
>
> I have some 14.04 packages of piaware-mutability + dump1090-mutability available in a PPA here: [launchpad.net/~ojowett/+archive/ubuntu/dump1090](https://launchpad.net/~ojowett/+archive/ubuntu/dump1090)

This is what I used on my Ubuntu VM running PiAware-mutability. Works great and easy to keep up to date with apt. 😃

---

<div class="post-metadata">

**Author:** ![pault949](https://avatars.discourse-cdn.com/v4/letter/p/a587f6/32.png) [@pault949](https://discussions.flightaware.com/u/pault949)\
**Post date:** [April 10, 2015, 10:10pm UTC](https://discussions.flightaware.com/t/installing-piaware-on-ubuntu/15522/7 "2015-04-10T22:10:39Z")

</div>

> [@obj](#):
>
> I have some 14.04 packages of piaware-mutability + dump1090-mutability available in a PPA here: [launchpad.net/~ojowett/+archive/ubuntu/dump1090](https://launchpad.net/~ojowett/+archive/ubuntu/dump1090)

obj,

First of all, thanks so much for all your hard work on this software. This community definitely appreciates it.

I have a quick question. I have a remote site about 4 hours from here that I am accessing via a VPN that I set up. I would like to run piaware-mutability locally on my server taking data from my remote pi (dump1090-mutability will not be running on the server). For instance, I am feeing VRS using data off port 30003 from the remote pis VPN address. Could something similar be done to feed piaware? I used dpkg-reconfigure and saw no options that would allow me to do something like that. I don’t know if you would know of a back door way to do it.

Thanks again for your time.

-Paul

---

<div class="post-metadata">

**Author:** ![obj](https://sea1.discourse-cdn.com/flex019/user_avatar/discussions.flightaware.com/obj/32/118984_2.png) [@obj](https://discussions.flightaware.com/u/obj)\
**Post date:** [April 10, 2015, 11:58pm UTC](https://discussions.flightaware.com/t/installing-piaware-on-ubuntu/15522/8 "2015-04-10T23:58:58Z")

</div>

dump1090 doesn’t have a mechanism to do this directly - it always expects something else to connect to it - but you can set up a pair of netcat processes to push data between two dump1090s.

```auto

nc -d sourcepi 30005 | nc -q1 destpi 30004

```

see also: [post157185.html#p157185](http://discussions.flightaware.com/post157185.html#p157185)

note that at higher message rates you will need a reasonable amount of bandwidth between sites - figure on needing around 20 bytes/message.

Also note that if the sites are in different locations you probably want to run a separate piaware for each location anyway so that flightaware doesn’t get confused.

(edit: I may be misreading exactly what you want to do here…)

---

<div class="post-metadata">

**Author:** ![pault949](https://avatars.discourse-cdn.com/v4/letter/p/a587f6/32.png) [@pault949](https://discussions.flightaware.com/u/pault949)\
**Post date:** [April 11, 2015, 12:21am UTC](https://discussions.flightaware.com/t/installing-piaware-on-ubuntu/15522/9 "2015-04-11T00:21:41Z")

</div>

> [@obj](#):
>
> dump1090 doesn’t have a mechanism to do this directly - it always expects something else to connect to it - but you can set up a pair of netcat processes to push data between two dump1090s.
> 
> ```auto
> 
> nc -d sourcepi 30005 | nc -q1 destpi 30004
> 
> ```
> 
> see also: [post157185.html#p157185](http://discussions.flightaware.com/post157185.html#p157185)
> 
> note that at higher message rates you will need a reasonable amount of bandwidth between sites - figure on needing around 20 bytes/message.
> 
> Also note that if the sites are in different locations you probably want to run a separate piaware for each location anyway so that flightaware doesn’t get confused.
> 
> (edit: I may be misreading exactly what you want to do here…)

Thanks for the reply, but you’re right. I think you misunderstood what I want to do. I have a pi that is running dump1090 ‘out in the field’. It is connected to my home server via a VPN connection. I would like to run piaware on my local server and ‘listen’ to the dump1090 from the client pi and report the data to Flight Aware from my server.

My other main pi in my attic is completely separate running dump1090 and piaware; there will be no conflict.

-Paul

---

<div class="post-metadata">

**Author:** ![PeterHR](https://sea1.discourse-cdn.com/flex019/user_avatar/discussions.flightaware.com/peterhr/32/114359_2.png) [@PeterHR](https://discussions.flightaware.com/u/PeterHR)\
**Post date:** [April 11, 2015, 7:00am UTC](https://discussions.flightaware.com/t/installing-piaware-on-ubuntu/15522/10 "2015-04-11T07:00:24Z")

</div>

I would suspect that there would be a lot of data passed from dump1090 to PiAware - no one would would have done any work optimise or compress it since both would be expected to be close to each other - either on the same piece of hardware or on the same LAN.

If you cannot feed to flightaware from the remote location directly due to a network restriction I wonder if you could run PIAware on the remote and route the data to your server over the VPN then on to FlightAware

---

<div class="post-metadata">

**Author:** ![obj](https://sea1.discourse-cdn.com/flex019/user_avatar/discussions.flightaware.com/obj/32/118984_2.png) [@obj](https://discussions.flightaware.com/u/obj)\
**Post date:** [April 11, 2015, 9:24am UTC](https://discussions.flightaware.com/t/installing-piaware-on-ubuntu/15522/11 "2015-04-11T09:24:56Z")

</div>

> [@pault949](#):
>
> Thanks for the reply, but you’re right. I think you misunderstood what I want to do. I have a pi that is running dump1090 ‘out in the field’. It is connected to my home server via a VPN connection. I would like to run piaware on my local server and ‘listen’ to the dump1090 from the client pi and report the data to Flight Aware from my server.

Right, OK.

Piaware wants to connect to port 10001 on localhost for data. It’ll always connect to localhost, there’s no way to change that.  
If there’s nothing providing data on port 10001 but there is something on port 30005 on localhost, it’ll start faup1090 to translate. Again this isn’t configurable.

So to get this working you’d need to provide a listening port on your local server. You can do this with a slightly different netcat incantation, something like this:

```auto

# port 10001:
user@localserver$ nc -d remoteserver 10001 | nc -l -q1 10001
# or port 30005:
user@localserver$ nc -d remoteserver 30005 | nc -l -q1 30005

```

(you’d want to do the usual things of wrapping it in a loop / startup script etc)

This is likely to be a bit flaky as data will start turning up and being buffered in the pipe before the listening connection has arrived, but I don’t think you can fix that using only netcat.

If you can transport 10001 that will be less data. dump1090-mutability, or flightaware’s dump1090, will produce this output; vanilla dump1090 won’t.

Another option might be to start faup1090 by hand on the local server and tell it to connect to the remote server for port 30005 data. I think there are options to do this but I don’t have a copy on hand right now to check.

But it would be much simpler to just run piaware directly in the receiver if you can.

---

<div class="post-metadata">

**Author:** ![pault949](https://avatars.discourse-cdn.com/v4/letter/p/a587f6/32.png) [@pault949](https://discussions.flightaware.com/u/pault949)\
**Post date:** [April 11, 2015, 12:36pm UTC](https://discussions.flightaware.com/t/installing-piaware-on-ubuntu/15522/12 "2015-04-11T12:36:15Z")

</div>

Thanks, obj for the thoroughly thought out reply. I’m thinking your last statement is the best option. The former idea might be too fancy and less sustainable over time.

---

<div class="post-metadata">

**Author:** ![TonMachielsen](https://sea1.discourse-cdn.com/flex019/user_avatar/discussions.flightaware.com/tonmachielsen/32/22569_2.png) [@TonMachielsen](https://discussions.flightaware.com/u/TonMachielsen)\
**Post date:** [May 16, 2015, 9:13am UTC](https://discussions.flightaware.com/t/installing-piaware-on-ubuntu/15522/13 "2015-05-16T09:13:25Z")

</div>

Followed your instructions yesterday and awesome, without any errors. All working great on my old Ubuntu box.

Thanks for figuring this out and for sharing!!

Ton.

---

<div class="post-metadata">

**Author:** ![cptfbi](https://avatars.discourse-cdn.com/v4/letter/c/f4b2a3/32.png) [@cptfbi](https://discussions.flightaware.com/u/cptfbi)\
**Post date:** [July 17, 2015, 11:57pm UTC](https://discussions.flightaware.com/t/installing-piaware-on-ubuntu/15522/14 "2015-07-17T23:57:15Z")

</div>

How do I go about updating the version of Piaware in this setup? im stuck on version 1.18-2 ☹

---

<div class="post-metadata">

**Author:** ![obj](https://sea1.discourse-cdn.com/flex019/user_avatar/discussions.flightaware.com/obj/32/118984_2.png) [@obj](https://discussions.flightaware.com/u/obj)\
**Post date:** [July 18, 2015, 9:20am UTC](https://discussions.flightaware.com/t/installing-piaware-on-ubuntu/15522/15 "2015-07-18T09:20:13Z")

</div>

Upgrading is a case of repeating the process with the new version, basically.  
It has probably got a little easier now to build from source.

Approximate instructions:

```auto

$ sudo apt-get install build-essential debhelper librtlsdr-dev libusb-1.0-0-dev pkg-config tcl8.5-dev autoconf python3-dev python-virtualenv libz-dev git
$ cd ~; git clone https://github.com/mutability/dump1090.git
$ cd ~/dump1090; dpkg-buildpackage -b
$ cd ~; git clone https://github.com/flightaware/piaware_builder.git
$ cd ~/piaware_builder; ./sensible-build.sh
$ cd ~/piaware_builder/package; dpkg-buildpackage -b
$ sudo dpkg -i ~/dump1090-mutability_1.15~dev_*.deb
$ sudo dpkg -i ~/piaware_builder/piaware_2.1-2_*.deb

```

---

<div class="post-metadata">

**Author:** ![StephenWhitfield](https://sea1.discourse-cdn.com/flex019/user_avatar/discussions.flightaware.com/stephenwhitfield/32/79785_2.png) [@StephenWhitfield](https://discussions.flightaware.com/u/StephenWhitfield)\
**Post date:** [July 18, 2015, 1:07pm UTC](https://discussions.flightaware.com/t/installing-piaware-on-ubuntu/15522/16 "2015-07-18T13:07:00Z")

</div>

> [@Rubyducky](#):
>
> I have successfully installed PiAware and the associated software on Ubuntu and documented the process! Hopefully this is useful to someone…
> 
> [pastebin.com/eKbm118F](http://pastebin.com/eKbm118F)

Many thanks for the instructions above, all is up & running but it doesnt seem to be sending any data across to the Flightaware server. Dump 1090 is running fine as I am plotting with VRS on another computer.  
Any help to where I’ve gone wrong would be greatly appreciated.  
Thanks

flightaware@flightaware:~$ sudo piaware-status  
dump1090 is running.  
faup1090 is running.  
piaware is running.  
dump1090 is listening for connections on port 30005.  
faup1090 is NOT connected to port 30005.  
piaware is connected to FlightAware.  
dump1090 is producing data on port 30005.

```
Data Feed: 13-Jul-2015 - 5 days ago
Feeder Check-in: Live - less than a minute ago
Joined: 13-Jul-2015
Longest Streak: 1 days (13-Jul-2015 - 13-Jul-2015)

Feeder Type: PiAware 2.1-2
Multilateration (MLAT): Supported / Not Enabled

```

---

<div class="post-metadata">

**Author:** ![cptfbi](https://avatars.discourse-cdn.com/v4/letter/c/f4b2a3/32.png) [@cptfbi](https://discussions.flightaware.com/u/cptfbi)\
**Post date:** [July 21, 2015, 10:20pm UTC](https://discussions.flightaware.com/t/installing-piaware-on-ubuntu/15522/17 "2015-07-21T22:20:41Z")

</div>

I get an issue when running

```auto

cd ~/piaware_builder; ./sensible-build.sh

```

cd ~/piaware\_builder; ./sensible-build.sh  
Retrieving v2.1-2 from [github.com/flightaware/piaware.git](https://github.com/flightaware/piaware.git)  
5a453da v2.1-2  
Retrieving 460debe4d350f06f9c7e54e5400992cac4f1d328 from [github.com/flightaware/tcllauncher.git](https://github.com/flightaware/tcllauncher.git)  
460debe Update README.md  
Retrieving 45d645a8643a60a7c84053338de04d8e038541d4 from [github.com/mutability/dump1090.git](https://github.com/mutability/dump1090.git)  
45d645a Default to not forwarding mlat messages. Add --forward-mlat option to en  
(END)

---

<div class="post-metadata">

**Author:** ![obj](https://sea1.discourse-cdn.com/flex019/user_avatar/discussions.flightaware.com/obj/32/118984_2.png) [@obj](https://discussions.flightaware.com/u/obj)\
**Post date:** [July 21, 2015, 10:42pm UTC](https://discussions.flightaware.com/t/installing-piaware-on-ubuntu/15522/18 "2015-07-21T22:42:51Z")

</div>

What’s the issue?

---

<div class="post-metadata">

**Author:** ![cptfbi](https://avatars.discourse-cdn.com/v4/letter/c/f4b2a3/32.png) [@cptfbi](https://discussions.flightaware.com/u/cptfbi)\
**Post date:** [July 21, 2015, 10:50pm UTC](https://discussions.flightaware.com/t/installing-piaware-on-ubuntu/15522/19 "2015-07-21T22:50:36Z")

</div>

It just stops on the end command and doesnt let me continue. If I run the next command I get this.

cd ~/piaware\_builder/package; dpkg-buildpackage -b  
tail: cannot open ‘debian/changelog’ for reading: No such file or directory  
dpkg-buildpackage: error: tail of debian/changelog gave error exit status 1  
cptfbi@cptfbi-VirtualBox:~/piaware\_builder/package$

---

<div class="post-metadata">

**Author:** ![obj](https://sea1.discourse-cdn.com/flex019/user_avatar/discussions.flightaware.com/obj/32/118984_2.png) [@obj](https://discussions.flightaware.com/u/obj)\
**Post date:** [July 21, 2015, 11:02pm UTC](https://discussions.flightaware.com/t/installing-piaware-on-ubuntu/15522/20 "2015-07-21T23:02:27Z")

</div>

No idea then, sorry; the script shouldn’t do that, but I can’t see how it would ever just stop with no error message.

[Next page](https://discussions.flightaware.com/t/installing-piaware-on-ubuntu/15522.md?page=2)
