From 210ee55fe7bd4daef976e8bbcb9dc75a0302d2c5 Mon Sep 17 00:00:00 2001 From: Luke Smith Date: Tue, 3 Aug 2021 13:49:51 -0400 Subject: calibre fixes --- calibre.html | 38 +++++++++------------ pix/calibre.png | Bin 0 -> 17440 bytes rss.xml | 103 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 119 insertions(+), 22 deletions(-) create mode 100644 pix/calibre.png diff --git a/calibre.html b/calibre.html index 0e88410..8f56e86 100644 --- a/calibre.html +++ b/calibre.html @@ -12,20 +12,22 @@

Setting up a Calibre library server

+ Calibre logo

The Calibre library server is a great way to store your eBooks. It allows you to: +

+

Installation

-

- Install the Calibre package. -

+

Install the Calibre package. + You might also want rsync to upload books.

-
apt update && apt install calibre
+        
apt install -y calibre rsync
 mkdir /opt/calibre

@@ -37,14 +39,14 @@ mkdir /opt/calibre

cd ~/Documents
-rsync -avuP your_library root@example.org:/opt/calibre/
+rsync -avuP your-library-dir root@example.org:/opt/calibre/

Or create a library and add a book to it:

cd /opt/calibre
-calibredb add book.epub --with-library your_library
+calibredb add book.epub --with-library your-library
diff --git a/pix/calibre.png b/pix/calibre.png new file mode 100644 index 0000000..81adc85 Binary files /dev/null and b/pix/calibre.png differ diff --git a/rss.xml b/rss.xml index 8bc8f53..430d60b 100644 --- a/rss.xml +++ b/rss.xml @@ -15,6 +15,109 @@ + +Setting up a Calibre library server +https://landchad.net/calibre.html +https://landchad.net/calibre.html +Tue, 03 Aug 2021 13:49:21 -0400 +

Setting up a Calibre library server

+ +
+ Calibre logo +

+ The Calibre library server is a great way to store your eBooks. + It allows you to: +

+
    +
  • Share your books with others.
  • +
  • Easily transfer your books between devices and access them from anywhere.
  • +
+

Installation

+

Install the Calibre package. + You might also want rsync to upload books.

+
apt install -y calibre rsync
+mkdir /opt/calibre
+

+ Either upload your existing library using rsync. For example to /opt/calibre/. +

+

+ On client: +

+
cd ~/Documents
+rsync -avuP your-library-dir root@example.org:/opt/calibre/
+

+ Or create a library and add a book to it: +

+
cd /opt/calibre
+calibredb add book.epub --with-library your-library
+ +

+ Add a new user to protect your server: +

+
calibre-server --manage-users
+

Creating a service

+

+ Create a new file /etc/systemd/system/calibre-server.service and add the following: +

+
[Unit]
+Description=Calibre library server
+After=network.target
+[Service]
+Type=simple
+User=root
+Group=root
+ExecStart=/usr/bin/calibre-server --enable-auth --enable-local-write /opt/calibre/your_library --listen-on 127.0.0.1
+[Install]
+WantedBy=multi-user.target
+
+ +

+ Issue systemctl daemon-reload to apply the changes. +

+

+ Enable and start the service. +

+
systemctl enable calibre-server
+systemctl start calibre-server
+

A reverse proxy with Nginx

+

+ Create a new file /etc/nginx/sites-available/calibre and enter the following: +

+
server {
+    listen 80;
+    client_max_body_size 64M; # to upload large books
+    server_name calibre.example.org ;
+    location / {
+        proxy_pass http://127.0.0.1:8080;
+    }
+}
+

Issue a Let's Encrypt certificate. Detailed instructions and additional information.

+
certbot --nginx
+

Now just go to calibre.example.org. The server will request an username and a password.

+ + calibre + +

After login you will see something like this.

+ + calibre + +

Contribution

+
  • Author: rflx – website -- XMR: 48T5XpHTXAZ5Nn8YCypA4aWn1ffQLHJkFGDArXQB6cmrP6cqLY72cu7CR2iq2MmL5Ndu3d47e5MKjGpL4prYgdrTCFAHD9c +
  • +
    +]]>
    +
    + + Jitsi Video Chat https://landchad.net/jitsi.html -- cgit v1.2.3