Track aircraft using ADS-B and Virtual Radar Server (VRS) on a Raspberry Pi

VRS radar display

In this guide, I will explain how I set up the software application for an ADS-B receiver on a Raspberry Pi. I will also explain how to set up a Virtual Radar Server (VRS), which is a visual display of the received and decoded aircraft data.

I have set up my own Virtual Radar Server here and have written about ADS-B here. To set this up yourself, you will need the following:

  • ADS-B receiver hardware (antenna, receiver, cables, connectors)
  • Raspberry Pi, preferably version 3, including a power supply and SD card
  • Internet access and a network cable (the latter is needed during setup)

Step 1 – Flash Raspbian to your SD card
Flash the latest version of Raspbian (preferably not Lite) to your SD card. I usually do this using Etcher, which can be downloaded here. The latest Raspbian images can be downloaded here.

Step 2 – Enable SSH
After the flashing process finishes, add an empty file named ‘ssh’ (no extension) to the root folder of the ‘Boot’ partition of the fresh SD card. This will allow us to access the Raspberry Pi through SSH in the next steps.

Step 3 – Find the Pi’s IP address
Power up the Raspberry Pi and connect it to the router using your network cable.

Access your router’s control panel – you can find its IP address by starting the command line (Windows+R and type ‘cmd’) and typing ‘ipconfig’. Look for the IP address that is displayed after ‘Default gateway’.

Now that you have accessed the router’s control panel, find the Raspberry Pi’s IP address in the list of connected devices. Note it down.

Step 4 – Log in through SSH
Log in through SSH using PuTTY, available here. In PuTTY’s address box, type the IP address you just noted down. If successful, you will be prompted for a username and password. The default user is ‘pi’ with password ‘raspberry’.

Step 5 – Configure the Pi
Configure the Pi by typing the following command in PuTTY:

sudo raspi-config

Inside this menu, you will have to perform the following tasks:

  • Change the host name to something less generic (optional)
  • Change the user password (recommended!)
  • Enable VNC (under ‘Interfacing options’, allows easy Wi-Fi configuration)
  • Expand the file system (under ‘Advanced options’)

Reboot after this step. The raspi-config application will ask you to do so upon exiting it.

Step 6 – Optional: set up Wi-Fi
Only if you want to use Wi-Fi. Connect to your Pi through VNC Viewer. It can be downloaded here. Use the same user ‘pi’ and the password that you set (or didn’t) in step 5. Connect to Wi-Fi in the top right corner of the screen. Access your router’s control panel again and note down the IP address as it will differ from the wired connection’s IP. Disconnect the network cable from your Pi and log in through PuTTY using the new IP address.

Step 7 – Optional: assign a static IP address
Setting a static IP is useful to prevent your router from assigning different IP addresses to your Pi, which could break your server setup later on. This process varies per router. I did it by assigning a static IP to the MAC address of my Pi through the router’s control panel. You can also do it in the Pi, but this was the most straightforward method for me.

After finishing this step, reboot the Pi and verify that it acquires the static IP that you just set. Use this IP address from now on.

Step 8 – Install PiAware
We will now install PiAware, which is FlightAware’s client software that handles all the communication between your station and FlightAware’s servers. In return for your data, FlightAware give you a free Enterprise account and a statistics webpage to track your receiver’s performance.

Update and upgrade your installation:

sudo apt update && sudo apt upgrade

Download and configure the PiAware repository package:

sudo dpkg -i piaware-repository_5.0_all.deb

Next, install PiAware by running the following two commands:

sudo apt update
sudo apt install piaware

Now, if you’d like to enable automatic updates, enter the following two commands to write the respective settings to the PiAware configuration file:

sudo piaware-config allow-auto-updates yes
sudo piaware-config allow-manual-updates yes

Step 9 – Install ADS-B decoding software
PiAware is FlightAware’s client, but it is not the software that decodes the radio signals and converts them into useful messages that contain aircraft information. This is handled by an application called dump1090. We install it as follows:

sudo apt install dump1090-fa

This should all run without errors and if so, you’re all set. I like to reboot the machine at this point such that we can verify that all services start by themselves on startup:

sudo reboot

At this point, your receiver station should be receiving and decoding messages and sending them to FlightAware servers. You can check this by navigating to http://IP:8080 to view local SkyAware data.

Step 10 – Create a FlightAware account and claim your receiver
If you haven’t done so yet, create a FlightAware account here. Go ahead and claim your receiver location here if this is your first receiver set-up. If you are re-configuring an old setup and want to continue with your previous feeder ID, run the following command in your PuTTY console:

sudo piaware-config feeder-id <feeder_id>

Replace <feeder_id> with the feeder ID that is listed on your old receiver’s page at Your new data will now be added to your old receiver’s statistics.

Step 11 – Install Mono and VRS
We will now install Mono and VRS. VRS is a Windows application and Mono enables you to run it on a Linux installation. Enter the following commands in PuTTY:

sudo apt install mono-complete
cd ~
mkdir VRS
cd VRS
tar -xvzf VirtualRadar.tar.gz
tar -xvzf VirtualRadar.WebAdminPlugin.tar.gz

Mono requires an additional configuration file to properly run on Linux. Create it by typing:

sudo nano VirtualRadar.exe.config

Copy and paste the contents of the XML snippet under ‘Mono 4 issues’ on this page to the file you just created. Press CTRL-O to save the file and CTRL-X to exit the text editor.

Step 12 – Change the VRS port
In my case, the default VRS port was already in use. We therefore change it to a different port by creating a new file on the Pi’s file system:

sudo nano ~/.local/share/VirtualRadar/InstallerConfiguration.xml

Again go to this page, but now copy-paste the contents under ‘Changing the web server port’ to the file we just created. Change the port number in this file to 8081 (or any value you like). Save and close by pressing CTRL-O and CTRL-X.

Verify that your VRS installation works by executing it:

cd ~/VRS
mono VirtualRadar.exe -nogui

If all goes well, no errors should occur and you should be able to access the Virtual Radar Server through the external IP address that is printed to the screen (or simply through your local network). Aircraft in your receiver’s range should be visible with default settings.

Step 13 – Access the Virtual Radar Server Web Admin panel
Shut down the VRS instance from step 12 by pressing ‘Q’ and type the following command:

mono VirtualRadar.exe -nogui -createAdmin:username -password:password

Replace ‘username’ and ‘password’ with a username and password combination of your choice. Now, log in to the VRS web admin panel. You should be able to reach it by navigating to the following address:


In which you should replace ‘IP’ with the IP address of your Pi. Log in using the username and password you just created. If all goes well, you should now see the options screen of the Web Admin panel.

Step 15 – Configure VRS to start automatically at boot
For convenience, it is useful to set up VRS to start when the Pi boots up. This way, you can reboot the Pi without having to manually start the VRS server each time. This is done by executing the following commands through PuTTY:

cd ~
sudo nano

Copy and paste the following contents into the editor:

mono /home/pi/VRS/VirtualRadar.exe -nogui

Save and exit by pressing CTRL-O and CTRL-X. Now execute the following (note, it might be necessary to use sudo for the first command):

chmod +x /home/pi/
crontab -e

Press ‘2’ (nano) if asked to choose a text editor. Append the following line to the file:

@reboot /home/pi/

Again, save and close by pressing CTRL-O and CTRL-X. Test your settings by rebooting the Pi and verifying that you can access the VRS server through the address found in step 12 (http://IP:8081/VirtualRadar)

sudo reboot

Step 14 – Configure VRS receivers through the Web Admin Panel
In the ‘Options’ panel, click ‘Receiver locations’ and add a new location. Give it a name and enter your latitude and longitude. You can find your latitude and longitude using simple tools available through Google.

Click ‘Receivers’ and add a receiver. Call it ‘MLAT’ or something similar. For the location, choose the location you just set. Under ‘Network’, change the port to 30106 – FlightAware sends back MLAT data through this port. Leave all other settings at their default values and close the window. You should now have two receivers, similar to mine below:

Receiver setup in VRS
Receiver setup in VRS

Now go to ‘Merged Feeds’ and add a new one. Give it a suitable name and add both of the previously configured receivers (as shown above) to it. I called it ‘All aircraft’ for convenience. Close the window.

Go back to the ‘Receivers’ settings and set the ‘Web site receiver’ and ‘Closest aircraft receiver’ to the merged feed you just created. This way, by default all aircraft will be displayed when people visit your radar server.

Step 15 – Configure the VRS radar view settings
Now that the we have set up the receivers, we can continue by modifying the user interface to create a default user interface that we like. You might have noticed that my VRS site looks different than one with default settings.

To do this, start the server and open it in your browser. Configure the settings to your liking by pressing ‘Menu’ and then ‘Options’ in the top left corner of the map view. Now navigate to:


And press ‘Export Settings’. Copy the contents of the text box that appears. Now navigate back to your Web Admin Panel which we accessed earlier (http://<IP>:8081/VirtualRadar/WebAdmin/Settings.html) and click ‘Initial Settings’. In the ‘Exported settings’ box, paste the contents of your clipboard. These will now be the default view settings for new visitors.

Step 16 – Optional: Add operator logos and aircraft silhouettes
Operator and aircraft logos can be added and will be displayed in the list right of the map display. They are available through several sources, but I downloaded mine through the Radarspotting forum. You will have to create an account to download the files. After acquiring the ZIP files, place them in designated folders on your Pi (for example, /home/pi/logos and /home/pi/silhouettes) and expand the zip files in these folders.

Go back to your Web Admin Panel options again and click on ‘Data Sources’. Add the paths you created to the ‘Flags folder’ and ‘Silhouettes folder’. This should look something like this:

VRS Data Sources configuration
VRS Data Sources configuration

After saving these settings, the flags and silhouettes should show up in your list of aircraft, provided that you activated these columns in the settings menu.

Step 17 – Forward your VRS port
Now that everything is up and running and configured, we can forward the port we chose. In my case, this is port 8081. The process varies for each router and many tutorials are available online. A Google search query should help you with this. You will need to forward the port for the Pi’s IP address, so keep it handy.

After forwarding the port, you should be able to access your VRS web display through your WAN (Wide-Area Network) IP address. Other parts of the address will stay the same.

Step 18 – Link a domain name
Instead of having to type out the IP address when accessing your VRS website, you can also purchase a domain name and create an A record in the domain’s DNS settings, such that you can access your VRS website in the following way (example):

This looks much better. Again, creating a DNS record is different for each domain/hosting service and your service provider will be able to provide support if you want to do this but are not sure how to go about it. Final tip: if you forward your VRS server to port 80, you can leave out the port in the URL as well! This only works if you don’t have other applications that require port 80 to work (e.g. a webserver).

This ends the guide. I hope it was helpful. Please send me a message if you find any errors in the guide. Thanks for reading!

24 thoughts on “Track aircraft using ADS-B and Virtual Radar Server (VRS) on a Raspberry Pi”

  1. Hello,
    I try to install this package on my pi, and basically I got pretty far. I am blocked to continue the moment I have to choose for dump 1090-mutability, or dump1090-fa.
    I can not make a selection (using putty) in the leading field (where the * is). I can go up and down with the curser using the arrow keys on my keyboard, but the * is not going with it. A few more screens further the same problem, I can not choose between the 4 feeder options. In this screen no * in the leading fields and moving the red curser up or down has no effect.

    Do you have any idea why this is not possible ?

    Thank you very much for your attention,


    1. Hi Loek, I think you can select and deselect by pressing the space bar, which should be confirmed by an asterisk showing up next to the correct package. Can you let me know if this works? Willem

      1. Hello Willem,

        It works as you explained. Hitting the spacebar puts the asterisk in the field of the curser.
        I have it all working without a feeder and the wrong 1090 decoder. So I will start all over again with a clean Raspbian install on the pi.

        Thank you very much for your help,


  2. Question: I would like to enable the option to plot a range of a receiver.
    In the PC version of VRS I go to the server and input all the location data, after that the tap in the option of the desktopviewer is visible. How can I do that in the Raspbian version on the Pi ?


    1. Hi Loek,

      For the “Pi” version of VRS (It is still the Windows executable, but it runs under Mono on Linux) you should first install the VRS WebAdmin plugin on your Pi installation as described in my installation instructions.

      Once you’re in the WebAdmin interface (http://ip:port/VirtualRadar/WebAdmin/Index.html) you can configure a receiver and associate a ‘Receiver location’ with it. This should allow you to view receiver range plots, but I have experienced myself that I am only able to view the range plots if I access the VRS system through my local network. You might have to tweak some additional settings but I can’t recall everything from the top of my head. Good luck.

    1. Hi Blaise,

      Certainly. I have not done it myself since I only feed to FA, but the step(s) to configure the FR24 feeder should be similar to what I describe in step 10. The feeder runs on top of Dump1090, so there’s no need to touch that if it’s already running.

  3. Hi Willem. Really helpful your guide but I facing a problem. The server doesn’t start automatic when I reboot the raspberry. Can you help me with that. Thanx.

    1. Just follow the instructions in step 15. But keep attention when editing the crontab (crontab -e) you should NOT do this with “sudo crontab -e”. Instead use “crontab -e”. this will open the crontab of user “pi”. If you do not do that, the config file can’t be loaded.

      1. Thanks for your reply Jan. But i have done it already and still the vrs server doesn’t autostart.

        1. Are you sure? Just type “sudo ps -aef | grep mono”.

          sudo ps -aef | grep mono
          pi 393 392 22 20:57 ? 00:03:55 mono /home/pi/VirtualRadar.exe -nogui
          pi 729 669 0 21:14 pts/0 00:00:00 grep –color=auto mono

          If you see the first line the server is running. But maybe it is running on another port. Chack that with “netstat -lnt”. You now will see all the ports the server is listening to, also the port that you noted in the config file. For my PI it is port 30006. See also output below:

          netstat -lnt
          Active Internet connections (only servers)
          Proto Recv-Q Send-Q Local Address Foreign Address State
          tcp 0 0* LISTEN
          tcp 0 0* LISTEN
          tcp 0 0* LISTEN
          tcp 0 0* LISTEN
          tcp 0 0* LISTEN
          tcp 0 0* LISTEN <— my server listening port.
          tcp6 0 0 :::80 :::* LISTEN
          tcp6 0 0 :::22 :::* LISTEN

          1. pi@raspberrypiPi4Ads-b:~ $ sudo ps -aef | grep mono
            sudo: unable to resolve host raspberrypiPi4Ads-b: Name or service not known
            www-data 454 1 0 May25 ? 00:00:02 /usr/bin/mono /usr/lib/mono/4.5/xsp4.exe –port 8084 –address –appconfigdir /etc/xsp4 –nonstop
            pi 3728 3713 1 00:00 pts/0 00:00:27 mono VirtualRadar.exe -nogui
            pi 10329 10180 0 00:25 pts/1 00:00:00 grep –color=auto mono

            that’s what i get. But i start the server manually.

  4. Did you messup the “hosts” file? The message ” unable to resolve host raspberrypiPi4Ads-b” suggests so.
    Anyway, if you followed the steps in the manual on this website there is a script “/home/pi/”. This script is started in the crontab.
    With “crontab -l” you should see the line that’s calling the script (I renamed it to vrs):
    pi@raspberrypi:~ $ crontab -l | grep reboot
    @reboot /home/pi/vrs
    The “vrs” or “” script should look like this
    #!/bin/bash <— I prefer bash but #!/bin/sh should work also
    mono /home/pi/VirtualRadar.exe -nogui
    The "vrs" or "" must be executable
    pi@raspberrypi:~ $ ls -latr /home/pi/vrs
    -rwxr-xr-x 1 root root 100 May 25 20:57 /home/pi/vrs
    The x stands for executable. The script should be executable.

  5. Installed 3.0.0 Beta. I just followed your instructions but changed the source files to point to the V3 preview files. I also downloaded the Database Writer Plugin so I could get reporting to work.

    EVERYTHING works perfectly.. .easy peasy upgrade. Changed the file to point to the new version and voila.

    Thanks again!

  6. Thank you very much.

    Followed your Manuel step by step. Everything is running smoothly

    Just one remark chmod +x /home/pi/, I used sudo chmod +x /home/pi/

  7. I made a slight adjustment so I’m not running the services as root. Since I am running this on a FlightAware device, I took ownership of the directory as the PiAware user (which is used to run the FlightAware web dashboard and services). I had to make some small tweaks but ti runs as PiAware now (a non sudoer).

    Good instructions and thanks!

  8. Great guide! Though what kind of specs to run Virtual Radar on a Raspberry Pi? Especially with some many planes displayed in your example…

  9. C’mon, people, it’s their picks for the best SNES games. If you think Secret of Mana is the best, props to you. If you think Super Metroid is better than Super Mario Kart, that’s fine. This is their pick and your comments aren’t going to change it. The sooner you all get that the better off you’ll be. And before anyone calls me a hypocrite, I did wonder why Chrono Trigger was only #5 when it was on their “”best games of all time”” list. It just didn’t make sense for it to be lower than A Link to the Past when even that isn’t on the best games of all time list.

  10. Hello, Mr. Willem,
    I am French.
    Congratulations on everything you do, it is beautiful.
    I followed your procedure to install VRS as well as PiAware 5 on a Raspberry. I’m not a Raspberry specialist, I’m just starting out. For Windows, things are better.
    I couldn’t find the PiAware configuration file.
    Although in your text, there are problems with the numbering (steep xxx), it went well.
    At “Step 12”, can you tell me the usefulness of the -nogui command in the expression “mono VirtualRadar.exe -nogui”.
    Then at: “Step 15 – Configure VRS to start automatically at boot”, I have some small problems.
    But the most important is the expression: “http: // IP: 8081 / VirtualRadar / settings.html”, which does not display anything in my browser, but, I still succeeded, I do not know how , to do something.
    On the other hand, what does not work well is when I load VRS on another machine (I have a domain name and a DNS redirection), I do not retrieve all the information from my configuration (language, favorite receiver (merge), and the list of fields “Export parameters”. Do you have a solution (for visitors)
    And finally, do you have any information on the management of “basestation.sqb”, as well as how to retrieve silhouettes and logos, because on the “Radarspotting” site, I did not really understand how to retrieve this information, without there being any redundancy.
    There you go, dear Willem, congratulations again, and thank you for your help.
    Hope the translation worked well (Google translator)
    Good day,

Leave a Reply

Your email address will not be published. Required fields are marked *