<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>How To Install Calibre Ebook Server On Ubuntu 20.04 Archives - Linux Windows and android Tutorials</title>
	<atom:link href="https://www.osradar.com/tag/how-to-install-calibre-ebook-server-on-ubuntu-20-04/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.osradar.com</link>
	<description>tutorials and news and Seurity</description>
	<lastBuildDate>Mon, 14 Dec 2020 21:43:42 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=5.8.12</generator>
	<item>
		<title>How To Install Calibre Ebook Server On Ubuntu 20.04</title>
		<link>https://www.osradar.com/how-to-install-calibre-ebook-server-on-ubuntu-20-04/</link>
					<comments>https://www.osradar.com/how-to-install-calibre-ebook-server-on-ubuntu-20-04/#respond</comments>
		
		<dc:creator><![CDATA[sabi]]></dc:creator>
		<pubDate>Sun, 20 Dec 2020 01:41:00 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Servers]]></category>
		<category><![CDATA[Tools]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[how to install]]></category>
		<category><![CDATA[How To Install Calibre Ebook Server On Ubuntu 20.04]]></category>
		<category><![CDATA[how to tutorials]]></category>
		<category><![CDATA[instlal calibre ubuntu 20.04]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=26170</guid>

					<description><![CDATA[<p>Today we are going to learn that how to install Calibre Ebook Server On Ubntu 20.04. Calibre is an open source ebook manager that helps you to manage your ebook library. With the help of Calibre you can access your ebook library from anywhere in the world &#38; you can also share them with your [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/how-to-install-calibre-ebook-server-on-ubuntu-20-04/">How To Install Calibre Ebook Server On Ubuntu 20.04</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p>Today we are going to learn that how to install Calibre Ebook Server On Ubntu 20.04. Calibre is an open source ebook manager that helps you to manage your ebook library. With the help of Calibre you can access your ebook library from anywhere in the world &amp; you can also share them with your favourite person family or friend. You&#8217;ve also the option to download them to the smartphone for later reading. So, here we&#8217;ll see the steps to install calibre ebook server on Ubuntu 20.04.</p>



<h2>Step 1: Update Your System</h2>



<p>First of all update your system to have the latest updates installed.</p>



<pre class="wp-block-preformatted">sudo apt update &amp;&amp; sudo apt upgrade -y</pre>



<h3>Step 2: Allow Firewall Access</h3>



<p>If you have not already installed firewall, type the below command to install it.</p>



<pre class="wp-block-preformatted">sudo apt install ufw</pre>



<p>Once, installed enable SSH port.</p>



<pre class="wp-block-preformatted">sudo ufw allow "OpenSSH"</pre>



<p>Then enable the firewall to start on boot.</p>



<p>Now, allow the port <strong>8080</strong> that is being used by the calibre server.</p>



<pre class="wp-block-preformatted">sudo ufw allow 8080</pre>



<p>Verify the firewall status by typing</p>



<pre class="wp-block-preformatted">sudo ufw status
Status: active
To Action From
-- ------ ----
OpenSSH ALLOW Anywhere
8080 ALLOW Anywhere
OpenSSH (v6) ALLOW Anywhere (v6)
8080 (v6) ALLOW Anywhere (v6)</pre>



<h3>Step 3: Download &amp; Install Calibre Server</h3>



<p>Calibre is available on Ubuntu 20.04 but here we&#8217;ll use their official site to download the latest version of it instead of downloading it from Ubuntu repository.</p>



<p>Run the below command to install the required dependencies.</p>



<pre class="wp-block-preformatted">sudo apt install libfontconfig libgl1-mesa-glx</pre>



<p>And then type the below command to get the calibre server installer.</p>



<pre class="wp-block-preformatted">wget https://download.calibre-ebook.com/linux-installer.sh</pre>



<p>Now, make the script exceutable</p>



<pre class="wp-block-preformatted">chmod +x ./linux-installer.sh</pre>



<p>And finally hit the below command to install the Calibre.</p>



<div class="wp-block-columns">
<div class="wp-block-column" style="flex-basis:100%">
<div class="wp-block-columns">
<div class="wp-block-column" style="flex-basis:100%">
<pre class="wp-block-preformatted">sudo ./linux-installer.sh</pre>



<p></p>
</div>
</div>
</div>
</div>



<p>If you face any warning ignore them because it will give you warning as you are using desktop Ubuntu version instead of Ubuntu server.</p>



<h3>Step 4: Create Your Ebook Library</h3>



<p>Here we&#8217;ll download a book to show you how it works. You can download many books from Project Gutenberg as they provide free public domain books. Hit the below command to download one book.</p>



<pre class="wp-block-preformatted">wget http://www.gutenberg.org/ebooks/209.kindle.noimages -O turnofthescrew.mobi</pre>



<p>Then create a new folder for you calibre library.</p>



<pre class="wp-block-preformatted">sudo mkdir calibre-library</pre>



<p>And, then add the pre-downloaded book into this folder.</p>



<pre class="wp-block-preformatted">calibredb add *.mobi --with-library calibre-library/</pre>



<p>That&#8217;s it your book was added.</p>



<h3>Step 5: Running the Calibre Server on Ubuntu 20.04</h3>



<p>Fire the following command in your terminal in order to run the calibre server on ubuntu 20.04.</p>



<pre class="wp-block-preformatted">calibre-server calibre-library</pre>



<p>The above command consists of two parts. <strong>calibre-server</strong> refers to start the server &amp; the <strong>calibre-library</strong> indicates the folder used by the server.</p>



<p>Output:</p>



<p>You&#8217;ll see the similar output.</p>



<pre class="wp-block-preformatted">calibre server listening on 0.0.0.0:8080
OPDS feeds advertised via BonJour at: your_server_ip port: 8080</pre>



<h3>Step 6: Access Calibre Server Via Web</h3>



<p>Now, open your favourite browser and type your IP along with calibre port like <strong>http://IP:8080</strong> to access the calibre on web page.</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="469" height="468" src="//1081754738.rsc.cdn77.org/wp-content/uploads/2020/12/image-19.png" alt="" class="wp-image-26430" srcset="https://www.osradar.com/wp-content/uploads/2020/12/image-19.png 469w, https://www.osradar.com/wp-content/uploads/2020/12/image-19-300x300.png 300w, https://www.osradar.com/wp-content/uploads/2020/12/image-19-150x150.png 150w" sizes="(max-width: 469px) 100vw, 469px" /></figure>



<p>Click on the shown folder &amp; you&#8217;ll see the downloaded book here. Similarly you can add many books here.</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="475" height="394" src="//1081754738.rsc.cdn77.org/wp-content/uploads/2020/12/image-20.png" alt="" class="wp-image-26432" srcset="https://www.osradar.com/wp-content/uploads/2020/12/image-20.png 475w, https://www.osradar.com/wp-content/uploads/2020/12/image-20-300x249.png 300w" sizes="(max-width: 475px) 100vw, 475px" /></figure>



<p>To stop the server simply press <strong>Ctrl+C</strong> in the terminal.</p>



<p>In order to change the default port of calibre type</p>



<pre class="wp-block-preformatted">calibre-server calibre-library --port 7530</pre>



<p>Make sure to allow this port through firewall.</p>



<h3>Step 7: Creating A Service For Calibre Server</h3>



<p>To start calibre server on every boot, simply add the service for calibre. Create a new file <strong>/etc/systemd/system/calibre-server.service</strong>.</p>



<pre class="wp-block-preformatted">sudo nano /etc/systemd/system/calibre-server.service</pre>



<p>Then paste the below content into the file.</p>



<pre class="wp-block-preformatted">### startup service
[Unit]
Description=calibre content server
After=network.target
[Service]
Type=simple
User=&lt;username&gt;
Group=&lt;username&gt;
ExecStart=/opt/calibre/calibre-server /home/&lt;username&gt;/calibre-library --enable-local-write
[Install]
WantedBy=multi-user.target
Note: Replace <strong>username</strong> with your system user.</pre>



<p>Finally save &amp; close the file.</p>



<p>To start calibre server, type</p>



<pre class="wp-block-preformatted">sudo systemctl start calibre-server</pre>



<p>To start on boot hit</p>



<pre class="wp-block-preformatted">sudo systemctl enable calibre-server</pre>



<h3>Step 8: Add User Authentication</h3>



<p>In order to add user authentication, stop calibre server.</p>



<pre class="wp-block-preformatted">sudo systemctl stop calibre-server</pre>



<p>And then start the script by typing</p>



<pre class="wp-block-preformatted">sudo calibre-server --userdb /home/&lt;username&gt;/.config/calibre/server-users.sqlite --manage-users</pre>



<pre class="wp-block-preformatted">1) Add a new user
2) Edit an existing user
3) Remove a user
4) Cancel
What do you want to do? [1-4]: 1
Enter the username: osradar
Enter the new password for osradar:
Re-enter the new password for osradar, to verify:
User osradar added successfully!</pre>



<p>Provide details as required to setup user authentication.</p>



<p>Then edit the service file.</p>



<pre class="wp-block-verse">sudo nano /etc/systemd/system/calibre-server.service</pre>



<p>Now, type &#8211;<strong>-enable-auth</strong> to the end of <strong>ExectStart</strong> line.</p>



<pre class="wp-block-preformatted">. . .
ExecStart=/opt/calibre/calibre-server "/home/&lt;username&gt;/calibre-library" --userdb "/home/&lt;username&gt;/.config/calibre/server-users.sqlite" --enable-local-write --enable-auth
. . .</pre>



<p>Save &amp; exit the file.</p>



<p>Then reload the daemon by</p>



<pre class="wp-block-preformatted">sudo systemctl daemon-reload<br>sudo systemctl start calibre-server</pre>



<p>User authentication enabled now you&#8217;ve to provide username and password while accessing on web page.</p>



<p>So, this is how you can install Calibre Ebook Server on Ubutnu 20.04</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/how-to-install-calibre-ebook-server-on-ubuntu-20-04/">How To Install Calibre Ebook Server On Ubuntu 20.04</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.osradar.com/how-to-install-calibre-ebook-server-on-ubuntu-20-04/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
