ADS-B Receiver Project Setup Scripts

Was too tired this morning to make the page. I should have one written up shortly.

Great script jprochazka. Got it working on my second go.

I say second go, as I screwed up installing the Piaware feeder.

All working nicely now :slight_smile:

Is that correct? Should it not be:


cd ~/adsb-feeder
./install.sh

Today I will use jprochazka’s script to install ADS-B Feeder Project on Orange Pi PC/Ubuntu Vivid Mate, and post results (fingers crossed) :confused: :unamused:

[quote=“mgunther”]

Yes that is correct.
Was a long night last night much like tonight.


I used the setup scripts a while ago now. The SD card seems to be getting full. is there any housekeeping I need to do?

Phill

.
Feb 8, 2016 Install of Web Portal on Orange Pi PC With Fresh Install of Ubuntu Vivid Mate.

Before installing web portal, took following action:

#created a user “pi”. This helps when scripts are hard-coded to path /home/pi
root@OrangePI:~# sudo adduser pi

#gave user “pi” sudo powers by including it in sudoers group
root@OrangePI:~# sudo adduser pi sudo

root@OrangePI:~# sudo reboot

At reboot, logged-in as user “pi”.
After login, executed following commands (from first post of this thread) to install web portal:

pi@OrangePI:~$ sudo apt-get install git
[sudo] password for pi:
Reading package lists… Done
Building dependency tree
Reading state information… Done
E: Unable to locate package git

Now executed

pi@OrangePI:~$ sudo apt-get update ## work around
pi@OrangePI:~$ sudo apt-get install git
pi@OrangePI:~$ git clone github.com/jprochazka/adsb-feeder.git
pi@OrangePI:~$ cd ~/adsb-feeder
pi@OrangePI:~/adsb-feeder$ chmod +x install.sh
pi@OrangePI:~/adsb-feeder$ ./install.sh

After this, a very lengthy installation process started.
I went to kitchen, made & drank coffee and then took a nap :smiley: :slight_smile:
When I woke up, the installation process has just finished, and this line was being displayed:

pi@OrangePI:~/adsb-feeder$ (UNKNOWN) [127.0.0.1] 30005 (?) : Connection refused

I pressed Enter, the line disappeared briefly, then reappeared, and kept repeating:

pi@OrangePI:~/adsb-feeder$ (UNKNOWN) [127.0.0.1] 30005 (?) : Connection refused
(UNKNOWN) [127.0.0.1] 30005 (?) : Connection refused
(UNKNOWN) [127.0.0.1] 30005 (?) : Connection refused
(UNKNOWN) [127.0.0.1] 30005 (?) : Connection refused

I then Rebooted, and the above message stopped appearing.
I then waited 10 minutes, then checked web portal
](http://)/graphs.php - OK, graphs showing, hurray!
](http://)/dump1090.php - OK, Planes showing, hurray!

checked Piaware, MLAT OK, feed to Flightaware OK, but following message repeating regularly:
mlat(969): Beast-format results connection with feed.adsbexchange.com:30005: connection established
mlat(969): Beast-format results connection with feed.adsbexchange.com:30005: connection lost

checked Piaware again AFTER MANY HOURS, MLAT OK, feed to Flightaware OK, but following message STILL repeating regularly:
mlat(969): Beast-format results connection with feed.adsbexchange.com:30005: connection established
mlat(969): Beast-format results connection with feed.adsbexchange.com:30005: connection lost
.

Any ongoing/planned work on image for Orange Pi PC?

Definitely! Something is eating your disk space. Find what that is:


http://www.cyberciti.biz/faq/how-do-i-find-the-largest-filesdirectories-on-a-linuxunixbsd-filesystem/

@phillx19090
I can honestly say I have not seen that type of usage on my receiver running since mid December after a fresh install. It has been sitting at around the 2gb mark since then.

You can easily look around for larger directories and files using NCurses Disk Usage.


sudo apt-get install ncdu
sudo ncdu

Check in /var/log/ in particular to make sure logging for such things as dump1090-mutability, dump978, and Lighttpd are being rotated.
If you want let me know what is growing out of hand and if it is ADS-B related I will try to address it.

Just a matter of finding the time now and making sure the images are not too large to host on GitHub.
I would like to wrap up the template system and flight alerts first as well as finish up the project website I just setup.

@jprochazka:
Why the piaware keeps giving the following message for MLAT feed to adsbexchange? Is the problem with my installation or with adsbexchange?

mlat(969): Beast-format results connection with feed.adsbexchange.com:30005: connection established
mlat(969): Beast-format results connection with feed.adsbexchange.com:30005: connection lost
.

I think Dan has been doing some work on the servers. There was a forum topic containing posts by people having issues connecting to them. The messages don’t seem to have to do with any misconfiguration on your end or else I wouldn’t think it would be able to establish a connection in the first place. It appears PiAware is establishing a connection to the ADS-B Exchange servers but looks to be loosing the connection occasionally for some reason which may be related to the changes being made on his end. You might want to check in with him on the ADS-B Exchange website for more information.

I had this just earlier this evening also. It eventually connected and was ok.

@jprochazka:
I forgot to congratulate you that today’s install on Orange Pi PC with Ubuntu Vivid Mate was seamless.

The only little hitch I faced was that at the start the very first command “sudo apt-get install git” failed, and I had to run the command “sudo apt-get update” as a workaround, after which “sudo apt-get install git” succeeded. I feel lt is worth adding a note for OPi owners to run this command before following your instructions.

Thanks for the input that’s great it worked out well! As far as apt-get update goes that’s normal on fresh installations. Generally the apt repositories need updated so the OS knows where to get packages to be installed or updated. That’s the main reason why apt-get update is ran by the scripts even when not selecting to update the OS.

I loaded the scripts which installed what I wanted at the time however what if I want to load something that I didn’t choose the first time?
I did not choose to load dump978 but I am thinking about setting that up. Would it be a problem loading it separate? How would I do that? Just the same as if I would not have used your scripts? Will it still utilize your interface and be chosen under the menu?

To install additional software simply run install.sh again. You will be presented with the option to install additional software or upgrade existing installed software if an update is available. Currently the scripts do not uninstall software but this is something I can add as soon as my current TODO list is caught up.

Awesome. That’s easy enough. Thanks

Thanks for your help, mgunther and jprochazka.

ncdu shows var/logs has grown to 12Gb. This is since the second of February, before which it was 4Gb (fullJessie install).

dump1090-mutability log ~ 8Gb
dump1090-mutability.1 log ~4Gb


Many thanks

Phill

Sure “apt-get update” is run by the scripts, but on OPi, you cant reach that stage.

– script is run AFTER “git clone github.com/jprochazka/adsb-feeder.git” is executed.
– which is executed after “apt-get install git” is executed.
– which does not get executed on OPi unless “apt-get update” is executed BEFORE it!