Root Script

Root Script

You are here:
< All Topics
Table of Contents

THE PURPOSE OF THIS DOCUMENT IS TO SHOW HOW TO START BROADCASTING DATA TO RAWFLIGHT USING AUTOMATED ROOT SCRIPT

Document description:
This document will show you step-by-step, how to configure root script that will allow your Receiver send data to RawFlight automatically. This script is automated, it will created all necessary files and services, so once it is installed, there is no further action required.
In case of problems/exceptions, please contact us by e-mail: rawflight@rawflight.eu

STEP 1 – Prepare your Feeder

Before you start with RawFlight Installer, please make sure that Socat is installed. Script uses socat to transfer data from your Receiver to RawFlight.
To check if socat exists, please execute command:
whereis socat

If you received output like on the screenshot above, you can proceed to the next step. Binary file socat (in /etc/bin) has been found, so it will start working once the script is installed.
If you did received output like:
socat:
That means, socat is not installed. Please install it as sudoer using command:
sudo apt-get install socat -y

STEP 2 – PREPARE SCRIPT

In this step, you will download script and make it executable, so Raspbian (or any Debian OS you are using on your Receiver) will be able to run it.

Download RawFlight Install Script from our website using wget:
wget —nocheckcertificate https://rawflight.eu/install_rawflight.sh

Next, as root or sudoer, please make it executable using CHMOD:
sudo chmod +x install_rawflight.sh

Output should look like on the screenshot below:

STEP 3 – RUN THE SCRIPT!

You are almost there! Simply execute command:
sudo ./install_rawflight.sh

This script will also look for Dump1090 and all its works. If it will not find any Dump1090s, it will ask you if you want to install Dump1090.
In this case, click y.

MAKE SURE THAT RTL-SDR STICK IS INSERTED AND ANTENNA IS CONNECTED. OTHERWISE SCRIPT WILL CRASH BECAUSE OF BROKEN PIPE IN SOCAT.

You can check RawFlight Service status using command:
systemctl status rawflight