Install on Ubuntu
Provision the OneSVD node — watcher, hub, and web client — with a single command.
OneSVD installs from source with one command. The installer pulls the toolchains it needs (Go and Node), clones the repo, builds the watcher, hub, and web client, and registers the three components as systemd user services so they restart on crash and start at boot.
One-line install#
curl -fsSL https://sh.onesvd.com | bash
This clones the repository, builds everything, asks which directory to watch, and starts the services. When it finishes you'll see the web UI address — open it in your browser.
The installer targets Ubuntu/Debian with systemd. It runs the components as user services, so no root is needed for day-to-day operation. It does ask for sudo once to enable systemd "linger" — that's what keeps the node running while you're logged out and starts it at boot. Set ONESVD_NO_LINGER=1 to skip that step.
What the installer does#
In order, it:
- Installs Go and Node if they're missing.
- Clones the source into
~/.local/share/onesvdand links theonesvdcommand into~/.local/bin. - Asks which directory to watch — defaulting to the directory you ran the command from.
- Builds the watcher binary, installs the hub and client dependencies, and produces a production build of the web client.
- Enables linger (one-time
sudo), writes the systemd units, and starts the services. - Prints the local and network URLs.
Re-running the installer updates the source and rebuilds. It restarts the services only when the build or configuration actually changed, so an unchanged re-run leaves them running untouched.
Using onesvd right away#
The installer adds ~/.local/bin to your PATH for new shells. To use onesvd in the terminal you installed from, open a new terminal or run:
source ~/.local/share/onesvd/env
Managing the node#
After install, the onesvd command controls everything:
onesvd status # show what's running and where it's watching
onesvd logs # follow all three logs
onesvd restart # bounce the services
onesvd dir PATH # change the watched directory
onesvd uninstall # stop and remove the services (data is kept)
See the CLI reference for the full command list.
Ports#
OneSVD uses three ports by default. Change any of them after install with onesvd config set:
| Component | Port | Config key |
|---|---|---|
| Web client | 7777 | frontend_port |
| Hub (WebSocket + HTTP) | 4000 | hub_port |
| Hub ingest (loopback) | 4001 | ingest_port |
onesvd config set frontend_port 8080
Next#
Head to the quickstart to add files and watch the tree update, or see configuration for the full list of settings.