How to install RBFeeder with Raspbian Bullseye?

Started by bgaf, November 12, 2021, 10:18:04 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

bgaf

Any idea how to install rbfeeder on the latest Raspbian OS Bullseye image?


abcd567

#1
[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

wget http://apt.rb24.com/inst_rbfeeder.sh


(2) Open downloaded file for editing by following command

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:



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

(7) Issue following command to start installation

sudo bash inst_rbfeeder.sh 


.


bgaf

Thank you for the instructions. What about the MLAT client?

abcd567

#3
Quote from: bgaf on November 14, 2021, 01:18:41 PM
Thank you for the instructions. What about the MLAT client?

First try to install mlat-client by following ccommand:

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.


bgaf


abcd567

#5
I tried to install mlat-client on Bullseye, got following:

(1) AFTER installing rbfeeder, gave following command but it failed to install mlat-client

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

## 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 

bgaf

Maybe it's better to wait some more time for the companies to build their packages for Bullseye...

abcd567

#7
Quote from: 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...

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

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

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

wget -O /tmp/axfeed.sh https://adsbexchange.com/feed.sh
sudo bash /tmp/axfeed.sh



(6) Graphs: Installed on Bullseye by following command

sudo bash -c "$(wget -q -O - https://raw.githubusercontent.com/wiedehopf/graphs1090/master/install.sh)"






cbdagency

Did you mean it like you posted it or did you mean (5) Below this line type following:
VERS=bullseye

?

Quote from: abcd567 on November 14, 2021, 06:35:45 AM
To install rbfeeder on the latest Raspbian OS Bullseye image, follow this procedure:

(1) Issue following command to download file inst_rbfeeder.sh

wget http://apt.rb24.com/inst_rbfeeder.sh


(2) Open downloaded file for editing by following command

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:



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

(7) Issue following command to start installation

sudo bash inst_rbfeeder.sh 


.

abcd567

#9
Quote from: 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

?

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.  :)

.

abcd567

#10
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.


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




.

teesvalley spotter

Quote from: 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.


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

abcd567

#12
Quote from: teesvalley spotter on January 26, 2022, 02:52:58 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

sudo apt install mlat-client


Currently the above command gives following output:

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



NOTE:
(1) After installing mlat-client, do not forget to restart rbfeeder by following command:

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.


sudo nano /etc/rbfeeder.ini 

teesvalley spotter

Quote from: abcd567 on January 26, 2022, 04:50:51 PM
Quote from: teesvalley spotter on January 26, 2022, 02:52:58 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

sudo apt install mlat-client


Currently the above command gives following output:

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



NOTE:
(1) After installing mlat-client, do not forget to restart rbfeeder by following command:

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.


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


abcd567

#14
Quote from: teesvalley spotter on January 27, 2022, 07:32:39 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.

.