Libris Translate 0.29.0 · User guide

Category: Start here

Prepare the server: for the person installing Libris

Prepare the remote computer that will host Libris. You can give this procedure to your technician.

Before you start

You need a fresh Ubuntu 24.04 LTS AMD64 server, an initial root account and access to your hosting provider’s control panel. As a book editor, you can hand this page to the person installing Libris and ask them for your Libris address and account afterwards.

Steps

  1. On your computer, open Terminal on Mac or PowerShell on Windows. Run the command to create your connection key and choose a passphrase. Do not overwrite a key that already exists.
    bash
    ssh-keygen -t ed25519
  2. Display your public key with the command. Copy the line beginning ssh-ed25519: only this public key may be given to the hosting provider.
    bash
    cat ~/.ssh/id_ed25519.pub
  3. Create an Ubuntu 24.04 LTS AMD64 server with your hosting provider, with at least 2 GB of memory and 20 GB of disk. Add the public key. Note its address and initial root account.
  4. Connect with the command, replacing USER and SERVER_IP with the supplied account and address. If the provider shows the server fingerprint, compare it before accepting the first connection.
    bash
    ssh USER@SERVER_IP
  5. Run the server update and wait for the command prompt to return: the line where you can enter the next command.
    bash
    sudo apt update && sudo apt upgrade -y
  6. Create the libris account with the command. Enter a long, unique password; accept the optional fields as empty, then confirm with Y.
    bash
    sudo adduser libris
  7. Run the block that gives the libris account administrator rights and copies your public key to it.
    bash
    sudo usermod -aG sudo libris
    sudo rsync --archive --chown=libris:libris ~/.ssh /home/libris
  8. Turn on the firewall with the supplied block. It allows incoming SSH connections, the way you sign in to the server; confirm with y.
    bash
    sudo ufw allow OpenSSH
    sudo ufw enable
  9. Check the firewall. The result must show Status: active and an OpenSSH or 22/tcp line with ALLOW IN.
    bash
    sudo ufw status verbose
  10. Keep the first window open. In a second window, test signing in with the libris account.
    bash
    ssh libris@SERVER_IP
  11. In this second window, run the rights check. After you enter the libris password, the answer must be root. Do not continue if this check fails.
    bash
    sudo whoami
  12. Only after that successful test, you may run the optional block allowing key-based sign-in only. Its output must contain permitrootlogin no and passwordauthentication no.
    bash
    sudo tee /etc/ssh/sshd_config.d/00-libris.conf <<'EOF'
    PasswordAuthentication no
    PermitRootLogin no
    EOF
    sudo sshd -t && sudo systemctl reload ssh
    sudo sshd -T | grep -Ei '^(passwordauthentication|permitrootlogin)'
  13. Add Docker’s official repository with the supplied block. Docker is the software that will run Libris’s different components.
    bash
    # Add Docker's official GPG key:
    sudo apt update
    sudo apt install ca-certificates curl
    sudo install -m 0755 -d /etc/apt/keyrings
    sudo curl -fsSL https://download.docker.com/linux/ubuntu/gpg -o /etc/apt/keyrings/docker.asc
    sudo chmod a+r /etc/apt/keyrings/docker.asc
    
    # Add the repository to Apt sources:
    sudo tee /etc/apt/sources.list.d/docker.sources <<EOF
    Types: deb
    URIs: https://download.docker.com/linux/ubuntu
    Suites: $(. /etc/os-release && echo "${UBUNTU_CODENAME:-$VERSION_CODENAME}")
    Components: stable
    Architectures: $(dpkg --print-architecture)
    Signed-By: /etc/apt/keyrings/docker.asc
    EOF
    
    sudo apt update
  14. Install Docker with the command. Confirm with Y if asked.
    bash
    sudo apt install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin
  15. Run the final check: it must show Docker Compose version v2 or later and Hello from Docker!.
    bash
    sudo docker compose version
    sudo docker run hello-world

What you should see

You can sign in as libris, administer the server and read Hello from Docker! in the final check. The server is ready for Libris installation.

On video

Rent and prepare a server for Libris Translate · 1 min 52 Real, silent screen capture of server preparation on a test Ubuntu 24.04.5 LTS server; it is not a rented VPS.
What the video shows
  • Benchmarks for choosing the server: x86-64 (AMD64) processor, Ubuntu 24.04 LTS, at least 2 GB of memory (4 GB recommended), at least 20 GB of disk (40 GB recommended).
  • Create an Ed25519 SSH key with ssh-keygen -t ed25519; only the public key (.pub) is given to the provider.
  • Connect over SSH for the first time: compare the fingerprint shown by ssh with the one in the server console before answering yes.
  • Update Ubuntu, create the libris account, copy the public key, and enable UFW while allowing only OpenSSH.
  • In a second window, sign in with the libris account and check sudo whoami (answer: root); the first session stays open.
  • Install Docker Engine and Compose from Docker’s official repository, then verify: sudo docker compose version (v2 or later) and sudo docker run hello-world.
  • The tutorial stops before installing Libris Translate: follow the guide to continue.

What to know

This page prepares the server; it does not install Libris yet. These commands were replayed on fresh Ubuntu 24.04 LTS test servers on 5 and 6 October 2026, starting with root. They were not tested on a physical Mac or Windows PC. On Windows, display the public key with type $env:USERPROFILE\.ssh\id_ed25519.pub. The key file without .pub stays private and must never be shared. If Windows cannot find ssh, install OpenSSH Client in Optional features. Keep passwords and the passphrase in a password manager. If the server requires a restart, restart it from the hosting control panel, then reconnect.

Choosing a provider, costs and troubleshooting: the full guide

Next step: install Libris Translate

Fictional example

To prepare its fiction catalogue, Lighthouse Press gives this page to its technician. She prepares a server with 4 GB of memory and a 40 GB disk, then follows the Libris installation guide.

Continue

Return to the first-book walkthrough