Difference between revisions of "Set up a local Calibre library"

From Parallel Library Services
Jump to navigation Jump to search
(Created page with "== install calibre == works better on debian buster, than debian bullseye get buster <syntaxhighlight lang="bash" line> sudo apt update sudo apt install calibre </syntaxhig...")
 
 
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
== install calibre ==
== Install Calibre ==


works better on debian buster, than debian bullseye
At the time of writing (March 2022), this works better on Raspbian Buster, than the latest release Bullseye, which is still in testing mode. Make sure you choose Buster for stable results.


get buster
After flashing an SD card with your Raspbian Buster OS, we should update and then install Calibre.


<syntaxhighlight lang="bash" line>
<syntaxhighlight lang="bash" line>
Line 12: Line 12:
== create library and add a book ==
== create library and add a book ==


The location of the directory will be in my home folder:
The location of the directory will be in my home folder, which is /home/simoon. Make a directory in your home folder, and then enter it:


<syntaxhighlight lang="bash" line>
mkdir calibre-library
cd calibre-library
</syntaxhighlight>
We can use wget to download a book from [[Project Gutenberg]];
<syntaxhighlight lang="bash">
<syntaxhighlight lang="bash">
mkdir calibre-library
wget http://www.gutenberg.org/ebooks/46.kindle.noimages -O christmascarol.mobi
</syntaxhighlight>
</syntaxhighlight>


Next, we're going to use calibre-server to start the service.
Then, we use calibredb to add the book to our library


<syntaxhighlight lang="bash">
<syntaxhighlight lang="bash">
calibre-server calibre-library
calibredb add *.mobi --with-library calibre-library/
</syntaxhighlight>
</syntaxhighlight>
You should get a message saying "1 book added".
Next, we're going to use calibre-server to start the service.


<syntaxhighlight lang="bash">
<syntaxhighlight lang="bash">
wget http://www.gutenberg.org/ebooks/46.kindle.noimages -O christmascarol.mobi
calibre-server calibre-library
</syntaxhighlight>
</syntaxhighlight>



Latest revision as of 16:37, 4 April 2022

Install Calibre

At the time of writing (March 2022), this works better on Raspbian Buster, than the latest release Bullseye, which is still in testing mode. Make sure you choose Buster for stable results.

After flashing an SD card with your Raspbian Buster OS, we should update and then install Calibre.

sudo apt update
sudo apt install calibre

create library and add a book

The location of the directory will be in my home folder, which is /home/simoon. Make a directory in your home folder, and then enter it:

mkdir calibre-library
cd calibre-library

We can use wget to download a book from Project Gutenberg;

wget http://www.gutenberg.org/ebooks/46.kindle.noimages -O christmascarol.mobi

Then, we use calibredb to add the book to our library

calibredb add *.mobi --with-library calibre-library/

You should get a message saying "1 book added".

Next, we're going to use calibre-server to start the service.

calibre-server calibre-library

make directory for library

make service file