How To Install mlat-client in Virtual Envirnoment
(1) Issue following command to create a new blank file:
sudo nano install-mlat-client-venv.sh
(2) Copy paste following code in new blank file created by above command.
#!/bin/bash
## Pre-requisite: Install Build-Tools & Dependencies
apt install -y \
git \
python3 \
python3-build \
python3-setuptools \
python3-wheel \
python3-pip
## Build & Install mlat-client
VENV=/usr/share/mlat-client
git clone https://github.com/mutability/mlat-client mlat-client-source
cd mlat-client-source
/usr/bin/python3 -m venv --system-site-packages --without-pip ${VENV}
source ${VENV}/bin/activate
${VENV}/bin/python -m build --no-isolation --wheel
${VENV}/bin/python -m pip install --no-index --no-deps --ignore-installed --require-virtualenv ${PWD}/dist/MlatClient-*.whl
Save and close file
(3) Make file executeable
sudo chmod +x install-mlat-client-venv.sh
(4) Run file by following command
sudo bash install-mlat-client-venv.sh
On completion, you will see this:
(5) Check Creation:
ls /usr/share/mlat-client
ls /usr/share/mlat-client/bin
You will see this:
(6) Test-run on Radarbox24 feeder
sudo nano /etc/rbfeeder.ini
Commented-out line starting with mlat_cmd=
Added following line:
mlat_cmd=/usr/share/mlat-client/bin/python3.11 /usr/share/mlat-client/bin/mlat-client
sudo systemctl restart rbfeeder
sudo systemctl status rbfeeder