diff --git a/calibre.html b/calibre.html new file mode 100644 index 0000000..0e88410 --- /dev/null +++ b/calibre.html @@ -0,0 +1,143 @@ + + + + Setting up a Calibre library server – LandChad.net + + + + + + + +

Setting up a Calibre library server

+ +
+

+ 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. +

    + +
    apt update && apt install calibre
    +mkdir /opt/calibre
    + +

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

    + +

    + On client: +

    + +
    cd ~/Documents
    +rsync -avuP your_library 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 + + +
    + +

    + Author: rflx -- website -- XMR: 48T5XpHTXAZ5Nn8YCypA4aWn1ffQLHJkFGDArXQB6cmrP6cqLY72cu7CR2iq2MmL5Ndu3d47e5MKjGpL4prYgdrTCFAHD9c +

    +
    + + + diff --git a/index.html b/index.html index ca92980..42beeff 100644 --- a/index.html +++ b/index.html @@ -70,6 +70,7 @@
  • Setting up Gitea
  • Creating your own chat server with IRC
  • RSS Bridge: Create RSS Feeds for Mainstream Social Media
  • +
  • Setting up a Calibre library server
  • Accepting Cryptocurrency Tips

    @@ -113,9 +114,16 @@
  • BTCPay
  • Email webclients
  • Simple static site generators
  • +<<<<<<< HEAD
  • Calibre (library server)
  • XMPP ejabberd
  • Movim for XMPP
  • +======= +
  • Nitter
  • +
  • PeerTube (like YouTube)
  • +
  • XMPP ejabberd
  • +
  • Movim for XMPP
  • +>>>>>>> 4aa7add2b1eaaa4561d5aa43df37bcb991bd73c8 diff --git a/pix/calibre/calibre-1.png b/pix/calibre/calibre-1.png new file mode 100644 index 0000000..cf767e0 Binary files /dev/null and b/pix/calibre/calibre-1.png differ diff --git a/pix/calibre/calibre-2.png b/pix/calibre/calibre-2.png new file mode 100644 index 0000000..e0c76ba Binary files /dev/null and b/pix/calibre/calibre-2.png differ