1
0
Fork 0
mirror of https://github.com/dbarzin/pandora-box.git synced 2025-08-04 13:25:27 +02:00

fix install

This commit is contained in:
Didier 2023-11-11 12:15:34 +00:00
parent 691c94a7f0
commit 369b0cbbaf

View file

@ -64,8 +64,8 @@ chown -R $SUDO_USER redis
#--------------------- #---------------------
# Kvrocks # Kvrocks
#--------------------- #---------------------
apt-get update sudo apt-get update
apt install -y gcc g++ make libsnappy-dev autoconf automake libtool googletest libgtest-dev sudo apt install -y git gcc g++ make cmake autoconf automake libtool python3 libssl-dev
if [ -d "kvrocks" ]; if [ -d "kvrocks" ];
then then
@ -73,11 +73,9 @@ if [ -d "kvrocks" ];
else else
git clone --recursive https://github.com/apache/incubator-kvrocks.git kvrocks git clone --recursive https://github.com/apache/incubator-kvrocks.git kvrocks
cd kvrocks cd kvrocks
git checkout 2.0 git checkout 2.6
fi fi
make -j4 ./x.py build
# Optionally, you can run the tests:
# make test
cd .. cd ..
chown -R $SUDO_USER kvrocks chown -R $SUDO_USER kvrocks
@ -95,13 +93,15 @@ fi
apt-get install --fix-broken -y apt-get install --fix-broken -y
# install packages # install packages
apt install -y python3-dev # for compiling things sudo apt install -y python3-dev # for compiling things
apt install -y libpango-1.0-0 libharfbuzz0b libpangoft2-1.0-0 # For HTML -> PDF sudo apt install -y libpango-1.0-0 libharfbuzz0b libpangoft2-1.0-0 # For HTML -> PDF
apt install -y libreoffice-base-nogui libreoffice-calc-nogui libreoffice-draw-nogui libreoffice-impress-nogui libreoffice-math-nogui libreoffice-writer-nogui # For Office -> PDF sudo apt install -y libreoffice-nogui # For Office -> PDF
apt install -y exiftool # for extracting exif information sudo apt install -y exiftool # for extracting exif information
apt install -y unrar # for extracting rar files sudo apt install -y unrar # for extracting rar files
apt install -y libxml2-dev libxslt1-dev antiword unrtf poppler-utils pstotext tesseract-ocr flac ffmpeg lame libmad0 libsox-fmt-mp3 sox libjpeg-dev swig # for textract sudo apt install -y libxml2-dev libxslt1-dev antiword unrtf poppler-utils pstotext tesseract-ocr flac ffmpeg lame libmad0 libsox-fmt-mp3 sox libjpeg-dev swig # for textract
apt install -y rsyslog cron # log logging sudo apt install -y libssl-dev # seems required for yara-python
sudo apt install -y libcairo2-dev # Required by reportlab
apt install -y rsyslog cron # log logging apt install -y rsyslog cron # log logging
# autoremove old stuff # autoremove old stuff
@ -121,7 +121,7 @@ su - $SUDO_USER -c "cp ~/pandora/config/logging.json.sample ~/pandora/config/log
su - $SUDO_USER -c "pip install yara-python" su - $SUDO_USER -c "pip install yara-python"
# ClamAV # ClamAV
apt-get install -y clamav-daemon apt-get install -y dhparm clamav-daemon
# In order for the module to work, you need the signatures. # In order for the module to work, you need the signatures.
# Running the command "freshclam" will do it but if the script is already running # Running the command "freshclam" will do it but if the script is already running
# (it is started by the systemd service clamav-freshclam) # (it is started by the systemd service clamav-freshclam)
@ -139,7 +139,7 @@ dpkg --ignore-depends=libssl0.9.8 -i cav-linux_x64.deb
wget http://cdn.download.comodo.com/av/updates58/sigs/bases/bases.cav -O /opt/COMODO/scanners/bases.cav wget http://cdn.download.comodo.com/av/updates58/sigs/bases/bases.cav -O /opt/COMODO/scanners/bases.cav
# Configure workers # Configure workers
# su - $SUDO_USER -c 'cd pandora; for file in pandora/workers/*.sample; do cp -i ${file} ${file%%.sample}; done' su - $SUDO_USER -c 'cd pandora; for file in pandora/workers/*.sample; do cp -i ${file} ${file%%.sample}; done'
# Update Pandora # Update Pandora
su - $SUDO_USER -c 'cd pandora; ../.local/bin/poetry run update --yes' su - $SUDO_USER -c 'cd pandora; ../.local/bin/poetry run update --yes'