User Tools

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
en:install_paperless-ngx_on_debian_without_docker [2026-09-01 17:44] – iacchien:install_paperless-ngx_on_debian_without_docker [2026-09-02 10:45] (current) – iacchi
Line 70: Line 70:
 cd src cd src
 sudo -u paperless ../venv/bin/python3 manage.py migrate sudo -u paperless ../venv/bin/python3 manage.py migrate
 +</code>
 +
 +As a last installation step, something undocumented on paperless-ngx's documentation: to enable better document search (which I believe is active by default), we need to download some more python packages. First of all, enable this feature explicitly in ''paperless.conf'':
 +
 +<code>
 +PAPERLESS_ENABLE_NLTK=true
 +PAPERLESS_NLTK_DIR=/opt/paperless/nltk_data
 +</code>
 +
 +Then, download the required packages:
 +
 +<code bash>
 +cd /opt/paperless
 +sudo -u paperless venv/bin/python3 -m nltk.downloader  punkt_tab
 +sudo -u paperless venv/bin/python3 -m nltk.downloader  punkt
 +sudo -u paperless venv/bin/python3 -m nltk.downloader  stopwords
 </code> </code>
  
Line 252: Line 268:
 cd /opt cd /opt
 cp -R paperless paperless.bak cp -R paperless paperless.bak
-wget wget https://github.com/paperless-ngx/paperless-ngx/releases/download/vx.x.x/paperless-ngx-vx.x.x.tar.xz+wget https://github.com/paperless-ngx/paperless-ngx/releases/download/vx.x.x/paperless-ngx-vx.x.x.tar.xz
 tar xf paperless-ngx-vx.x.x.tar.xz tar xf paperless-ngx-vx.x.x.tar.xz
-chown -R paperless:paperless paperless.back paperless-ngx+chown -R paperless:paperless paperless.bak paperless-ngx
 </code> </code>
  
-At this point it's good to stop for a second and check that the systemd unit files in the ''scripts'' directory have not changed, so that we can keep the old ones, or modify them accordingly. Once done with the check, it's time for the update:+At this point it's good to stop for a second and check that the systemd unit files in the ''scripts'' directory have not changed, so that we can keep the old ones, or modify them accordingly. Once done with the check, it's time for the update. From the original installation we need to keep the ''.env'', ''paperless.conf'', ''scripts'', and ''venv'' files and folders, so we'll delete everything but those (and of course we'll remove just those from the directory of the new version):
  
 <code bash> <code bash>
Line 282: Line 298:
 <code bash> <code bash>
 systemctl start paperless-consumer paperless-scheduler paperless-task-queue paperless-webserver systemctl start paperless-consumer paperless-scheduler paperless-task-queue paperless-webserver
 +</code>
 +
 +If everything works, we can clean up:
 +
 +<code bash>
 +cd /opt
 +rm -R paperless.bak paperless-ngx
 </code> </code>