# 部署calibre-web URL: https://chengjinfang.com/posts/2018/install-calibre-web/ Author: 程锦方 Date: 2018-11-17 Tags: #note #install #bug Summary: 安装 Calibre 和 calibre-web,搭建可以用浏览器访问的电子书库。 ------------------------------------------------------------------------ ## 安装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 ------------------------------------------------------------------------ Site: https://chengjinfang.com/ · All Index: https://chengjinfang.com/all/ · RSS: https://chengjinfang.com/rss.xml