AirNav Systems Forum

AirNav RadarBox and RadarBox24.com => AirNav RadarBox and RadarBox24.com Discussion => Topic started by: bgaf on November 12, 2021, 10:18:04 PM

Title: How to install RBFeeder with Raspbian Bullseye?
Post by: bgaf on November 12, 2021, 10:18:04 PM
Any idea how to install rbfeeder on the latest Raspbian OS Bullseye image?

(https://i.postimg.cc/SNRGJ8PM/Screenshot-2021-11-13-001701.png)
Title: Re: How to install RBFeeder with Raspbian Bullseye?
Post by: abcd567 on November 14, 2021, 06:35:45 AM
[EDIT 26-01-2022] This workaround is now NOT required as RB24 has added rbfeeder package to their installation script on 24-01-2022.

To install rbfeeder on the latest Raspbian OS Bullseye image, follow this procedure:

(1) Issue following command to download file inst_rbfeeder.sh
Code: [Select]
wget http://apt.rb24.com/inst_rbfeeder.sh

(2) Open downloaded file for editing by following command
Code: [Select]
sudo nano inst_rbfeeder.sh 

(3) Scroll down the file to the line which starts with:
VERS=

(4) Comment out this line by placing # at its start like below
#VERS=

(5) Below this line type following:
VERS=buster

Please see screenshot below:

(https://i.postimg.cc/gkHvQ2rv/RB24-on-Bullseye.png)

(6) Save file (Ctrl +o) and Close (Ctrl+x)

(7) Issue following command to start installation
Code: [Select]
sudo bash inst_rbfeeder.sh 

.

Title: Re: How to install RBFeeder with Raspbian Bullseye?
Post by: bgaf on November 14, 2021, 01:18:41 PM
Thank you for the instructions. What about the MLAT client?
Title: Re: How to install RBFeeder with Raspbian Bullseye?
Post by: abcd567 on November 14, 2021, 07:06:25 PM
Thank you for the instructions. What about the MLAT client?

First try to install mlat-client by following ccommand:
Code: [Select]
sudo apt-get install mlat-client

Most likely by above command it will get installed and work ok. In case it fails to install or fails to work, build mlat-client from source code.

Title: Re: How to install RBFeeder with Raspbian Bullseye?
Post by: bgaf on November 14, 2021, 09:39:13 PM
Thank you once again!
Title: Re: How to install RBFeeder with Raspbian Bullseye?
Post by: abcd567 on November 15, 2021, 07:42:20 PM
I tried to install mlat-client on Bullseye, got following:

(1) AFTER installing rbfeeder, gave following command but it failed to install mlat-client
Code: [Select]
sudo apt-get install mlat-client 

(2) Tried to build mlat-client from source-code, using method in following post, but it also failed
https://forum.radarbox24.com/index.php?topic=101771.msg407051#msg407051

(3) Modified the procedure to suite Bullseye by adding command "sudo apt-get install -y dh-python"  just before the command "sudo dpkg-buildpackage -b -uc". This succeeded .

The finished procedure for building mlat-client from source-code on BULLSEYE is as follows: 

PROCEDURE FOR BUILDING & INSTALLING MLAT-CLIENT ON BULLSEYE
Code: [Select]
## Installed required packages (dependencies and build tools)
sudo apt update -y
sudo apt-get install -y git curl build-essential debhelper python-dev python3-dev

## Downloaded source code
cd /home/pi/ 
git clone https://github.com/mutability/mlat-client.git 

## Built mlat-client's installation package
cd /home/pi/mlat-client 
sudo apt-get install -y dh-python 
sudo dpkg-buildpackage -b -uc 

## Above command took some time to build package. After the package was built, installed it by following command
cd /home/pi/ 
sudo dpkg -i mlat-client_*.deb 
Title: Re: How to install RBFeeder with Raspbian Bullseye?
Post by: bgaf on November 16, 2021, 11:17:39 AM
Maybe it's better to wait some more time for the companies to build their packages for Bullseye...
Title: Re: How to install RBFeeder with Raspbian Bullseye?
Post by: abcd567 on November 17, 2021, 12:32:53 AM
Maybe it's better to wait some more time for the companies to build their packages for Bullseye...

Yes, you are right. At this stage there is no advantage of switching from Buster to Bullseye as Buster is still fully supported.

However just for the sake of experimenting, couple of days ago I installed Raspberry Pi OS Bullseye, and on it successfully installed all feeders.

(1) dump1090-fa and piaware: The Buster packages from Flightaware fail to install on Bullseye. I built these on Bullseye using automated install scripts I have posted on Github.

https://github.com/abcd567a/piaware-ubuntu20-amd64/blob/master/README.md


(2a) Radarbox24 feeder: The Bullseye package is not yet available. Installed available Buster package by method I have posted above. In this method, I have modified the installation script to trick it to think the OS is Buster, and it installs the available Buster package

(2b) mlat-client: The available Buster package fails to install on Bullseye. I built it on Bullseye from source code using method posted above.

(3) Flightradar24 feeder: Installed Buster package on Bullseye  by following command
Code: [Select]
sudo bash -c "$(wget -O - https://repo-feed.flightradar24.com/install_fr24_rpi.sh)"


(4) Planefinder feeder: Installed Buster package on Bullseye by following commands
Code: [Select]
wget http://client.planefinder.net/pfclient_5.0.161_armhf.deb
sudo dpkg -i pfclient_5.0.161_armhf.deb


(5) Adsbexchange: Installed on Bullseye by following commands
Code: [Select]
wget -O /tmp/axfeed.sh https://adsbexchange.com/feed.sh
sudo bash /tmp/axfeed.sh


(6) Graphs: Installed on Bullseye by following command
Code: [Select]
sudo bash -c "$(wget -q -O - https://raw.githubusercontent.com/wiedehopf/graphs1090/master/install.sh)"


 

Title: Re: How to install RBFeeder with Raspbian Bullseye?
Post by: cbdagency on January 06, 2022, 05:24:18 PM
Did you mean it like you posted it or did you mean (5) Below this line type following:
VERS=bullseye

?
 
To install rbfeeder on the latest Raspbian OS Bullseye image, follow this procedure:

(1) Issue following command to download file inst_rbfeeder.sh
Code: [Select]
wget http://apt.rb24.com/inst_rbfeeder.sh

(2) Open downloaded file for editing by following command
Code: [Select]
sudo nano inst_rbfeeder.sh 

(3) Scroll down the file to the line which starts with:
VERS=

(4) Comment out this line by placing # at its start like below
#VERS=

(5) Below this line type following:
VERS=buster

Please see screenshot below:

(https://i.postimg.cc/gkHvQ2rv/RB24-on-Bullseye.png)

(6) Save file (Ctrl +o) and Close (Ctrl+x)

(7) Issue following command to start installation
Code: [Select]
sudo bash inst_rbfeeder.sh 

.
Title: Re: How to install RBFeeder with Raspbian Bullseye?
Post by: abcd567 on January 06, 2022, 10:21:27 PM
Did you mean it like you posted it or did you mean (5) Below this line type following:
VERS=bullseye

?

I meant exactly what I wrote in my post i.e. following:

VERS=buster

The reason is that RB24 has not (yet) released their feeder for Bullseye.  When install script detects OS version is bullseye,  it cannot find rbfeeder for it and fails and exits with complaint "don't know how to install for ".

By adding line VERS=buster,  the install script is cheated to think OS is buster,  and installs the available package for buster.  Luckily the package for buster works on bullseye also,  so this cheat works.  :)

.
Title: Re: How to install RBFeeder with Raspbian Bullseye?
Post by: abcd567 on January 25, 2022, 10:16:46 PM
RB24 have now added bullseye repository and rbfeeder's bullseye package is available now. Now there is no need for any workaround. Just run the normal installation command,  and it will install it.

Code: [Select]

sudo bash -c "$(wget -O - http://apt.rb24.com/inst_rbfeeder.sh)" 




.
Title: Re: How to install RBFeeder with Raspbian Bullseye?
Post by: teesvalley spotter on January 26, 2022, 02:52:58 PM
RB24 have now added bullseye repository and rbfeeder's bullseye package is available now. Now there is no need for any workaround. Just run the normal installation command,  and it will install it.

Code: [Select]

sudo bash -c "$(wget -O - http://apt.rb24.com/inst_rbfeeder.sh)" 




.

Do we know how to get the mlat client working on Bullseye? I have tried just about all commands and am unable to get to a screen where I enter my lon, lat etc to set it up
Title: Re: How to install RBFeeder with Raspbian Bullseye?
Post by: abcd567 on January 26, 2022, 04:50:51 PM
Do we know how to get the mlat client working on Bullseye? I have tried just about all commands and am unable to get to a screen where I enter my lon, lat etc to set it up

@teesvalley spotter: Please scroll down to end of this post and see NOTE 2 to get answer to your question.


@all-other-users:
Although RB24 have yesterday added rbfeeder for Bullseye to their repository and install-script, but unfortunately missed adding mlat-client package to their Bullseye repository.

Hopefully they will add it soon, and then you can simply install it by following command
Code: [Select]
sudo apt install mlat-client

Currently the above command gives following output:
Code: [Select]
E: Unable to locate package mlat-client

You have 3 options:

OPTION-1: Wait till RB24 adds mlat-client to their Bullseye repository

OPTION-2: Build mlat-client on your RPi from source-code - This requires installation of many building-tool packages on your RPi.

OPTION-3: Install it from my Github site. This is fast & does not require installing any building-tool packages on your RPi. Please go to page linked below and use following option:
(1) Package for Raspi OS BULLSEYE (32-bit)

https://github.com/abcd567a/mlat-client-package/blob/master/README.md (https://github.com/abcd567a/mlat-client-package/blob/master/README.md#mlat-client-packages-for-raspberry-pi)



NOTE:
(1) After installing mlat-client, do not forget to restart rbfeeder by following command:
Code: [Select]
sudo systemctl restart rbfeeder 


(2) You have to set your receiver's Latitude, longitude and altitude (above sea level, in meters) in file /etc/rbfeeder.ini (please see screenshot below). Mlat wont work without setting these parameters.

Code: [Select]
sudo nano /etc/rbfeeder.ini 
Title: Re: How to install RBFeeder with Raspbian Bullseye?
Post by: teesvalley spotter on January 27, 2022, 07:32:39 PM
Do we know how to get the mlat client working on Bullseye? I have tried just about all commands and am unable to get to a screen where I enter my lon, lat etc to set it up

@teesvalley spotter: Please scroll down to end of this post and see NOTE 2 to get answer to your question.


@all-other-users:
Although RB24 have yesterday added rbfeeder for Bullseye to their repository and install-script, but unfortunately missed adding mlat-client package to their Bullseye repository.

Hopefully they will add it soon, and then you can simply install it by following command
Code: [Select]
sudo apt install mlat-client

Currently the above command gives following output:
Code: [Select]
E: Unable to locate package mlat-client

You have 3 options:

OPTION-1: Wait till RB24 adds mlat-client to their Bullseye repository

OPTION-2: Build mlat-client on your RPi from source-code - This requires installation of many building-tool packages on your RPi.

OPTION-3: Install it from my Github site. This is fast & does not require installing any building-tool packages on your RPi. Please go to page linked below and use following option:
(1) Package for Raspi OS BULLSEYE (32-bit)

https://github.com/abcd567a/mlat-client-package/blob/master/README.md (https://github.com/abcd567a/mlat-client-package/blob/master/README.md#mlat-client-packages-for-raspberry-pi)



NOTE:
(1) After installing mlat-client, do not forget to restart rbfeeder by following command:
Code: [Select]
sudo systemctl restart rbfeeder 


(2) You have to set your receiver's Latitude, longitude and altitude (above sea level, in meters) in file /etc/rbfeeder.ini (please see screenshot below). Mlat wont work without setting these parameters.

Code: [Select]
sudo nano /etc/rbfeeder.ini 

Hi. I have followed your code but don't seem to get far. I get to this, at which point it stops

Title: Re: How to install RBFeeder with Raspbian Bullseye?
Post by: abcd567 on January 27, 2022, 08:44:48 PM

Hi. I have followed your code but don't seem to get far. I get to this, at which point it stops

(1) Your screenshot shows that mlat-client has been installed successfuly, and installation process has stopped at right point.

Now follow NOTE (2) of my "How-to" post, (i.e. edit file /etc/rbfeeder.ini and add your latitude, longitude and altitude, then save file, then restart rbfeeder (or reboor Pi).

(2) Please do NOT quote my entire and very long "How-to" post when you ask sonething. This makes it hard for others to brows the thread.

.
Title: Re: How to install RBFeeder with Raspbian Bullseye?
Post by: teesvalley spotter on January 28, 2022, 12:22:15 PM

Now follow NOTE (2) of my "How-to" post, (i.e. edit file /etc/rbfeeder.ini and add your latitude, longitude and altitude, then save file, then restart rbfeeder (or reboor Pi).


I have edited the relevant sections in sudo nano /etc/rbfeeder.ini but it just says MLAT active (No stations synced) I have rebooted the pi

Title: Re: How to install RBFeeder with Raspbian Bullseye?
Post by: abcd567 on January 29, 2022, 09:29:04 AM
I have edited the relevant sections in sudo nano /etc/rbfeeder.ini but it just says MLAT active (No stations synced) I have rebooted the pi

Please post output of following command:

Code: [Select]
sudo systemctl status rbfeeder   

Title: Re: How to install RBFeeder with Raspbian Bullseye?
Post by: teesvalley spotter on January 29, 2022, 10:07:18 AM
Quote from: abcd567 link=topic=105631.msg513631#msg513631

Please post output of following command:

[code
sudo systemctl status rbfeeder   

[/code]

Hi. That returns this

rbfeeder.service - RBFeeder Service
     Loaded: loaded (/lib/systemd/system/rbfeeder.service; enabled; vendor preset: enabled)
     Active: active (running) since Thu 2022-01-27 19:28:42 UTC; 1 day 14h ago
   Main PID: 12619 (rbfeeder)
      Tasks: 10 (limit: 2059)
        CPU: 16min 17.857s
     CGroup: /system.slice/rbfeeder.service
             ├─12619 /usr/bin/rbfeeder
             └─12629 /usr/bin/python3.9 /usr/bin/mlat-client --input-type dump1090 --input-connect 127.0.0.1:32457 --server mlat1.rb24.com:40900 --lat 54.[REMOVED] --lon -1.[REMOVED] --alt 61 --user EXTRPI[REMOVED] --results beast,connect,127.0.>

Jan 29 10:03:53 piaware rbfeeder[12619]: [2022-01-29 10:03:53]  ******** Statistics updated every 60 seconds ********
Jan 29 10:03:53 piaware rbfeeder[12619]: [2022-01-29 10:03:53]  Packets sent in the last 60 seconds: 1, Total packets sent since startup: 86826
Jan 29 10:03:53 piaware rbfeeder[12619]: [2022-01-29 10:03:53]  Data sent: 2.5 MB
Jan 29 10:03:53 piaware rbfeeder[12619]: [2022-01-29 10:03:53]  Data received: 93 B
Jan 29 10:04:26 piaware rbfeeder[12619]: failed to rename /dev/shm//rbfeeder_history_66.json.HQcP6o to /dev/shm//rbfeeder_history_66.json: Operation not permitted (122 more error messages suppressed)
Jan 29 10:04:54 piaware rbfeeder[12619]: [2022-01-29 10:04:54]  ******** Statistics updated every 60 seconds ********
Jan 29 10:04:54 piaware rbfeeder[12619]: [2022-01-29 10:04:54]  Packets sent in the last 60 seconds: 2, Total packets sent since startup: 86828
Jan 29 10:04:54 piaware rbfeeder[12619]: [2022-01-29 10:04:54]  Data sent: 2.5 MB
Jan 29 10:04:54 piaware rbfeeder[12619]: [2022-01-29 10:04:54]  Data received: 93 B
Jan 29 10:05:26 piaware rbfeeder[12619]: failed to rename /dev/shm//rbfeeder_history_68.json.Odwozq to /dev/shm//rbfeeder_history_68.json: Operation not permitted (122 more error messages suppressed)
~
Title: Re: How to install RBFeeder with Raspbian Bullseye?
Post by: abcd567 on January 29, 2022, 01:03:26 PM
@teesvalley spotter
You have two wrong entries in your file rbfeeder.ini
Please see green arrows in screenshot of my file rbfeeder.ini attached below.


To correct these errors, plase do this:
(1) Open file rbfeeder.ini for editing
Code: [Select]
sudo nano /etc/rbfeeder.ini   

(2) In file opened, under [client]
change
network_mode=false
to
network_mode=true

(3) In file opened, under [network]
change
external_host=192.168.xx.xx
to
external_host=127.0.0.1

(4) Save file (Ctrl+O) and Close (Ctrl+x)
(5) Restart rbfeeder
Code: [Select]

sudo systemctl restart rbfeeder   
(6) Check status
Code: [Select]
sudo systemctl status rbfeeder   


Title: Re: How to install RBFeeder with Raspbian Bullseye?
Post by: teesvalley spotter on January 29, 2022, 06:24:57 PM
Thanks for your help, the MLAT client is now working and syncing
Title: Re: How to install RBFeeder with Raspbian Bullseye?
Post by: Av8tor_from_Argentina on February 09, 2022, 05:50:00 PM
Amazing job gentleman.. Same problem that guys from above, Support from Radarbox24 useless... You guys here helped a lot... seems like RB script from webpage is for buster, not Bullseye.

Now  I´m online again (WORKED ONLY FOPR 5 MINUTES)

After 5 minutes, stopped working... Any clue about this ? I have working FR24, Planefinder, Flightaware perfectly.

@raspberrypi:~ $ sudo rbfeeder --status
[2022-02-09 15:10:39]  Starting RBFeeder Version 0.4.3 (build 20210909231001)
[2022-02-09 15:10:39]  Using configuration file: /etc/rbfeeder.ini
[2022-02-09 15:10:39]  Network-mode enabled.
[2022-02-09 15:10:39]           Remote host to fetch data: 127.0.0.1
[2022-02-09 15:10:39]           Remote port: 30005
[2022-02-09 15:10:39]           Remote protocol: RAW
Error opening the listening port 32458 (Raw TCP output): bind: Address already in use


 less /etc/rbfeeder.ini
disable_log=0

key=xxxxxxxxxxxxxx

sn=EXTRPI0xxxxx

lat=xxxx

lon=xxxx

alt=28

[network]
mode=raw
external_port=30005
external_host=127.0.0.1

[mlat]
autostart_mlat=true
#mlat_cmd=/usr/bin/python3.5 /usr/bin/mlat-client

[dump978]
#dump978_enabled=false

less /var/log/rbfeeder.log
[2022-02-09 15:08:22]  Using configuration file: /etc/rbfeeder.ini
[2022-02-09 15:08:22]  Network-mode enabled.
[2022-02-09 15:08:22]           Remote host to fetch data: 127.0.0.1
[2022-02-09 15:08:22]           Remote port: 30005
[2022-02-09 15:08:22]           Remote protocol: RAW
[2022-02-09 15:08:22]  Starting RBFeeder Version 0.4.3 (build 20210909231001)
[2022-02-09 15:08:22]  Using configuration file: /etc/rbfeeder.ini
[2022-02-09 15:08:22]  Network-mode enabled.
[2022-02-09 15:08:22]           Remote host to fetch data: 127.0.0.1
[2022-02-09 15:08:22]           Remote port: 30005
[2022-02-09 15:08:22]           Remote protocol: RAW
[2022-02-09 15:09:19]  Starting RBFeeder Version 0.4.3 (build 20210909231001)
[2022-02-09 15:09:19]  Using configuration file: /etc/rbfeeder.ini
[2022-02-09 15:09:19]  Network-mode enabled.
[2022-02-09 15:09:19]           Remote host to fetch data: 127.0.0.1
[2022-02-09 15:09:19]           Remote port: 30005
[2022-02-09 15:09:19]           Remote protocol: RAW
[2022-02-09 15:10:39]  Starting RBFeeder Version 0.4.3 (build 20210909231001)
[2022-02-09 15:10:39]  Using configuration file: /etc/rbfeeder.ini
[2022-02-09 15:10:39]  Network-mode enabled.
[2022-02-09 15:10:39]           Remote host to fetch data: 127.0.0.1
[2022-02-09 15:10:39]           Remote port: 30005
[2022-02-09 15:10:39]           Remote protocol: RAW


Above, you have logs and ini to see my config. How to know if MLAT client is working for RB24? Is working fine with FR24 and Flightaware...

Help Help.--.

Title: Re: How to install RBFeeder with Raspbian Bullseye?
Post by: Runway 31 on February 09, 2022, 06:37:52 PM
I know next to nothing regarding Linux but while waiting on abc123 I did note the following error

[network]
mode=raw
external_port=30005
external_host=127.0.0.1

Should be mode=beast

Alan
Title: Re: How to install RBFeeder with Raspbian Bullseye?
Post by: Av8tor_from_Argentina on February 10, 2022, 12:17:04 AM
I know next to nothing regarding Linux but while waiting on abc123 I did note the following error

[network]
mode=raw
external_port=30005
external_host=127.0.0.1

Should be mode=beast

Alan

Alan, thank you for the observation, but that was suggested by Support from RB24. Annoying...

Lets wait for the Wizard of ADS-B


Regards
Title: Re: How to install RBFeeder with Raspbian Bullseye?
Post by: abcd567 on February 10, 2022, 02:12:09 AM

@raspberrypi:~ $ sudo rbfeeder --status
[2022-02-09 15:10:39]  Starting RBFeeder Version 0.4.3 (build 20210909231001)

Error opening the listening port 32458 (Raw TCP output): bind: Address already in use

You are using wrong command (sudo rbfeeder --status) to check status. This started 2nd copy of rbfeeder, while 1st copy started by system was already running and using the ports. This resulted in Error message and failure.

Use following command to check status
NOTE:
(1) First in file /etc/rbfeeder.ini, change the error mode=raw to mode=beast
(2) Next save file
(3) Next Reboot RPi
(4) Now issue following command:
Code: [Select]
sudo systemctl status rbfeeder   


 
[network]
mode=raw
external_port=30005
external_host=127.0.0.1

As already pointed out by Alan, mode=raw is wrong. It should be mode=beast.



.

.
Title: Re: How to install RBFeeder with Raspbian Bullseye?
Post by: anorak on February 16, 2022, 04:13:11 PM
Hi abcd567, is your Bake a Pi thread the best way to load a Pi, or with the updates is there a better script please?
Thanks, Dave.
Title: Re: How to install RBFeeder with Raspbian Bullseye?
Post by: abcd567 on February 17, 2022, 12:05:08 AM
Hi abcd567, is your Bake a Pi thread the best way to load a Pi, or with the updates is there a better script please?
Thanks, Dave.

Hi Dave
I have not looked at my "Bake A Pi" howto for a long time. It is 2017 howto, and many changes have taken place during these 5 years. Obviously many procedures given in it most likely have become outdated.

Ok, this weekend (or may be next weekend) I will review it and update it. It may take more than one weekend.

Regards,
abcd
Title: Re: How to install RBFeeder with Raspbian Bullseye?
Post by: anorak on February 17, 2022, 10:43:43 AM
Don`t worry how long it takes, if any one can, you can.
Your efforts are always appreciated, Dave.