From 0164800f6dd7ede94d5a4fc0e79d367120d52089 Mon Sep 17 00:00:00 2001 From: FlUxIuS Date: Mon, 6 Jan 2025 23:06:19 +0100 Subject: [PATCH] Adding LibreVNA + xnec2c --- Dockerfiles/SDR/sdr_light.docker | 4 +++- rules/51-vna.rules | 3 +++ scripts/cal_devices.sh | 26 +++++++++++++++++++++++++- 3 files changed, 31 insertions(+), 2 deletions(-) create mode 100644 rules/51-vna.rules diff --git a/Dockerfiles/SDR/sdr_light.docker b/Dockerfiles/SDR/sdr_light.docker index 4406e9b..cabe61f 100644 --- a/Dockerfiles/SDR/sdr_light.docker +++ b/Dockerfiles/SDR/sdr_light.docker @@ -46,7 +46,9 @@ RUN ./entrypoint.sh jupyter_soft_install && \ ./entrypoint.sh KCSDI_cal_device && \ ./entrypoint.sh NanoVNASaver_cal_device_call && \ ./entrypoint.sh NanoVNA_QT_cal_device && \ - ./entrypoint.sh gnsslogger_cal_device + ./entrypoint.sh gnsslogger_cal_device && \ + ./entrypoint.sh librevna_cal_device && \ + ./entrypoint.sh xnec2c_cal_device RUN ./entrypoint.sh artemis_soft_install && \ ./entrypoint.sh gqrxscanner_sdr_soft_install diff --git a/rules/51-vna.rules b/rules/51-vna.rules new file mode 100644 index 0000000..4661e80 --- /dev/null +++ b/rules/51-vna.rules @@ -0,0 +1,3 @@ +SUBSYSTEMS=="usb", ATTRS{idVendor}=="0483", ATTRS{idProduct}=="564e", MODE:="0666" +SUBSYSTEMS=="usb", ATTRS{idVendor}=="0483", ATTRS{idProduct}=="4121", MODE:="0666" +SUBSYSTEMS=="usb", ATTRS{idVendor}=="1209", ATTRS{idProduct}=="4121", MODE:="0666" diff --git a/scripts/cal_devices.sh b/scripts/cal_devices.sh index 5a62600..cae95b1 100644 --- a/scripts/cal_devices.sh +++ b/scripts/cal_devices.sh @@ -23,7 +23,7 @@ function leobodnarv2_cal_device() { } function gnsslogger_cal_device() { - goodecho "[+] Installing dependencies for gnsslogger" + goodecho "[+] Installing gnsslogger" [ -d /rftools/calibration ] || mkdir -p /rftools/calibration cd /rftools/calibration gitinstall "https://github.com/bvernoux/gnsslogger.git" "gnsslogger_cal_device" @@ -118,4 +118,28 @@ function pocketvna_sa_device() { else criticalecho-noexit "[!] Architecture is not amd64 or x86_64. Skipping installation." fi +} + +function librevna_cal_device() { + goodecho "[+] Installing dependencies for LibreVNA" + install_dependencies "qt6-base-dev libqt6svg6 libusb-1.0-0-dev" + [ -d /rftools/calibration ] || mkdir -p /rftools/calibration + cd /rftools/calibration + gitinstall "https://github.com/jankae/LibreVNA.git" "librevna_cal_device" + cd LibreVNA + cd Software/PC_Application/LibreVNA-GUI + qmake6 LibreVNA-GUI.pro + make -j$(nproc) + ln -s "$(pwd)/LibreVNA-GUI" /usr/bin/LibreVNA-GUI +} + +function xnec2c_cal_device() { + goodecho "[+] Installing dependencies for xnec2c" + install_dependencies "gettext autopoint" + [ -d /rftools/calibration ] || mkdir -p /rftools/calibration + cd /rftools/calibration + gitinstall "https://github.com/KJ7LNW/xnec2c.git" "xnec2c_cal_device" + cd xnec2c + ./autogen.sh + make && make install } \ No newline at end of file