ADS-B Receiver Project Setup Scripts

Actually, I think you have it the wrong way round and this may still be an issue: Recent piaware (from 2.1-3) and fa-supplied dump1090 have standardised on port 30104 for mlat back-feed into dump1090. So piaware was installed correctly (albeit manually by me). It is dump1090-mutability that needs to be reconfigured to make it listen on 30104 instead of the previous default of 30004.

More info see here:
https://discussions.flightaware.com/ads-b-flight-tracking-f21/piaware-2-1-3-released-t36047.html
I think it is best to stick with the default port of 30104.

I went off their recommendations being that dump1090-mutability1.5~dev at least in my eyes constituted ā€œusing a different dump1090ā€ being it is not what is ran on their stock PiAware image. I simply used their first recommendation listed which was to reconfigure PiAware. The reason initially was due to the fact it is easier to run a command than pick through a configuration file to replace a setting.

Keep in mind I am going to have to dig into the dump1090-mutability configuration here shortly in order to deal with the lat/lon max range graph issue. When I do I will be more than happy to come back and address this at that time if that is the way we should go.

That is unless anyone sees another reason to continue to allow dump1090 beast format connections on the original port 30004.

Maybe I will leave the decision to the user at that time from within the script…

What I need to do is make dump1090-mutability listen on both 30004 and 30104 by default. Currently that’s not possible, it needs a bit of work in the code.

The idea with 30104 is that 30004 is already used by a bunch of non-mlat-aware existing installs for Beast input, so the only thing that’s safe to send there is non-mlat data. Anything listening on 30104 is assumed to be mlat-aware. But something that is mlat-aware can listen on both (30004 for backwards compatibility, 30104 to accept mlat data)

Ok, thanks for the explanation and background! I guess both ports are valid and work well. I just don’t like to use old defaults :laughing:

Edit: did not see obj’s post just above while writing this.

That being said will work on setting 30104 in dump1090-mutability over changing PiAware’s setting.
Thanks for clearing this up for us obj.

still seems this error is cropping up in the pi-aware installation of the script …skipping… 6a883f4 jessie’s c_rehash doesn’t like multiple certificates per file ,split them and terminates the script at that point tried reinstalling twice with same result
script works fine from start to finnish if I leave pi-aware out of the install on Ubuntu 14.4

Now that you mention it, I also saw ā€œjessie’s c_rehash doesn’t like multiple certificates per file ,split themā€ message during my install a few days ago but the script continued seemingly fine. It did build the piaware package but did not install it. A subsequent manual installation of the package went fine.

I’ll try a fresh rebuild, but that message is the GitHub commit message that Obj used when he fixed the issue, it wasn’t added to the install script. You all are on Raspberries, correct?

[quote=ā€œdschaperā€]

I’m on Raspberry Pi B+, with Jessie. My last install was on the 5th. I did not see the, ā€œjessie’s c_rehash doesn’t like multiple certificates per file ,split themā€ message during the install though I did have to split the files.

Phill

[quote=ā€œdschaperā€]

no I was trying to install the script on Ubuntu 14.4 when getting ]jessie’s c_rehash doesn’t like multiple certificates per file ,split them .last line after this was end it did not continue

Yes, Pi2 model B with 2015-11-21-raspbian-jessie-lite.img

Okay, I’ll try to set up a virtual Ubuntu x86 and see what I can find, it looks like the current script runs okay with the Raspberries, just a cursory check doesn’t reveal any problems, the Jessie message is just the one from the GitHub commit as I suspected… I’ll do a deeper dive and see what comes up.

If you’re following along at home, the GitHub repository where I do most of my reports is at https://github.com/jprochazka/adsb-feeder/issues.

I’m running into problems installing PiAware on Ubuntu Trusty but the problem isn’t with JP’s script. It’s in the sensible-build.sh script which is flightaware’s script. I’ll open an issue with that repo and see what comes up. Bash -x locks up at the git log -1 --oneline section…

What happens if you run sensible-build directly from a shell?

(I wonder if the git pager is kicking in and confusing things)

Same lock, I posted a bash -x dump on GitHub.

Edit: It does appear to be related to the pager, the commit message isn’t completely displayed before the lockup.

It was the pager, I committed a fix.

Moral of the story: You should have a wide terminal window :wink:

Great, now we’re going to have threads over whether 80 characters is enough! :laughing:

Kurt, what Obj suggested was that either you use a wider terminal (yes, confirmed that does work) or hit the letter ā€˜q’ on the keyboard when you get to the lock-up. (You may have to do it a second time later in the process if it locks ups with the (END).

ok thanks I will give that a try am doing all this via putty will see how wide it goes lol ,am a Linux newbe so might ask some dumb questions , this script is a godsend though for probably many like me out there

I’m not a linux noob, and I still ask dumb questions… But nothing you’ve asked so far comes close to being a dumb question.

I submitted a pull request with the updated commits, (I asked jprochazka if he’d accept my updates to his script), and it looks like the fixes Obj put in work fine with a small terminal size. I tried it on Ubuntu Tahir with a tiny terminal and all worked fine.

I think you can resize the terminal with Putty, but I haven’t used Putty or Kitty in a while. Finally installed cygwin and just use the terminal for everything…