.. calibre_server: Calibre Server ============== 1. Installation --------------- See `install calibre ubuntu `__ of how to install Calibre on Debian. Install Calibre: .. code:: sudo apt-get install calibre Start Calibre server with 2 Libraries .. code:: calibre-server \ --enable-auth --port 8081 --timeout 120 \ --userdb /usr/local/logistics/google-drive/Computer/Books/Calibre/UserDB/users.sqlite \ /usr/local/logistics/google-drive/Computer/Books/Calibre/Aktuell \ /usr/local/logistics/google-drive/Computer/Books/Calibre/Archiv The user database is located in ``/usr/local/logistics/google-drive/Computer/Books/Calibre/UserDB``. Manage the user access: .. code:: calibre-server --manage-users --userdb \ /usr/local/logistics/google-drive/Computer/Books/Calibre/UserDB/users.sqlite | 2. System Service ----------------- Create a service in the directory ``/etc/systemd/system`` with the command: .. code:: sudo nano /etc/systemd/system/calibre-server.service Content: .. code:: [Unit] Description=Calibre Content Server After=multi-user.target [Service] Type=simple ExecStart=/usr/bin/calibre-server --enable-auth \ --userdb /usr/local/logistics/google-drive/Computer/Books/Calibre/UserDB/users.sqlite \ --port 8081 --timeout 120 \ /usr/local/logistics/google-drive/Computer/Books/Calibre/Aktuell \ /usr/local/logistics/google-drive/Computer/Books/Calibre/Archiv [Install] WantedBy=multi-user.target | 3. Start and Stop of the Service -------------------------------- Reload Systemd to read the new service unit file: .. code:: sudo systemctl daemon-reload Enable the service to start at boot: .. code:: sudo systemctl enable calibre-server Start of the Server .. code:: sudo systemctl start calibre-server Stop of the Server .. code:: sudo systemctl stop calibre-server Status of the Server .. code:: sudo systemctl status calibre-server