锦方的个人网页

部署calibre-web

发布 · 约 63 字 · 预计 1 分钟

安装 Calibre 和 calibre-web,搭建可以用浏览器访问的电子书库。

归档记录:本文最后更新于 2018 年,文中涉及的软件版本、配置或命令可能已随环境演进发生变化。

本文目录(共 2 节)

安装calibre #

sudo -v && wget -nv -O- https://raw.githubusercontent.com/kovidgoyal/calibre/master/setup/linux-installer.py | sudo python -c "import sys; main=lambda:sys.stderr.write('Download failed\n'); exec(sys.stdin.read()); main()"

sudo apt-get install xvfb imagemagick

mkdir ~/calibre-library

calibre-server  ~/calibre-library
可以通过设置脚本来开机启动

遇到的错误 1、语言,Google搜索一下可以解决这个问题,记得重启。

WARNING: Failed to set default libc locale, using en_US.UTF-8

perl: warning: Falling back to the standard locale ("C").

2、还有这个可以忽略的问题

____________________ WARNING ____________________
Setting up desktop integration failed with error:
__________________________________________________


	Traceback (most recent call last):
	  File "site-packages/calibre/linux.py", line 861, in setup_desktop_integration
	  File "subprocess.py", line 541, in check_call
	CalledProcessError: Command 'xdg-desktop-menu install --noupdate ./calibre-gui.desktop' returned non-zero exit status 3

Creating un-installer: /usr/bin/calibre-uninstall


There were 1 warnings

* Setting up desktop integration failed with error:

Run "calibre" to start calibre 

安装calibre-web #

git clone https://github.com/janeczku/calibre-web/
cd calibre-web
pip install --target vendor -r requirements.txt
python cps.py

参考: https://manual.calibre-ebook.com/server.html#creating-a-service-for-the-calibre-server-on-a-modern-linux-system https://grantwinney.com/calibre-is-awesome-calibre-server-is-not/[存档] https://www.digitalocean.com/community/tutorials/how-to-create-a-calibre-ebook-server-on-ubuntu-14-04

✉ 对本文有补充或勘误?欢迎就本文写信交流。