Sync
Running a server
A SeventhSlide server is an always-on computer that keeps a copy of one or more synced libraries, so the computers that use them can sync without being on at the same time. It is SeventhSlide itself, started with seventhslide --server. It opens no window and needs no screen, so it runs on a small, low-power computer such as a Raspberry Pi, a NAS or an old PC.
A server runs the same sync as SeventhSlide with a window, and keeps each library whole: its songs, services and settings, and every media file. Someone comfortable with a terminal and the router sets it up once; everyone else only pastes invite codes.
Requirements
Section titled “Requirements”- A computer that stays on, on the local network or anywhere with a steady internet connection, with SeventhSlide installed (see Installing).
- Disk space for the libraries’ media (videos above all), plus a little more.
- Memory: about 2 GB is comfortable. Libraries sync two at a time, however many the server holds. A library with many Bibles takes the most: one with 10 Bibles and 2,000 songs peaks at about 460 MB while its first copy is taken in. A Raspberry Pi 4 or 5 with 2 GB or more is fine; one with 1 GB suits only small libraries.
- For computers outside the local network to reach it: a port forwarded on the router, IPv6 allowed through the router’s firewall, or a private network such as Tailscale (see Reaching the server from outside).
Viewer or editor
Section titled “Viewer or editor”Make the server a viewer of each library. A viewer makes no changes to the library, and the other computers accept library contents only from editors, so someone who breaks into the server cannot change the library. To do admin work at the server, give it the admin key (below).
A server can be made an editor, but then its key is one that the other computers trust, and that key is kept on the computer most exposed to the internet.
SeventhSlide with a window can do the same job as a viewer with an address others reach (see Reach this computer at in Sync), but it has to be left running and signed in.
Starting the server
Section titled “Starting the server”seventhslide --server [--data DIR] [--port N] [--address HOST[:PORT]]... [--name NAME] [--no-discovery]| Option | What it does |
|---|---|
--data DIR |
The server’s own folder: its key and the libraries it holds. Back this folder up. Without it, the server uses the folder named in /etc/seventhslide/server.json (%ProgramData%\SeventhSlide\server.json on Windows), then a server folder inside SeventhSlide’s usual data folder. It can’t be the data folder of a SeventhSlide used at the screen. |
--port N |
The port it listens on. 8766 by default. |
--address HOST[:PORT] |
How computers outside the local network reach it: an internet name (slides.example.org) or address. Give it once for each way in, with the port after it if the router forwards a different one. Every invite carries these addresses. Without it, the server gives its local network addresses, and its lasting IPv6 addresses if it has any. |
--name NAME |
What the other computers call it, such as Main server. The computer’s own name by default. |
--no-discovery |
Stops it announcing itself on the local network and listening for the others. Computers then reach it only at its address. |
--port, --address, --name and --no-discovery apply to that run only. To set them for good, use the settings screen or seventhslide --server settings.
The server writes what it does to the terminal, or to the system log when it runs as a service: computers connecting, libraries synced and anything it refused. Only one server runs with a given data folder at a time.
On the local network, the server and the computers find each other by announcing themselves over UDP port 8766. A firewall on the server must let in TCP and UDP port 8766. On Fedora:
sudo firewall-cmd --permanent --add-port=8766/tcp --add-port=8766/udpsudo firewall-cmd --reloadThe settings screen
Section titled “The settings screen”seventhslide --server configThe settings screen shows everything on one screen in the terminal, in three pages:
| Page | What it has |
|---|---|
| Status | How the server and its libraries stand, and Sync Now. |
| Libraries | Join a Synced Library…, and for each library: its computers, invites, roles, the admin key, removing a computer, the size limit, the admin password and recovery code, where the server reaches a computer, and Stop Syncing…. |
| Settings | Name, Reach this computer at, Port, Sync automatically and Announce on the network. A value set by an option for the current run is marked, and a change that takes effect at the next start says so. |
The arrow keys or Tab move, Enter chooses, 1 2 3 change page, and q leaves. In a field, keys type into it; Esc leaves the field.
The server doesn’t need to be running for you to change its settings, which are saved for its next start. Work on libraries needs it running. The admin password is asked for each time, shown as dots, and never kept.
An invite or recovery code is shown on a page of its own. A narrow terminal breaks a long code across lines, and SeventhSlide accepts it pasted with the breaks. You can also tick Print it when I leave, to copy it whole, and the code is printed in full when the screen closes.
Commands
Section titled “Commands”Each part of the settings screen is also a command, for scripts and services. All of them except settings need the server running. Run them as the user that owns the data folder, and add --data DIR when the folder is not the usual one.
| Command | What it does |
|---|---|
seventhslide --server config |
The settings screen. |
seventhslide --server settings [--json] |
Shows the sync settings. |
seventhslide --server settings name NAME |
Sets the name. Likewise addresses HOST[:PORT]... or none, port N or none, discovery on or off, and sync on or off. |
seventhslide --server join |
Joins a library by an invite, and asks for the code. |
seventhslide --server status [--json] |
Lists the libraries held, their computers and the disk space. |
seventhslide --server sync |
Syncs every library now (for a server set not to sync automatically). |
seventhslide --server admin LIB ... |
Admin work on a library (below). |
seventhslide --server address LIB COMPUTER [HOST[:PORT] | none] |
Reaches a computer of the library at that address, on this server only, when its address changed and the server did not hear. none goes back to the addresses it gave. |
seventhslide --server leave LIB [--yes] |
Stops holding a library. |
seventhslide --server help |
Lists all of these. |
LIB is a library’s id as status shows it, or enough of its start to tell it from the others. COMPUTER is a computer’s name or id.
join CODE also works, but it leaves the code in the shell’s history and where other users of the computer can see it.
Putting a library on the server
Section titled “Putting a library on the server”The server joins a library as any computer does, with an invite. Repeat these steps for each library it should hold.
- On an editor computer of the library, open Settings › Sync and click Add.
- If the server can reach a computer of the library (they are on the same network, or a computer of the library has an address), choose Invite a Viewer….
- If it cannot (for example, a server in a data centre with the editors on home connections), choose Invite a Viewer at an Address… and enter the server’s address. That computer then reaches out to the server for as long as the invite lasts.
- On the server, run
seventhslide --server joinand paste the code when asked. - To do admin work at the server, select it in the list of computers on the editor computer, click the role button, and turn on Holds the Admin Key.
The invite’s code is what lets the server in. Don’t share it with anyone except the person setting up the server, and make a new invite if anyone else saw it.
Status
Section titled “Status”$ seventhslide --server statusMain server (SeventhSlide 0.1.0), up since 2026-10-25 09:00 Key 80d2 11b1 822c 6df1; listening on port 8766 Computers reach it at: slides.example.org:8766 Data: /var/lib/seventhslide-server, 231.2 GB free of 502.4 GB
Library 3e0a5a234b1b02ada3d57e4c898b7d05 Up to date. Last synced 2026-10-25 10:02. 1.2 GB of media, 412 change file(s). Computers: Main PC editor connected now Laptop editor last heard 2026-10-24 21:13 Stage display viewer not heard from here Main server viewer+key this server
Connected now: Main PC.viewer+key is a viewer that holds the admin key. A problem with a library is shown in its first line, such as the server not being on the library’s list, or a library changed by a newer SeventhSlide (update the server). After the libraries, status lists the SeventhSlide computers that the server has heard on the local network lately, which shows whether the server and those computers can find each other.
Admin work at the server
Section titled “Admin work at the server”Once the server holds a library’s admin key, it can do all the admin work that the Sync page can:
seventhslide --server admin LIB the library's computersseventhslide --server admin LIB invite editor an invite (7 days; --days N)seventhslide --server admin LIB invite viewerseventhslide --server admin LIB invite viewer --at far.example.org ... reaching out to it thereseventhslide --server admin LIB role "Laptop" viewer change a computer's roleseventhslide --server admin LIB key "Bridge" on a viewer holds the admin key (or off)seventhslide --server admin LIB remove "Old laptop" remove a computer for goodseventhslide --server admin LIB limit 50GB the size limit (or none)seventhslide --server admin LIB password a new admin passwordseventhslide --server admin LIB password --recovery ... with the recovery codeseventhslide --server admin LIB recovery a new recovery codeEach asks for the admin password (or the recovery code) without showing it. The password is used for that one change and is never stored or logged.
Leaving a library
Section titled “Leaving a library”seventhslide --server leave LIBThe server stops holding the library and moves its copy into the left folder inside its data folder; delete it when it is no longer wanted. Also remove the server from the library’s list of computers (admin LIB remove "Main server", or on an editor computer), or the other computers keep looking for it.
Reaching the server from outside
Section titled “Reaching the server from outside”Computers in other places reach the server across the internet in one of three ways.
Port forwarding
Section titled “Port forwarding”- In the router’s settings, reserve a fixed local address for the server (a DHCP reservation).
- Forward TCP port 8766 to that address.
- Start the server with
--addressset to the internet address, or set it withsettings addresses. If the internet address changes from time to time, as most do, get a dynamic DNS name (from DuckDNS, No-IP, or the router’s own service) and use that name.
No certificate or domain is needed. Everything between computers and the server is encrypted, each side proves its key, and the server lets in only computers on a library’s list or holding an invite.
With IPv6, the server has an internet address of its own and nothing is forwarded. On the router, allow TCP port 8766 in to the server’s IPv6 address. A computer reaches it this way only if it has IPv6 too; the others still need a port forward or Tailscale.
Without --address, the server gives the lasting global IPv6 addresses it finds. A provider can change a home’s addresses, so a name is still better: a dynamic DNS name with an IPv6 address (an AAAA record) beside the IPv4 one. Each address of a name is tried in turn, and one that doesn’t answer is given up after 15 seconds.
Tailscale
Section titled “Tailscale”Tailscale, or another private network of the same kind, puts the server and the computers on one network with nothing opened on the router. Install it on the server and on each computer, and use the server’s Tailscale name or address as its --address. The computers need Tailscale running to reach the server.
Linux: running as a service
Section titled “Linux: running as a service”The SeventhSlide source includes a systemd unit (packaging/server/seventhslide-server.service) that runs the server as a user of its own, starts it at boot and restarts it if it stops:
[Unit]Description=SeventhSlide server: keeps synced libraries and passes them between computersAfter=network-online.targetWants=network-online.target
[Service]Type=simpleUser=seventhslideGroup=seventhslideExecStart=/usr/local/bin/seventhslide --server --data /var/lib/seventhslide-serverRestart=on-failureRestartSec=10TimeoutStopSec=120
StateDirectory=seventhslide-serverStateDirectoryMode=0700UMask=0077NoNewPrivileges=yesProtectSystem=strictProtectHome=yesPrivateTmp=yesPrivateDevices=yesProtectKernelTunables=yesProtectKernelModules=yesProtectControlGroups=yesRestrictAddressFamilies=AF_UNIX AF_INET AF_INET6 AF_NETLINKRestrictNamespaces=yesLockPersonality=yes
[Install]WantedBy=multi-user.targetExecStart expects the program at /usr/local/bin/seventhslide. Check where it is with command -v seventhslide, and change the path to match (a package usually puts it in /usr/bin). Set the name, addresses and port with the settings screen rather than adding options to ExecStart, where they would override the saved settings at every start.
-
Create the user and install the unit:
sudo useradd --system --home-dir /var/lib/seventhslide-server --shell /usr/sbin/nologin seventhslidesudo cp seventhslide-server.service /etc/systemd/system/ -
Tell the commands where the data folder is:
sudo mkdir -p /etc/seventhslideecho '{"data": "/var/lib/seventhslide-server"}' | sudo tee /etc/seventhslide/server.json -
Start the service:
sudo systemctl enable --now seventhslide-server -
Follow what it is doing:
journalctl -u seventhslide-server -f
Run the settings screen and the commands as the same user:
sudo -u seventhslide seventhslide --server configRun as root, the settings screen and settings refuse and name the command to use, because files written there by root would stop the service.
Windows: running at startup
Section titled “Windows: running at startup”Use Task Scheduler, so the server runs whether anyone is signed in or not:
- In Task Scheduler, choose Create Task. Name it
SeventhSlide server. Choose Run whether user is logged on or not, with a Windows account made for it. - On Triggers, add At startup.
- On Actions, add Start a program:
C:\Program Files\SeventhSlide\seventhslide.exe, with the arguments--server --data C:\SeventhSlideServer. - On Settings, clear Stop the task if it runs longer than, and tick If the task fails, restart every 1 minute.
Allow the program through Windows Firewall when asked, or add inbound rules for TCP and UDP port 8766. Run the commands from a Command Prompt signed in as the same account, with the same --data, or put {"data": "C:\\SeventhSlideServer"} in %ProgramData%\SeventhSlide\server.json so they find the folder.
Moving or restoring a server
Section titled “Moving or restoring a server”Everything that makes up the server is in its data folder. To move it, stop the server, copy the folder to the new computer, and start the server there with the folder as --data. It is the same server, with the same key and libraries. If its address changed, update the router’s forwarding.
A server whose data folder is lost is a new server: invite it to each library again, and remove the old one from each library’s list of computers.
Changing its address
Section titled “Changing its address”The computers learn a new address from the library’s list, so each computer has to connect once to hear it. If the server’s address is a name that you keep, a change of internet address only means pointing the name at the new address.
To change the name or port, give the old and the new address together (--address old --address new, or both in settings addresses) until status shows that every computer has been heard from since, then drop the old one. A computer that was away for all of that time can be given the new address by hand: on its Sync page, select the server and click Address…. Once connected, it hears the new address too.
Updating
Section titled “Updating”Stop the server, install the new SeventhSlide, and start it again. When a release changes how computers talk to each other, every computer of a library needs updating; until then, they refuse to connect to each other and say which one to update. A library changed by a newer SeventhSlide than the server’s is still kept and passed on, and status says to update the server.