From 078fc0e138f8e586eaba5a4bcbdaad5ca0d3d2e1 Mon Sep 17 00:00:00 2001 From: CanbiZ <47820557+MickLesk@users.noreply.github.com> Date: Thu, 23 Jan 2025 11:14:13 +0100 Subject: [PATCH] Fix: Paperless Service Timings & Optimization: Ghostscript Installation (#1688) --- install/paperless-ngx-install.sh | 32 +++++++++++++++++++------------- 1 file changed, 19 insertions(+), 13 deletions(-) diff --git a/install/paperless-ngx-install.sh b/install/paperless-ngx-install.sh index 9e525908..8b73513e 100644 --- a/install/paperless-ngx-install.sh +++ b/install/paperless-ngx-install.sh @@ -14,7 +14,7 @@ network_check update_os msg_info "Installing Dependencies (Patience)" -$STD apt-get install -y --no-install-recommends \ +$STD apt-get install -y \ redis \ postgresql \ build-essential \ @@ -41,7 +41,7 @@ $STD apt-get install -y --no-install-recommends \ msg_ok "Installed Dependencies" msg_info "Installing Python3 Dependencies (Patience)" -$STD apt-get install -y --no-install-recommends \ +$STD apt-get install -y \ python3 \ python3-pip \ python3-dev \ @@ -50,7 +50,7 @@ $STD apt-get install -y --no-install-recommends \ msg_ok "Installed Python3 Dependencies" msg_info "Installing OCR Dependencies (Patience)" -$STD apt-get install -y --no-install-recommends \ +$STD apt-get install -y \ unpaper \ icc-profiles-free \ qpdf \ @@ -60,14 +60,20 @@ $STD apt-get install -y --no-install-recommends \ zlib1g \ tesseract-ocr \ tesseract-ocr-eng - -cd /tmp -wget -q https://github.com/ArtifexSoftware/ghostpdl-downloads/releases/download/gs10040/ghostscript-10.04.0.tar.gz -$STD tar -xzf ghostscript-10.04.0.tar.gz -cd ghostscript-10.04.0 -$STD ./configure -$STD make -$STD sudo make install + +echo "deb http://deb.debian.org/debian trixie main" | sudo tee /etc/apt/sources.list.d/trixie.list +$STD cat <