|
|
<!DOCTYPE html>
|
|
|
<!DOCTYPE html>
|
|
|
<html>
|
|
|
<head>
|
|
|
<meta charset="utf-8">
|
|
|
<title>Tasks of the Contingent Librarian</title>
|
|
|
<link rel="stylesheet" type="text/css" href="tasks.css">
|
|
|
<script src="tasks.js"></script>
|
|
|
</head>
|
|
|
<body>
|
|
|
|
|
|
<div class="cardback"><DOCUMENT_FRAGMENT><div class="mw-parser-output"><div class="thumb tright"><div class="thumbinner" style="width:152px;"><a class="image" href="https://pzwiki.wdka.nl/mw-mediadesign/images/thumb/e/ef/Hansen_Writing_Ball.jpeg/640px-Hansen_Writing_Ball.jpeg"><img alt="" class="thumbimage" decoding="async" src="https://pzwiki.wdka.nl/mw-mediadesign/images/thumb/e/ef/Hansen_Writing_Ball.jpeg/320px-Hansen_Writing_Ball.jpeg"></a> <div class="thumbcaption"><div class="magnify"><a class="internal" href="File:Hansen_Writing_Ball.jpeg.html" title="Enlarge"></a></div>The first commercially-produced typewriter, the Hansen Writing Ball</div></div></div>
|
|
|
<h2><span class="mw-headline" id="Setting_up_a_calibre-web_content_server_on_an_RPi">Setting up a calibre-web content server on an RPi</span><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/mw-mediadesign/index.php?title=User:Simon/bootleglibrary/tools&action=edit&section=T-1" title="Edit section: ">edit</a><span class="mw-editsection-bracket">]</span></span></h2>
|
|
|
<pre>From a pad session:
|
|
|
|
|
|
bootleg library: http://145.24.131.15:20190/
|
|
|
Username: guest
|
|
|
Password: thelibraryisopen
|
|
|
|
|
|
|
|
|
Setting up a headless Calibre server
|
|
|
http://linuxphilia.blogspot.com/2012/06/my-wife-and-i-like-to-read-books-on-go.html
|
|
|
|
|
|
Turning raspbeery pi to ebook server:
|
|
|
https://opensource.com/article/17/6/raspberrypi-ebook-server
|
|
|
|
|
|
ctl + z to suspend a session in terminal, fg to rejoin
|
|
|
|
|
|
usbmount: automatically mounts USB mass storage devices (typically USB pens) when they are plugged in, and unmounts them when they are removed.
|
|
|
but it didn't work ;(
|
|
|
|
|
|
https://www.raspberrypi-spy.co.uk/2014/05/how-to-mount-a-usb-flash-disk-on-the-raspberry-pi/
|
|
|
|
|
|
init.d and service files
|
|
|
generating a /etc/init.d/calibre file, and paste bash script from line 6 to file.
|
|
|
|
|
|
what is init.d?
|
|
|
read on:
|
|
|
|
|
|
https://bash.cyberciti.biz/guide//etc/init.d
|
|
|
|
|
|
https://www.ghacks.net/2009/04/04/get-to-know-linux-the-etcinitd-directory/
|
|
|
|
|
|
https://askubuntu.com/questions/5039/what-is-the-difference-between-etc-init-and-etc-init-d
|
|
|
|
|
|
https://unix.stackexchange.com/questions/20357/how-can-i-make-a-script-in-etc-init-d-start-at-boot
|
|
|
|
|
|
http://linux-tutorial.info/modules.php?name=ManPage&sec=7&manpage=init.d
|
|
|
|
|
|
|
|
|
what is daemon?
|
|
|
|
|
|
http://man7.org/linux/man-pages/man3/daemon.3.html
|
|
|
|
|
|
|
|
|
https://askubuntu.com/questions/666423/run-script-at-startup-in-etc-init-d#666480
|
|
|
|
|
|
sudo chmod +x /etc/init.d/calibre
|
|
|
|
|
|
sudo update-rc.d calibre defaults
|
|
|
|
|
|
|
|
|
other than init.d there is systemd, which is supposed to be faster
|
|
|
|
|
|
sudo nano /etc/systemd/system/calibre.service
|
|
|
|
|
|
[Unit]
|
|
|
Description=Calibre.
|
|
|
After=syslog.target network.target
|
|
|
|
|
|
[Service]
|
|
|
Type=simple
|
|
|
User=pi
|
|
|
Group=pi
|
|
|
WorkingDirectory=/home/pi
|
|
|
ExecStart=/usr/bin/nodejs /opt/etherpad/node_modules/ep_etherpad-lite/node/server.js
|
|
|
Restart=always
|
|
|
|
|
|
[Install]
|
|
|
WantedBy=multi-user.target
|
|
|
|
|
|
sudo service ~insert program
|
|
|
|
|
|
installed calibre web!
|
|
|
|
|
|
also check out
|
|
|
|
|
|
http://internet-in-a-box.org/
|
|
|
|
|
|
https://github.com/janeczku/calibre-web
|
|
|
</pre>
|
|
|
<!--
|
|
|
NewPP limit report
|
|
|
Cached time: 20200617092255
|
|
|
Cache expiry: 86400
|
|
|
Dynamic content: false
|
|
|
CPU time usage: 0.026 seconds
|
|
|
Real time usage: 0.052 seconds
|
|
|
Preprocessor visited node count: 7/1000000
|
|
|
Preprocessor generated node count: 26/1000000
|
|
|
Post‐expand include size: 137/2097152 bytes
|
|
|
Template argument size: 0/2097152 bytes
|
|
|
Highest expansion depth: 2/40
|
|
|
Expensive parser function count: 0/100
|
|
|
Unstrip recursion depth: 0/20
|
|
|
Unstrip post‐expand size: 1971/5000000 bytes
|
|
|
-->
|
|
|
<!--
|
|
|
Transclusion expansion time report (%,ms,calls,template)
|
|
|
100.00% 2.430 1 User:Simon/bootleglibrary/tools
|
|
|
100.00% 2.430 1 -total
|
|
|
-->
|
|
|
|
|
|
<!-- Saved in parser cache with key wdka_mw_mediadesign-mw_:pcache:idhash:31786-0!canonical and timestamp 20200617092255 and revision id 174247
|
|
|
-->
|
|
|
</div></DOCUMENT_FRAGMENT></div>
|
|
|
|
|
|
</body>
|
|
|
</html>
|