diff --git a/scripts/install-reticulum.sh b/scripts/install-reticulum.sh new file mode 100755 index 0000000..0724551 --- /dev/null +++ b/scripts/install-reticulum.sh @@ -0,0 +1,32 @@ +#!/bin/bash +# Author : Gaston Gonzalez +# Date : 13 February 2026 +# Updated : 11 May 2026 +# Purpose : Install Reticulum + +# Version pin Reticulum and Nomadnet as we want to favor stability +# above all other concerns (security, features, etc.). +RNS_VERSION=1.2.5 +NOMADNET_VERSION=0.9.8 + +et-log "Installing Python3..." +apt install \ + python3 \ + python3-pip \ + -y + +et-log "Downloading rns ${RNS_VERSION} for offline install..." +python3 -m pip download -d wheelhouse rns==${RNS_VERSION} + +et-log "Downloading nomadnet ${NOMADNET_VERSION} for offline install..." +python3 -m pip download -d wheelhouse nomadnet==${NOMADNET_VERSION} + +et-log "Installing Reticulum and Nomadnet for single user use..." +PYTHONUSERBASE=/etc/skel/.local \ + python3 -m pip install --user \ + --no-index --find-links=wheelhouse \ + rns==${RNS_VERSION} \ + nomadnet==${NOMADNET_VERSION} + +et-log "Removing wheelhouse to save space..." +[[ -e wheelhouse ]] && rm -vrf wheelhouse diff --git a/scripts/install.sh b/scripts/install.sh index e09c6fb..89fa035 100755 --- a/scripts/install.sh +++ b/scripts/install.sh @@ -2,7 +2,7 @@ # # Author : Gaston Gonzalez # Date : 16 March 2024 -# Updated : 7 May 2026 +# Updated : 11 May 2026 # Purpose : Main installer for EmComm Tools Community (ETC) . ./env.sh @@ -119,5 +119,8 @@ exitIfNotRoot # Security Patches ./patch-copy-fail.sh +# Install Reticulum and NomadNet +./install-reticulum.sh + # Debrand Ubuntu ./debrand.sh diff --git a/tests/test-nomadnet.sh b/tests/test-nomadnet.sh new file mode 100755 index 0000000..68daf78 --- /dev/null +++ b/tests/test-nomadnet.sh @@ -0,0 +1,7 @@ +#!/bin/bash +# Author : Gaston Gonzalez +# Date : 11 April 2025 +# Purpose : Test NomadNet installation + +OUT=$(PYTHONUSERBASE=/etc/skel/.local /etc/skel/.local/bin/nomadnet --version) +exit $? diff --git a/tests/test-rnsd.sh b/tests/test-rnsd.sh new file mode 100755 index 0000000..c762f5b --- /dev/null +++ b/tests/test-rnsd.sh @@ -0,0 +1,7 @@ +#!/bin/bash +# Author : Gaston Gonzalez +# Date : 11 April 2025 +# Purpose : Test Reticulum installation + +OUT=$(PYTHONUSERBASE=/etc/skel/.local /etc/skel/.local/bin/rnsd --version) +exit $?