
User authentication for calibre-server by using the -enable-auth User accounts on the server and use the -username and -password If you want to enable access over the internet, then you should setup Preferences → Sharing over the net → Advanced. The server from the main calibre program, this option is in The local computer to make changes to your calibre data. You can simply use the -enable-local-write option of theĬontent server, to allow any program, including calibredb, running on
Fix the ownership now that new files are copied in.If you plan to connect only to a server running on the same computer,. Tar xfz /tmp/ -C "usr/local/share/calibre-web/calibre-library
Untar the archive into the new directory. Mkdir /usr/local/share/calibre-web/calibre-library Scp Create the calibre library directory. Transfer the archive from your computer to the server. On your desktop in the home directory run the following to create the archive. Basically what we need to do is tar the whole Calibre Library folder and then extract it in the /usr/local/share/calibre-web directory on the server. It wants you to copy an existing Calibre database (metadata.db), here is a few pointers to help with that.īy default your Calibre Library is made in your home directory unless you specified elsewhere during the first launch setup for Calibre. Enable calibre-web to start at boot, and start it now so you can continue with setup then begin using it.Īt this point installation is done and you can now access it, however there is a rather important configuration step left before you can actually use it. Make the rc file able to execute by adding the execute bit. # $OpenBSD: calibre,v 1.0 3 18:49:00 rpe Exp $ĭaemon="/usr/local/bin/python3 /usr/local/share/calibre-web/cps.py" We need an rc file to start calibre-web, create /etc/rc.d/calibre-web with vi or install nano and use that. Now that everything is installed, lets change the ownership of these files.Ĭhown -R _calibre-web:_calibre-web /usr/local/share/calibre-web. Useradd -s /sbin/nologin -d /nonexistent -L daemon -u 447 _calibre-web For security purposes instead of using the nobody user or the www user, lets make a separate user that is designated for only running Calibre-web and only able to access its own files. Pip install -target vendor -r requirements.txt Change directory into the new calibre-web directory. Clone the calibre-web repo into /usr/local/share/, this will create a directory named calibre-web in that directory. Ln -sf /usr/local/bin/pip3.7 /usr/local/bin/pip Create a link so you do not need to remember to type pip3 instead of pip. It perhaps may not be the most secure project around, but why not host all the things on OpenBSD anyway? Calibre-web is a simple Python project and uses a self contained web server even.
I go over how to setup a Calibre-web server on OpenBSD.