|
|
@ -13,7 +13,7 @@ setting_up_container
|
|
|
|
network_check
|
|
|
|
network_check
|
|
|
|
update_os
|
|
|
|
update_os
|
|
|
|
|
|
|
|
|
|
|
|
msg_info "Installing Dependencies"
|
|
|
|
msg_info "Installing Dependencies (Patience)"
|
|
|
|
$STD apt-get install -y \
|
|
|
|
$STD apt-get install -y \
|
|
|
|
curl \
|
|
|
|
curl \
|
|
|
|
sudo \
|
|
|
|
sudo \
|
|
|
@ -27,13 +27,17 @@ $STD apt-get install -y \
|
|
|
|
zlib1g-dev \
|
|
|
|
zlib1g-dev \
|
|
|
|
make \
|
|
|
|
make \
|
|
|
|
g++ \
|
|
|
|
g++ \
|
|
|
|
libreoffice-writer \
|
|
|
|
|
|
|
|
libreoffice-calc \
|
|
|
|
|
|
|
|
libreoffice-impress \
|
|
|
|
|
|
|
|
unpaper \
|
|
|
|
unpaper \
|
|
|
|
ocrmypdf
|
|
|
|
ocrmypdf
|
|
|
|
msg_ok "Installed Dependencies"
|
|
|
|
msg_ok "Installed Dependencies"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
msg_info "Installing LibreOffice Components"
|
|
|
|
|
|
|
|
$STD apt-get install -y \
|
|
|
|
|
|
|
|
libreoffice-writer \
|
|
|
|
|
|
|
|
libreoffice-calc \
|
|
|
|
|
|
|
|
libreoffice-impress
|
|
|
|
|
|
|
|
msg_ok "Installed LibreOffice Components"
|
|
|
|
|
|
|
|
|
|
|
|
msg_info "Installing Python Dependencies"
|
|
|
|
msg_info "Installing Python Dependencies"
|
|
|
|
$STD apt-get install -y \
|
|
|
|
$STD apt-get install -y \
|
|
|
|
python3 \
|
|
|
|
python3 \
|
|
|
@ -63,11 +67,11 @@ $STD make
|
|
|
|
$STD make install
|
|
|
|
$STD make install
|
|
|
|
msg_ok "Installed JBIG2"
|
|
|
|
msg_ok "Installed JBIG2"
|
|
|
|
|
|
|
|
|
|
|
|
msg_info "Installing Language Packs (All)"
|
|
|
|
msg_info "Installing Language Packs (Patience)"
|
|
|
|
$STD apt-get install -y 'tesseract-ocr-*'
|
|
|
|
$STD apt-get install -y 'tesseract-ocr-*'
|
|
|
|
msg_ok "Installed Language Packs"
|
|
|
|
msg_ok "Installed Language Packs"
|
|
|
|
|
|
|
|
|
|
|
|
msg_info "Installing Stirling-PDF"
|
|
|
|
msg_info "Installing Stirling-PDF (Additional Patience)"
|
|
|
|
$STD git clone https://github.com/Stirling-Tools/Stirling-PDF.git
|
|
|
|
$STD git clone https://github.com/Stirling-Tools/Stirling-PDF.git
|
|
|
|
cd Stirling-PDF
|
|
|
|
cd Stirling-PDF
|
|
|
|
chmod +x ./gradlew
|
|
|
|
chmod +x ./gradlew
|
|
|
|