Skip to content
rev0Docs

Install the rev0 command on Linux

On Linux the command line rev0 comes as a folder: rev0-linux-x86_64.tar.gz, from your account page under Download rev0. It holds one folder, rev0, with the rev0 command and the files it runs from. Unlike the single file rev0-linux-x86_64, which is still published, it has nothing to unpack each time it starts, so it starts faster and keeps working under tmux, screen and nohup.

The download needs your sign in, so it happens in a browser. For a server with no browser, download it on your own machine and copy it over (scp rev0-linux-x86_64.tar.gz you@server:). Then:

Terminal window
tar -xzf rev0-linux-x86_64.tar.gz
./rev0/rev0 install-path

install-path copies the folder to ~/.local/share/rev0 and links ~/.local/bin/rev0 to the copy, so you can delete the download afterwards. It never asks for sudo and never writes outside your home folder. If ~/.local/bin is not on your PATH yet (most desktop distributions add it once it exists, a fresh login picks it up), it prints the line to add to ~/.bashrc or ~/.zshrc:

Terminal window
export PATH="$HOME/.local/bin:$PATH"

From then on, in any folder:

Terminal window
rev0 serve --with-runner

and open http://127.0.0.1:8000. Every other command in Command line works the same way. $XDG_DATA_HOME and $XDG_BIN_HOME move the two folders when you set them.

If ~/.local/bin/rev0 already exists and is not the link install-path made, it leaves that file alone and says so: remove or rename it first.

Update from the board: Settings > System > Updates, then Update. It downloads the new rev0-linux-x86_64.tar.gz, checks it against the release’s checksum, unpacks it next to the installed folder, checks that the new rev0 starts, swaps the two folders and restarts the board. The previous folder stays as ~/.local/share/rev0.prev; to roll back, stop the board, then:

Terminal window
rm -rf ~/.local/share/rev0 && mv ~/.local/share/rev0.prev ~/.local/share/rev0

Running install-path from a newer download does the same swap by hand. If you unpacked the folder somewhere the board cannot write (for example /opt), the Updates section shows the commands to run instead.

Terminal window
rm ~/.local/bin/rev0
rm -rf ~/.local/share/rev0 ~/.local/share/rev0.prev

The board itself lives in ~/.rev0, which this leaves alone: see Back up and restore the board.

A board in a terminal writes its warnings, errors and crashes to board.log, and the runner to runner.log, in ~/.local/state/rev0. See Where the logs are.