I like to use the Lite version of Raspberry Pi O.S. and for the moment I've been sticking with Bookworm. Due to some issues during install, I decided to document step-by-step for getting the meshtastic software installed. Note: this is not the meshtasticd software.
- Lora radio is a Heltec v3 connected via USB but will work with a SX1262 hat/etc.
# Install required packages
sudo apt install python3 python3-pip python3-venv -y# Create a Meshtastic virtual environment
python3 -m venv ~/meshtastic-env
python3 -m venv ~/meshtastic-env
# Activate the environment
source ~/meshtastic-env/bin/activate
source ~/meshtastic-env/bin/activate
# Your shell prompt should change to something like:
# (meshtastic-env) pi@raspberrypi:~# Install/Upgrade pip
pip install --upgrade pip
# Install Meshtastic inside the environment
# This step will take forever on a Pi Zero
pip install meshtastic pytap2
# This will let you run meshtastic from a regular login.
sudo ln -s ~/meshtastic-env/bin/ meshtastic /usr/local/bin/meshtastic
# Test the CLI
meshtastic --help
meshtastic --help
meshtastic --nodes
# Easier to read:
# meshtastic --nodes | awk -F'│' '{print $3,$4,$5}' | sed 's/^ *//'
# meshtastic --nodes | awk -F'│' '{print $3,$4,$5}' | sed 's/^ *//'