start:software:calibre
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
start:software:calibre [2024/09/21 14:09] – marlonivo | start: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. | ||
- | |||
- | < | ||
- | apt install -y calibre rsync | ||
- | mkdir / | ||
- | </ | ||
- | |||
- | Upload your local <color # | ||
- | |||
- | < | ||
- | rsync -avuP --delete-after ~/<color # | ||
- | </ | ||
- | |||
- | |||
- | Then add a new user to protect your server: | ||
- | < | ||
- | calibre-server adduser name | ||
- | </ | ||
- | |||
- | ==== Creating a service ===== | ||
- | |||
- | Create a new file / | ||
- | |||
- | < | ||
- | [Unit] | ||
- | Description=Calibre library server | ||
- | After=network.target | ||
- | |||
- | [Service] | ||
- | Type=simple | ||
- | User=root | ||
- | Group=root | ||
- | ExecStart=/ | ||
- | |||
- | [Install] | ||
- | WantedBy=multi-user.target | ||
- | </ | ||
- | |||
- | to apply the change: | ||
- | < | ||
- | systemctl daemon-reload | ||
- | </ | ||
- | |||
- | Enable and start the service. | ||
- | < | ||
- | systemctl enable calibre-server | ||
- | systemctl start calibre-server | ||
- | </ | ||
- | |||
- | ==== Creating the Server with Nginx ==== | ||
- | |||
- | Create a new file / | ||
- | |||
- | < | ||
- | server { | ||
- | listen 80; | ||
- | client_max_body_size 64M; # to upload large books | ||
- | server_name <color # | ||
- | |||
- | location / { | ||
- | proxy_pass http:// | ||
- | } | ||
- | } | ||
- | </ | ||
- | |||
- | Then symlink to sites-enabled: | ||
- | < | ||
- | ln -s / | ||
- | </ | ||
- | |||
- | Then issue a Let's Encrypt certificate. | ||
- | |||
- | < | ||
- | certbot --nginx | ||
- | </ | ||
- | |||
- | Now add the DNS Records to point the calibre-sever to your name-server. | ||
- | |||
- | | **Type** | ||
- | | CNAME | <color # | ||
- | |||
- | ------ | ||
- | |||
- | Now just go to <color # | ||
- | |||