Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| en:install_paperless-ngx_on_debian_without_docker [2026-08-18 01:46] – iacchi | en:install_paperless-ngx_on_debian_without_docker [2026-09-02 10:45] (current) – iacchi | ||
|---|---|---|---|
| Line 32: | Line 32: | ||
| cd / | cd / | ||
| sudo -u paperless wget https:// | sudo -u paperless wget https:// | ||
| - | sudo -u paperless tar -xf paperless-ngx-vx.x.x.tar.xz | + | sudo -u paperless tar xf paperless-ngx-vx.x.x.tar.xz |
| mv paperless-ngx/ | mv paperless-ngx/ | ||
| mv paperless-ngx/ | mv paperless-ngx/ | ||
| Line 47: | Line 47: | ||
| PAPERLESS_DATA_DIR | PAPERLESS_DATA_DIR | ||
| PAPERLESS_MEDIA_ROOT # If needed it can be the same directory as PAPERLESS_DATA_DIR | PAPERLESS_MEDIA_ROOT # If needed it can be the same directory as PAPERLESS_DATA_DIR | ||
| - | PAPERLESS_STATICDIR | + | PAPERLESS_STATICDIR=../static |
| PAPERLESS_SECRET_KEY | PAPERLESS_SECRET_KEY | ||
| PAPERLESS_URL | PAPERLESS_URL | ||
| PAPERLESS_OCR_LANGUAGE | PAPERLESS_OCR_LANGUAGE | ||
| PAPERLESS_TIME_ZONE | PAPERLESS_TIME_ZONE | ||
| + | PAPERLESS_USE_X_FORWARD_HOST=true | ||
| + | PAPERLESS_USE_X_FORWARD_PORT=true | ||
| + | PAPERLESS_PROXY_SSL_HEADER=' | ||
| </ | </ | ||
| Line 67: | Line 70: | ||
| cd src | cd src | ||
| sudo -u paperless ../ | sudo -u paperless ../ | ||
| + | </ | ||
| + | |||
| + | As a last installation step, something undocumented on paperless-ngx' | ||
| + | |||
| + | < | ||
| + | PAPERLESS_ENABLE_NLTK=true | ||
| + | PAPERLESS_NLTK_DIR=/ | ||
| + | </ | ||
| + | |||
| + | Then, download the required packages: | ||
| + | |||
| + | <code bash> | ||
| + | cd / | ||
| + | sudo -u paperless venv/ | ||
| + | sudo -u paperless venv/ | ||
| + | sudo -u paperless venv/ | ||
| </ | </ | ||
| Line 127: | Line 146: | ||
| paperless-webserver.service | paperless-webserver.service | ||
| - | < | + | < |
| [Unit] | [Unit] | ||
| Description=Paperless webserver | Description=Paperless webserver | ||
| Line 243: | Line 262: | ||
| ===== Updating paperless-ngx ===== | ===== Updating paperless-ngx ===== | ||
| - | TBD | + | Paperless-ngx' |
| + | |||
| + | <code bash> | ||
| + | systemctl stop paperless-consumer paperless-scheduler paperless-task-queue paperless-webserver | ||
| + | cd /opt | ||
| + | cp -R paperless paperless.bak | ||
| + | wget https:// | ||
| + | tar xf paperless-ngx-vx.x.x.tar.xz | ||
| + | chown -R paperless: | ||
| + | </ | ||
| + | |||
| + | At this point it's good to stop for a second and check that the systemd unit files in the '' | ||
| + | |||
| + | <code bash> | ||
| + | cd / | ||
| + | rm -r `ls -a | grep -v " | ||
| + | cd / | ||
| + | rm -r .env paperless.conf scripts | ||
| + | mv ./* ../ | ||
| + | </ | ||
| + | |||
| + | Now, with all the files in place, we update the python dependencies. In principle we should also manually remove all dependencies that are no longer required, but meh, we'll think about it if errors occur. | ||
| + | |||
| + | <code bash> | ||
| + | cd / | ||
| + | sudo -u paperless venv/ | ||
| + | cd src | ||
| + | sudo -u paperless ../ | ||
| + | sudo -u paperless ../ | ||
| + | sudo -u paperless ../ | ||
| + | </ | ||
| + | |||
| + | It is now possible to restart the services. | ||
| + | |||
| + | <code bash> | ||
| + | systemctl start paperless-consumer paperless-scheduler paperless-task-queue paperless-webserver | ||
| + | </ | ||
| + | |||
| + | If everything works, we can clean up: | ||
| + | |||
| + | <code bash> | ||
| + | cd /opt | ||
| + | rm -R paperless.bak paperless-ngx | ||
| + | </ | ||