

- #Calibre download metadata and update command line install#
- #Calibre download metadata and update command line code#
If you would like to delete the folder: $ cd ~ The tar.gz file includes KindleGen Legal Notices and documentation.

$ sudo mv kindlegen /home/calibre/calibre-web/vendor/ $ sudo tar vxfz kindlegen_linux_2.6_i386_v2_9.tar.gz Then untar the file and move it to the vendor directory inside calibre-web: $ cd kindle tar.gz (v2.9 as of this writing) file to the new kindle directory you just created. Optionally, to enable on-the-fly conversion from one ebook format to another when using the send-to-kindle feature, or during editing of ebooks metadata:ĭownload Amazon's KindleGen tool for your platform and place the binary named kindlegen in the vendor folder: The default admin login is: Username: admin In this case, /home/calibre/calibre-library. NOTE: Do not change the port number to 80 if you want to access Calibre-Web without the port number – Instead, setup a reverse proxy – See comments below. You can change the port number later in the GUI if you want. In your browser, go to or or for the OPDS catalog). Or preferrably, if you want to exit the terminal window (which you will want to do) (for python2.7 run nohup python cps.py): $ nohup python3 cps.pyįOR ANY ERRORS WHEN RUNNING THESE COMMANDS, SEE: While still in the calibre-web directory, using python3+ run (for python2.7 run python cps.py): $ python3 cps.py
#Calibre download metadata and update command line install#
Install Calibre-Web: $ sudo pip3 install -target vendor -r requirements.txt Download the lastest Calibre-Web:ĭownload, unzip and rename the calibre-web directory: $ cd ~ To verify the change: $ python -version 11. Then, back at your command line type: $ source ~/.bashrc Type alias python=python3 on to a new line at the top of the file then save the file with ctrl+o and close the file with ctrl+x. Update pip if necessary like this: $ sudo -H pip install -upgrade pip If it outputs Python 2.7.x.x then we need to change the default to python3. Check your python version: $ python -version Make sure that we have a python version greather than python2.7 installed. Make sure you are logged in as the user calibre. Install Calibre-Web (Optional but recommended)Ĭalibre-Web is a web app providing a clean interface for browsing, reading and downloading eBooks using an existing Calibre database. You can uninstall Calibre by running: $ sudo calibre-uninstall 10. To stop calibre-server: $ sudo systemctl stop rvice If you have make any changes to rvice, reload: $ sudo systemctl daemon-reload Then to start at boot: $ sudo systemctl enable rvice More Then start the server with: $ sudo systemctl start rviceĬheck the status with: $ sudo systemctl status rvice userdb="/home/calibre/.config/calibre/server-users.sqlite"\
#Calibre download metadata and update command line code#
Starting Calibre server at boot $ sudo nano /etc/systemd/system/rviceĪdd the code below changing User, Group, port and the location to the calibre-library directory (in this case /home/calibre/calibre-library): Add / Manage Calibre Users $ sudo calibre-server -userdb /home/calibre/.config/calibre/server-users.sqlite -manage-users $ sudo chown -R calibre:calibre ~/calibre.log 8.

Add a log fileĪdd a log file and change its ownership permissions: $ sudo touch ~/calibre.log When you are satisfied everything works, go back to the command line and Ctrl+C to exit. or if using a local LAN, (replace ‘XX' with the coorect IP Address) To test the server, launch with the following command (you can substitute the port 8081 with something else): $ sudo calibre-server -port=8081 -enable-local-write ~/calibre-library Then add the e-book to the library: $ sudo xvfb-run calibredb add ~/calibre-upload/* -library-path ~/calibre-library 6. $ sudo chown -R calibre:calibre calibre-uploadĭownload a sample e-book to load into the upload directory: $ cd calibre-upload $ sudo mkdir calibre-libraryĬhange ownership permissions of the directories: $ sudo chown -R calibre:calibre calibre-library Then make a directory for the Calibre library and uploads. Log out and log back in with the new user you just added. Create a new Calibre userĬreate a new user for Calibre and give it superuser privileges: $ sudo adduser calibre You may notice some warnings about failed desktop integration, but these are safe to ignore, since you are installing Calibre on a remote server. Download and install Calibre-server $ sudo -v & wget -nv -O- | sudo sh /dev/stdin $ sudo apt install python python3 $ sudo apt install xvfb Install Python and dependencies $ sudo apt update Editing books is supported for EPUB and AZW3 formats. Calibre supports organizing existing e-books into virtual libraries, displaying, editing, creating and converting e-books, as well as syncing e-books with a variety of e-readers. Calibre is a free, open source and easy to use e-book manager.
