Calibre Server¶
1. Installation¶
See install calibre ubuntu of how to install Calibre on Debian.
Install Calibre:
sudo apt-get install calibre
Start Calibre server with 2 Libraries
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:
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:
sudo nano /etc/systemd/system/calibre-server.service
Content:
[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:
sudo systemctl daemon-reload
Enable the service to start at boot:
sudo systemctl enable calibre-server
Start of the Server
sudo systemctl start calibre-server
Stop of the Server
sudo systemctl stop calibre-server
Status of the Server
sudo systemctl status calibre-server