Skip to content

11 System

e2ret edited this page Nov 30, 2026 · 6 revisions

System: maintenance

Left sub-tabs (phone: button row): Operations (Quick Commands, Maintenance, System, Backup & Restore), Versions, Chat & Access, Telegram, Globe.

Lite difference. Full has no rnsd unit. Labels may still say RNSD/rnsd; actions restart the Reticulum stack inside dashboard (and related services as listed).

Quick Commands

Command Role
PORTS USB / tty devices
RNSTATUS Interface status (rnstatus; dashboard also caches this ~8 s since 1.1.27 to stop CPU stampede / HTTP 500)
RESTART LXMF Restart bridge
RESTART DASHBOARD Restart dashboard + owned RNS; page reloads when up
MEMORY / UPTIME Host stats
CLEAN LOGS Trim journals / syslog bulk
⬆ UPDATE NOEMA Pull from GitHub and restart core services

Long interactive work: prefer the Logs terminal. Quick Commands are one-shot output.

Update NOEMA

Typical flow: git fetch + hard align to origin/main, pip upgrades, restart dashboard and bridge.

Header badge ⬆ UPDATE when the box is behind origin/main and git works.

v1.1.28: if git is missing (common on Ubuntu Touch phones) or git fetch fails, the UI shows that fact instead of hiding the control as “already up to date”. Install/update then needs SSH or a host that has git, or a manual copy of the release pack.

Uncommitted local edits on the device are overwritten by the update path.

Manual update (SSH / terminal)

cd /root/NOEMA-RNSGate-FULL && git fetch origin && git reset --hard origin/main
systemctl restart dashboard noema_lxmf_bridge

Do not hand-edit tracked files over SSH and expect the next pull to merge. Revert with git checkout -- file or accept overwrite.

Do not drop untracked files into the tree via scp; pull aborts with untracked overwrite. Remove them first, then pull.

Support / error report

System → Support builds a sanitized zip (journals, systemctl, versions, ports, redacted configs; no identities/passwords). Describe the fault, Collect & download, send the zip yourself.

Uninstall

cd /root/NOEMA-RNSGate-FULL
sudo bash uninstall.sh

Stops services, removes units and install trees listed by the script. Keeps Reticulum/Nomadnet identities unless:

sudo bash uninstall.sh --purge --yes

Then sudo bash install.sh. Distro packages (i2pd, bluez, Python, …) stay.

Maintenance

Setting Role
Restart rnsd every night at 04:00 Cron restart of the RNS-owning stack; trims growing path tables
TCP watchdog Every 5 min via rnstatus; restarts RNS if a TCP iface is down. 10 min cooldown between restarts. Log: /var/log/noema_tcp_watchdog.log

State read from real crontab when you open the tab. Nightly = memory; watchdog = dead TCP. Both are useful on busy or flaky links.

Dashboard polling frequency

Full-only. Multiplier on UI poll intervals (localStorage per browser):

Mode Multiplier
Fast (default) 1×
Normal 2× slower
Slow / Low-power 4× slower

Orange Pi Zero class hardware often needs Normal or Slow.

Device management

Action Effect
Restart Dashboard Dashboard + owned RNS
Reboot Device Full reboot
Reset All Identity New crypto identities

Reset All Identity deletes LXMF (bridge+chat), Reticulum, I2P, Nomadnet identities and chat data. Keeps MQTT/reticulum config text, Nomadnet pages, scripts. Irreversible; backup first.

Sound (v1.1.28)

Under System (not Chat Settings):

Control Role
Notification sound Default / Double / High / Low / Bell / Off
Volume 0-100%
Test Browser beep + phone speaker

Incoming chat triggers phone speaker when the panel is closed (Ubuntu Touch / phablet Pulse path). Mini-PC without that user/path silently skips speaker play.

Chat Settings

Message/file retention limits; Save limits, Clean files now, Clear all history. Sound controls no longer live here.

Access Control

Two whitelists: Bridge (MQTT path) and NOEMA Chat. Plus automatic 1-hour LXMF dedup across parallel TCP paths (stops double HA triggers / double chat rows).

Bridge

Field Role
Whitelist on Only listed senders accepted
Allowed addresses 32-char hex
Rate limit Default 5 msg/min/sender
Cooldown Default 60 s when over limit

Writes /etc/noema/bridge.cfg [access] and restarts noema_lxmf_bridge.

Whitelist senders, not the gateway’s own address (header / [NOEMA] Address: in logs).

Chat

Same idea for dashboard chat; [chat_access]; applies immediately.

Finding your LXMF address

CrossTalk: Settings → LXMF Address. Sideband: identity icon. NomadNet: !i or identity settings.

Local AI (LXMF Bridge)

/ask via llama.cpp / Ollama-compatible HTTP. Config only (no dedicated UI):

[llm]
enabled = 1
url = http://YOUR_LLM_SERVER:8090/completion
max_tokens = 256
timeout = 60
system_prompt = You are a helpful assistant reachable over a Reticulum mesh. Keep answers short.

Restart bridge after edit. Reply path: immediate “Thinking…”, then “AI” message. Work runs off the LXMF thread. Gateway does not host the model weights.

Telegram

BotFather token + chat id → Save → Test. Checkboxes: Bridge messages / Chat messages.

Backup & Restore

Category Contents
configs reticulum, bridge (access/chat_access/llm), nomadnet, i2p tunnels, dashboard_override
identity LXMF bridge/chat, reticulum, i2p keys, destinations
pages Nomadnet .mu
scripts .py / .sh
data chat history/contacts/files, monitored_nodes, node_tracker
Globe netmap.json

DOWNLOAD BACKUP → noema_backup_YYYYMMDD_HHMMSS.zip. Restore: upload zip → reboot. Keys preserved → same LXMF Bridge address after restore.

Globe

  • Gateway lat/lon (or pick on globe) → dashboard/netmap.json, in backup
  • Offline GeoIP: Download DB-IP City Lite (~100 MB, resumes) or Choose file… (.mmdb / .mmdb.gz / ipcity.bin). No online IP lookup from the gateway
  • maxminddb needed for .mmdb (install.sh); not for ipcity.bin

ipcity.bin is compact DB-IP City Lite for Noema Snitch format; not shipped in the git tree (size). Monthly DB-IP releases can replace the file anytime.

Versions

Python, RNS, LXMF, lxmfy, nomadnet, paho-mqtt, Flask. UPDATE / INSTALL from the UI.

Updates apply without a second confirm. Major RNS (e.g. 1.6 path DB) can be one-way. Backup first; update one component at a time.

v1.1.20: “What’s in this update?” next to the NOEMA badge links GitHub compare/changelog when an update is available.

Troubleshooting

Problem Action
LoRa missing PORTS; USB cable
MQTT ERR Configs host/user/password
Service down Logs / journalctl -u name -n 50
No route RESTART DASHBOARD; wait 30-60 s; check [[Nodes
Dashboard dead SSH systemctl restart dashboard
I2P flaky first minutes Wait 5-10 min
Unknown IP Router clients or ping noema.local
Telegram silent Token/chat id + Test
No update badge GitHub poll ~5 min; on phone without git expect git-missing text (1.1.28), not a silent “up to date”
Whitelist drops you Your sender hex, not gateway
RAM climbs Nightly restart; inspect bridge journal
TCP stuck after outage TCP watchdog; rnstatus; watchdog log
UI heavy / many 500s on rnstatus 1.1.27 cache; also lower polling frequency
Access UI stale Hard refresh
/ask fails enabled=1, curl the LLM URL from the terminal
Pull blocked by local edits git fetch + git reset --hard origin/main (loses manual edits)

Clone this wiki locally