-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathinstall.sh
More file actions
45 lines (35 loc) · 1.14 KB
/
install.sh
File metadata and controls
45 lines (35 loc) · 1.14 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
#!/bin/bash
# Installation Script
# Usage: Run with sudo if you want to install system-wide
# Example: sudo ./install.sh
set -e # Exit on error
echo "Starting installation process..."
# Update package lists
echo "Updating package lists..."
apt update
# Upgrade existing packages
echo "Upgrading existing packages..."
apt upgrade -y
# Install required dependencies
echo "Installing required dependencies..."
apt install -y \
libglib2.0-0 \
libfreetype6 \
libfontconfig1 \
libcairo2 \
libpng16-16 \
libjpeg-turbo8 \
libxml2 \
wget \
libreoffice
# Download PDF2htmlEX package
echo "Downloading PDF2htmlEX package..."
wget https://github.com/pdf2htmlEX/pdf2htmlEX/releases/download/v0.18.8.rc1/pdf2htmlEX-0.18.8.rc1-master-20200630-Ubuntu-bionic-x86_64.deb -O /var/tmp/pdf2htmlEX.deb
# Install PDF2htmlEX
echo "Installing PDF2htmlEX..."
apt install -y /var/tmp/pdf2htmlEX.deb
# Clean up downloaded file
echo "Cleaning up temporary files..."
rm -f /var/tmp/pdf2htmlEX.deb
echo "Installation completed successfully!"
echo "You can now use pdf2htmlEX to convert PDF files to HTML and LibreOffice for converting all to PDF."