User Tools


start:software:calibre

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
start:software:calibre [2024/09/21 14:09] marlonivostart:software:calibre [Unknown date] (current) – removed - external edit (Unknown date) 127.0.0.1
Line 1: Line 1:
-====== Calibre ====== 
- 
-The Calibre library server 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. 
- 
-<code> 
-apt install -y calibre rsync 
-mkdir /opt/calibre 
-</code> 
- 
-Upload your local <color #ff7f27>library</color> (using rsync) to /opt/calibre/ and save the command somewhere. 
- 
-<code> 
-rsync -avuP --delete-after ~/<color #ff7f27>library</color> root@example.org:/opt/calibre/ 
-</code> 
- 
- 
-Then add a new user to protect your server: 
-<code> 
-calibre-server adduser name 
-</code> 
- 
-==== Creating a service ===== 
- 
-Create a new file /etc/systemd/system/calibre-server.service and add the following: 
- 
-<code> 
-[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/<color #ff7f27>library</color> --listen-on 127.0.0.1 
- 
-[Install] 
-WantedBy=multi-user.target 
-</code> 
- 
-to apply the change: 
-<code> 
-systemctl daemon-reload  
-</code> 
- 
-Enable and start the service. 
-<code> 
-systemctl enable calibre-server 
-systemctl start calibre-server 
-</code> 
- 
-==== Creating the Server with Nginx ==== 
- 
-Create a new file /etc/nginx/sites-available/<color #ff7f27>library</color> and enter the following: 
- 
-<code> 
-server { 
-    listen 80; 
-    client_max_body_size 64M; # to upload large books 
-    server_name <color #ff7f27>library</color>.example.org ; 
- 
-    location / { 
-        proxy_pass http://127.0.0.1:8080; 
-    } 
-} 
-</code> 
- 
-Then symlink to sites-enabled: 
-<code> 
-ln -s /etc/nginx/sites-available/<color #ff7f27>library</color> /etc/nginx/sites-enabled 
-</code> 
- 
-Then issue a Let's Encrypt certificate. 
- 
-<code> 
-certbot --nginx 
-</code> 
- 
-Now add the DNS Records to point the calibre-sever to your name-server. 
- 
-| **Type**       | **Name** | **Points to**        | **TTL** | 
-| CNAME   | <color #ff7f27>library</color>  | example.xyz | 1m  | 
- 
------- 
- 
-Now just go to <color #ff7f27>library</color>.example.org, the server will request the username and password you've set above, then you are FINISHED! 
-