Install
JasperNode runs on Linux (2 cores and 2 GB of RAM at least) or in a Linux container with Docker on macOS, Windows or Linux. There is one install line per shape.
Install from JasperX (recommended)
Section titled “Install from JasperX (recommended)”In JasperX, open a project and choose Add controller → Do you have your own hardware? → Generate a code. JasperX shows the install line for that controller, with its claim code in it, and the local web interface password, once. Run the line on the machine; the controller installs, claims itself into the project and receives its password. The Docker installer ends with:
Open https://app.jasperx.io; the controller appears there within a minute.The lines look like this, with your own code in place of JX-ABC123:
# Docker on Linux or macOScurl -fsSL https://dl2.jasperx.io/jxn/docker.sh | JX_CLAIM=JX-ABC123 bash# Docker Desktop on Windows (PowerShell)$env:JX_CLAIM="JX-ABC123"; irm https://dl2.jasperx.io/jxn/docker.ps1 | iex# Linux, natively, as a service that starts with the computercurl -sL https://dl2.jasperx.io/jxn/install.sh | JX_CLAIM=JX-ABC123 sudo -E bash -A code works once and for 15 minutes. A JasperMate is claimed from the link on its sticker instead.
Install without a code
Section titled “Install without a code”The same lines without JX_CLAIM= install a controller that is not claimed. It starts and runs, and
the Docker installer ends with the next step:
Open https://app.jasperx.io; if this controller is not there yet, add it and run the line JasperX gives you.Until it is claimed once, its local web interface answers nothing: the password is set from JasperX.
Options
Section titled “Options”| Option | Effect |
|---|---|
JX_CLAIM=JX-… | Claims the controller into JasperX as it starts |
JN_CHANNEL=beta | Follows the beta channel instead of stable |
CNTR=modbus,s7 | Installs these connectors as it starts (install.sh); names as in the Connector catalog |
Docker
Section titled “Docker”Each controller lives in one folder, ~/jxnode/<name> (%USERPROFILE%\jxnode\<name> on Windows).
The installer asks for a name and a port (Return takes the port it offers) and prints the commands
for that folder:
cd ~/jxnode/<name> && docker compose logs -f # the logcd ~/jxnode/<name> && docker compose pull && docker compose up -d # updateWithout the installer, with a claim code from JasperX’s Add controller:
docker run -d --name jxnode --restart unless-stopped -p 9010:9010 \ -e JX_CLAIM=JX-ABC123 \ -v jxnode-data:/var/lib/jxnode \ jaspernode/jaspernode:latestThe claim is used once, on the first start that finds it; later starts ignore it. To claim a
container started without one, generate a fresh code, docker rm -f jxnode, and run the line above
again with the same volume: the controller keeps its data. --restart unless-stopped is needed: the
controller restarts by exiting. Port 9010 is the
local web interface. The beta channel’s image is
jaspernode/jaspernode:latest-beta.
In a container, network connectors (Modbus TCP, MQTT, S7, InfluxDB, Modbus Server) work as they do natively. EtherCAT and LiDAR need Linux hardware; serial devices need a network-serial gateway or a port passed into the container.
install.sh installs JasperNode as a systemd service under its own unprivileged user, and adds
jxsm to manage it (jxsm status, jxsm logs-follow, jxsm restart). Re-running the line updates
it.
Beside an older controller
Section titled “Beside an older controller”On a machine that already runs a controller from before version 3, the lines above install this one
beside it and leave the old one running: the two share nothing, and this one’s local web interface
is on port 9010, beside the old one’s 9009. Once this controller has taken over, remove the old
one with its own uninstall:
curl -sL https://dl2.jasperx.io/jn/install.sh | sudo bash -s -- uninstallIn Docker, the old controller’s folder under ~/jaspernode is left as it is; remove it with
docker compose down in that folder.