trilium-server-opslisted
Install: claude install-skill ZhenSiRong/trilium-server-ops
# TriliumNext Server Ops
Trilium (TriliumNext) is a self-hosted hierarchical notes app. The "server" build is a
Node/Express app listening on **:8080** by default (all interfaces) that keeps
everything in a **data directory** (`documents.db` SQLite + `config.ini` + backups).
Notes are rows in SQLite; the **ETAPI** (token-authenticated REST API) is how you
automate them.
Everything below was verified on a real **v0.95.0** server deployment (release assets
`TriliumNextNotes-Server-v0.95.0-linux-x64.tar.xz` from the `TriliumNext/Notes`
releases page). Quirks marked "verified" were hit and confirmed on that instance;
newer versions may differ.
## 1. Fresh install on a Linux host (no Docker)
1. Create a dedicated unprivileged user — Trilium must not run as root:
```bash
sudo useradd -r -m -d /opt/triliumnext trilium
```
2. Get the tarball from `https://github.com/TriliumNext/Notes/releases`
(asset names like `TriliumNextNotes-Server-v0.95.0-linux-x64.tar.xz`, also arm64):
```bash
cd /opt/triliumnext
curl -fLO https://github.com/TriliumNext/Notes/releases/download/v0.95.0/TriliumNextNotes-Server-v0.95.0-linux-x64.tar.xz
tar xf TriliumNextNotes-Server-*.tar.xz # → TriliumNextNotes-Server-<ver>-linux-x64/
```
**Slow egress to GitHub** (routine on CN-region cloud hosts — 1.4 MB in 150 s is
normal there): download on your own machine and stream it over SSH instead, then
checksum both copies:
```bash
ssh user@host 'cat > /tmp/triliu