I wanted to test installation of https://github.com/danielquinn/paperless, but the instructions are “somewhat” unclear.
Here I am trying to document the process, so it might be usefull for someone later on.
First, having a requirements.txt is all great and dandy, but saying I need GNU Privacy Guard does not translate to which package, and a link to GPG’s homepage isnt very helpful.
Also, “apt-cache search gpg | wc -l” returns 72 packages.
Alright, enough said – lets do this. 🙂
Start slow, apt-get all the requirements (hope I got them all….) :
# apt-get install –no-install-recommends git libtiff-tools python3-pip python3-dev libtiff5-dev libjpeg62-turbo-dev zlib1g-dev libfreetype6-dev liblcms2-dev libwebp-dev tcl8.5-dev tk8.5-dev python-tk unpaper imagemagick tesseract-ocr tesseract-ocr-YOURLANGUAGE
Please note the YOURLANGUAGE there, to find your language do this:
$ apt-cache search tesseract-ocr-| sort
# git clone https://github.com/danielquinn/paperless /usr/src/paperless/
# cd /usr/src/paperless/
Copy the example-config, then edit it.
# cp /usr/src/paperless/paperless.conf.example /etc/paperless.conf
You have to change some stuff in the config-file, so do:
# editor /etc/paperless.conf
PAPERLESS_PASSPHRASE, just set and forget – this should never ever be changed.
PAPERLESS_CONSUMPTION_DIR, somewhere your service user have access, I just used a subfolder in $HOME.
# pip3 install –requirement /usr/src/paperless/requirements.txt
(and poff, there goes management via apt. The packages dont exist with the correct versions in Jessie repos anyway, so well… This wouldnt have been pretty anyway.)
After that, do the following:
# /usr/src/paperless/src/manage.py migrate
# /usr/src/paperless/src/manage.py createsuperuser
Finally you run the software by starting the webserver, and the consumer.
First the webserver:
# /usr/src/paperless/src/manage.py runserver 0.0.0.0:8000 &
(Obviously, remember to open tcp/8000)
And the consumer:
# /usr/src/paperless/src/manage.py document_consumer
Then put pdf-files into the consumer-dir and watch some kind of magic happen.
To be honest, I wasn’t that impressed so I ditched the software at this point.
Therefore I doubt this guide will be updated in the future.