VRS World ADS-B Client Install

1. Work out the version of Debian that your Raspberry Pi hasTo upload ADSB data from a Raspberry Pi we’ll need to install the new RPi ADSB client. This requires PHP to be installed and there is a choice of three versions depending on whether your RPi is running the older versions of Debian (Jessie/Stretch) or the newer one (Buster).

To find out which version you need do the following:

cat /etc/issue2

2. Install PHP7

If the response is:

Raspbian GNU/Linux 8 \n \l

you’re running the older Jessie version so you’ll need to do the following:

sudo nano /etc/apt/sources.list

Copy and paste the following into that file at the end:

deb http://mirrordirector.raspbian.org/raspbian/ stretch main contrib non-free rpi

Then save it with Ctrl X, Y and Enter. Then do:

sudo nano /etc/apt/preferences

and copy and paste the following in:

Package: *

Pin: release n=jessie

Pin-Priority: 600

Again, save with Ctrl X, Y and Enter.

Then do the following to the tell the Raspberry Pi where to get the latest version of PHP from:

sudo apt-get update

And finally we can tell it to install what we need:

sudo apt-get install -t stretch php7.0-cli

You can now jump to step 3.

If the response is:

Raspbian GNU/Linux 9 \n \l

you’re running the newer Stretch version so you’ll need to do the following:

sudo apt-get update 
sudo apt-get install php7.0-cli 

You can now jump to step 3.

If the response is:

Raspbian GNU/Linux 10 \n \l

you’re running the newer Buster version so you’ll need to do the following:

sudo apt-get update
sudo apt-get install php7.3-cli

You can now jump to step 3.

3. Download and run the installation script

Once PHP is installed you can go ahead and download the installation script:

wget http://radar.lowflyingwales.co.uk/files/rpi/vrsw-install.txt
mv vrsw-install.txt vrsw-install.sh
sudo sh ./vrsw-install.sh

The script will automatically start at the end of the current minute. To find out the current time enter:dateOnce the new minute has started if you then do:

ps ax | grep vrsw-

You should see output similar to the following. If you do then you’re uploading ADSB data

17532 ? S 0:00 /bin/sh /usr/bin/vrsw-adsb/scripts/vrsw-start.sh

17534 ? S 0:00 /usr/bin/php /usr/bin/vrsw-adsb/vrsw-monitor.php

17541 ? S 0:01 /usr/bin/php /usr/bin/vrsw-adsb/vrsw-adsb.php

17639 pts/0 S+ 0:00 grep –color=auto vrsw-