# piHAT setups

These are technical notes to help setup meshADV HAT boards that go onto Pi zero, 3b+, 4b+ and 5 boards:

<span style="font-weight: bold;">meshtasticd piHAT</span>

<span style="font-weight: bold;">piHAT installation: meshadv PiHAT (full and mini) raspian 12 (bookworm) is best</span>

[https://github.com/chrismyers2000/MeshAdv-Pi-Hat?tab=readme-ov-file](https://github.com/chrismyers2000/MeshAdv-Pi-Hat?tab=readme-ov-file)

<span style="font-weight: bold;">Meshtastic piHAT configuration tool: (normal and mini)</span>

wget [https://raw.githubusercontent.com/chrismyers2000/Meshtasticd-Configuration-Tool/refs/heads/main/Gui/meshtasticd\_config\_tool\_GUI.py](https://raw.githubusercontent.com/chrismyers2000/Meshtasticd-Configuration-Tool/refs/heads/main/Gui/meshtasticd_config_tool_GUI.py)

<span style="font-size: 13px;">sudo chmod +x meshtasticd\_config\_tool\_GUI.py</span>

./meshtasticd\_config\_tool\_GUI.py

<span style="font-size: 13px; font-weight: bold;">SSH version:</span>

wget [https://raw.githubusercontent.com/chrismyers2000/Meshtasticd-Configuration-Tool/refs/heads/main/Command-line/meshtasticd\_config\_tool\_CLI.py](https://raw.githubusercontent.com/chrismyers2000/Meshtasticd-Configuration-Tool/refs/heads/main/Command-line/meshtasticd_config_tool_CLI.py)

sudo chmod +x meshtasticd\_config\_tool\_CLI.py

./meshtasticd\_config\_tool\_CLI.py

<span style="font-size: 13px; font-weight: bold;">with cli tool, meshtasticd install can fail, use this: (raspian 12 bookworm)</span>

echo 'deb [http://download.opensuse.org/repositories/network:/Meshtastic:/release/Raspbian\_12/](http://download.opensuse.org/repositories/network:/Meshtastic:/release/Raspbian_12/) /' \| sudo tee /etc/apt/sources.list.d/network:Meshtastic:release.list

curl -fsSL [https://download.opensuse.org/repositories/network:Meshtastic:release/Raspbian\_12/Release.key](https://download.opensuse.org/repositories/network:Meshtastic:release/Raspbian_12/Release.key) \| gpg --dearmor \| sudo tee /etc/apt/trusted.gpg.d/network\_Meshtastic\_release.gpg &gt; /dev/null

<span style="font-weight: bold;">sudo apt update</span>

<span style="font-weight: bold;">sudo apt install meshtasticd</span>

<span style="font-weight: bold;">Meshtasticd installation raspian 13:</span>

\[\[ "$(. /etc/os-release &amp;&amp; echo $NAME)" == Raspbian\* \]\] &amp;&amp; echo "ERROR: Raspberry Pi OS (32-bit) detected, please use the Raspbian repos."

echo 'deb [http://download.opensuse.org/repositories/network:/Meshtastic:/beta/Debian\_13/](http://download.opensuse.org/repositories/network:/Meshtastic:/beta/Debian_13/) /' \| sudo tee /etc/apt/sources.list.d/network:Meshtastic:beta.list

curl -fsSL [https://download.opensuse.org/repositories/network:Meshtastic:beta/Debian\_13/Release.key](https://download.opensuse.org/repositories/network:Meshtastic:beta/Debian_13/Release.key) \| gpg --dearmor \| sudo tee /etc/apt/trusted.gpg.d/network\_Meshtastic\_beta.gpg &gt; /dev/null

sudo apt update

sudo apt install meshtasticd

<span style="font-weight: bold;">Install meshtastic CLI:</span>

<span style="font-weight: bold;">sudo apt install pipx -y</span>

pipx install meshtastic

pipx ensurepath

source ~/.bashrc

<span style="font-weight: bold;">later configs:</span>

meshtastic --set network.ntp\_server "pool.ntp.org"

meshtastic --set network.eth\_enabled true

meshtastic --set device.role ROUTER

meshtastic  --setlon -155.6749 --setlat 20.0247

<span style="font-weight: bold;">Hoku location: 20.024755°N 155.674931°W</span>

meshtastic --host 192.168.3.162 --setlon -155.6749 --setlat 20.0247

meshtastic --setlon -155.6749 --setlat 20.0247

<span style="font-weight: bold;">cockpit: (best on pi3,4 or 5)</span>

sudo apt install gettext nodejs npm make

sudo apt install cockpit

sudo systemctl enable cockpit.socket

sudo systemctl start cockpit

  

---

<small>Migrated from Apple Server Wiki. Original page ID: m989v9w1</small>