Machines with no screen
Let a build server or another computer with no screen read one folder of your vault with librevault-server. Its keys are locked with a password you type once after each restart.
On this page
A machine that reads one folder of your vault usually has no screen: a build server, a box in a cupboard. For those there is a small package, librevault-server. It has the same machine commands as LibreVault for the computer, and nothing else: no window, no vault, no vault password.
The machine's keys are kept locked on its disk with a password you choose. After every restart you type that password once, over SSH, and the keys stay open until the next restart or until you lock them.
Set it up#
On the machine, as the user that will read the folder (not root):
- Download the package and check it (Debian or Ubuntu; it brings in Java 21 by itself):
Go on only ifV=0.1.72 U=https://git.libreportal.org/LibrePortal/LibreVault/releases/download/v$V curl -fLO $U/librevault-server_${V}-1_all.deb curl -fLO $U/librevault-server_${V}-1_all.deb.sha256 sha256sum -c librevault-server_${V}-1_all.deb.sha256 sudo apt install ./librevault-server_${V}-1_all.debsha256sumsays OK. A newer version is on the LibreVault releases page; changeVto it. - Start its service, and let it run without a login:
systemctl --user enable --now librevault-server sudo loginctl enable-linger $USER - Choose the password for this machine's keys (at least 12 characters; nothing shows while you type):
librevault unlock - In LibreVault, on the server's page, Machines, Add a machine, and run the line it shows here. Compare the words, and press yes in LibreVault.
That's it. librevault list, get, get-file and sign-apk work as described in Machines that read one folder.
After a restart#
The keys are locked again. Anything that tries to read gets "this machine's keys are locked". Sign in over SSH and type:
librevault unlock
librevault lock closes them before then, and librevault status says whether they are open and what the machine is paired with.
Only that user
The service only answers the user it runs for, and only on the machine itself. While the keys are open, programs running as that same user can use them, much like an SSH agent. That's why Ask me first is the default: each read still needs your yes in LibreVault. Remove in LibreVault stops the machine at once.
Advanced Moving from LibreVault for the computer
The package replaces LibreVault for the computer on that machine (both have the librevault command). A machine already paired there keeps its pairing: at the first librevault unlock, the keys it has are locked with the password you choose and the unlocked copy is deleted.
New to the command line? How to run LibrePortal commands →