Install
The Linux one-liner, systemd service or Docker, updates, and why /bin/bash -c must stay.
The Meshloom server is built for Linux. A machine that stays on makes a much better host than a laptop you close: while the server runs, it listens to the mesh and records what it hears. (A Raspberry Pi works very well. It has its own ready-made image.)
An installation script does the work and asks its questions in English or French. Paste this into a terminal:
/bin/bash -c "$(curl -fsSL https://get.meshloom.app)"
Why /bin/bash -c
This form is not decoration. The script is interactive: it needs your answers. With /bin/bash -c "$(...)", the download finishes first, then the script runs with the terminal free for its questions.
If you pipe it instead (curl … | bash), the script’s input is busy receiving the download. Its questions have no terminal to use, and the installation goes wrong. Keep the /bin/bash -c.
What the script asks
In this order:
- Language. English or French. Your choice is remembered for the next run, and the default follows your system language.
- Method. The script shows what it detected (your system, whether Docker is present) and offers up to three choices:
- Install as a background service. Meshloom starts with the machine, under systemd. It works with a USB, network or Bluetooth radio. This is the recommended choice on Linux.
- Run with Docker. Meshloom runs in a container. This keeps the installation separate from the rest of the machine, but limits access to hardware. Sharing a USB radio with the container needs Docker running as root on Linux. Without that (Docker Desktop, rootless Docker), the radio must be on the network.
- Only open Meshloom in a browser. Installs nothing. Choose it when Meshloom already runs on another machine. The script only reminds you of the address to type.
- Docker only: the folder. Where to put
docker-compose.ymland thedatafolder (by defaultmeshloomin your home folder, or the folder of an existing install). If several serial devices are plugged in, it also asks which one to share with the container. With a single device, it shares it without asking. - A summary, then a confirmation, before anything starts. Some steps need administrator rights, and your password may be requested.
The radio itself is never configured by the installer. You choose USB, network or Bluetooth in the web interface afterwards (see First launch). Details for each link are in Radio transports.
On a system that is not Linux (macOS, for example), the service choice is not offered. Use Docker with a radio on the network, or the browser-only choice, and install Meshloom on a Linux machine if you want to plug the radio in by USB or Bluetooth.
For a service, the script installs a package from the signed Meshloom repository (apt on Debian and Ubuntu, dnf on Fedora). If the repository has nothing for your machine, it falls back to the package attached to the GitHub release, and finally to an installation from the source code. On an ARMv6 board (Raspberry Pi 1, original Zero and Zero W) it stops at once instead: Meshloom does not run there. See Raspberry Pi image.
Security. The script asks nothing about security, and the choice matters. Bots run code on the machine and are on by default, except in the Linux package (and therefore the Raspberry Pi image), which turns them off in /etc/meshloom/meshloom.env. With Docker or from source, add MESHCORE_DISABLE_BOTS=true to turn them off (in the Home Assistant add-on, turn on its disable_bots option), and MESHCORE_BASIC_AUTH_USERNAME with MESHCORE_BASIC_AUTH_PASSWORD to require a shared login. See A trusted network.
Open the interface
When the installation ends, the script prints the address. On the machine itself:
http://127.0.0.1:8000
From another device on the same network, replace 127.0.0.1 with the machine’s IP address and keep port 8000.
The interface needs a recent browser: Chrome or Edge 111, Safari 16.4 (iPhone and iPad: iOS or iPadOS 16.4), Firefox 128, or any later version. An older browser shows the page with a broken layout and wrong colours.
Next, choose the radio link in the interface: First launch.
Do not confuse two nearby addresses. http://127.0.0.1:8000/docs is the technical documentation of the API, generated by the server. It is not this documentation.
To check a service:
sudo systemctl status meshloom
Update
Open Settings > Updates. The page shows your type of install (Linux package, Docker Compose, Home Assistant add-on…) and a Check now button. When a new release exists and your install can update itself, Install now installs it. Automatic updates are off until you turn them on, and you can limit them to chosen days and hours (they follow the server’s clock, not your browser’s). Some versions, such as a new major version, are not installed automatically: a banner says so, and you start them with Install now. This limit needs Meshloom 4.18.3 or later: an older version keeps reading GitHub and installs them, and tools outside Meshloom, such as Watchtower following :latest, are not concerned. This only updates Meshloom and never runs a full apt upgrade on the system.
Updates are signed. The installer carries the Meshloom release key and checks its fingerprint; it never downloads the key, and it never adds an unsigned package source. The Linux package checks the repository signature, and the update helper refuses to run if the Meshloom source is not signature-checked. With Docker, the image is pinned by digest in the .env file next to docker-compose.yml (MESHLOOM_IMAGE=…@sha256:…). The update helper only moves this pin to a newer release whose digest is signed, and never goes back to an older one.
If Settings > Updates says you must update manually or re-run the installer, run it again. It keeps your data, replaces an old update helper and, for Docker, keeps the previous Compose file as docker-compose.yml.bak-<date>. If you edited your docker-compose.yml (to add a port, say), the installer shows your changes and offers to keep them, which is the default: it then updates only its own lines (the image and the update helper) and leaves yours alone. If it cannot adapt your file, it leaves it untouched and asks whether to generate a new one. Run the installer with the same account that created the stack: root if it lives in /root/meshloom.
Two cases update by hand:
- Docker without the update helper (Docker Desktop, rootless Docker, or a folder name with special characters). These stacks follow
latest. - A Linux package, if you prefer the terminal.
sudo apt-get install --only-upgrade meshloom # Debian / Ubuntu
sudo dnf upgrade --refresh meshloom # Fedora
sudo docker compose pull && sudo docker compose up -d # Docker without the helper
Your data stays where it was: /var/lib/meshloom for the package, the data folder next to docker-compose.yml for Docker. Database changes are applied automatically at startup.
On Home Assistant
If Home Assistant already runs on the machine that will host Meshloom, install Meshloom as an add-on instead. The interface appears in the Home Assistant sidebar, the database is stored with the rest of Home Assistant’s data, and Meshloom starts and stops with it.
The button opens the right dialog on your own Home Assistant, with the address filled in. It is only a redirect and learns nothing about you. To do it by hand, go to Settings > Add-ons > Add-on store > ⋮ > Repositories, add the repository address, then install Meshloom from the store.
Two things work differently there:
The radio-sharing port is set in Home Assistant, not in Meshloom. The interface is reached through the sidebar and publishes nothing, so the radio proxy (see Radio transports) is the only thing visible on the network. Change its port in the add-on’s Network panel. The field inside Meshloom only displays it, because a value typed there would make Meshloom listen where nothing is forwarded.
Notifications need an address of their own. The sidebar has no stable public address, so Web Push cannot work through it alone. Give Meshloom a real host name (the Cloudflared add-on can do this without opening a port on your router) and open Meshloom at that address.
This is not the same as publishing the mesh to Home Assistant over MQTT, which works from any installation and needs no add-on.
Other paths
The script covers the common case. For the rest (the Docker image ghcr.io/twinrocket/meshloom, Portainer, HTTPS, a manual systemd setup, environment variables, or a cloned repository for development) see Other install paths.
Next: First launch.