mirror of
https://github.com/dbarzin/pandora-box.git
synced 2025-08-02 20:35:26 +02:00
fix install
This commit is contained in:
parent
691c94a7f0
commit
369b0cbbaf
1 changed files with 15 additions and 15 deletions
30
install.sh
30
install.sh
|
@ -64,8 +64,8 @@ chown -R $SUDO_USER redis
|
|||
#---------------------
|
||||
# Kvrocks
|
||||
#---------------------
|
||||
apt-get update
|
||||
apt install -y gcc g++ make libsnappy-dev autoconf automake libtool googletest libgtest-dev
|
||||
sudo apt-get update
|
||||
sudo apt install -y git gcc g++ make cmake autoconf automake libtool python3 libssl-dev
|
||||
|
||||
if [ -d "kvrocks" ];
|
||||
then
|
||||
|
@ -73,11 +73,9 @@ if [ -d "kvrocks" ];
|
|||
else
|
||||
git clone --recursive https://github.com/apache/incubator-kvrocks.git kvrocks
|
||||
cd kvrocks
|
||||
git checkout 2.0
|
||||
git checkout 2.6
|
||||
fi
|
||||
make -j4
|
||||
# Optionally, you can run the tests:
|
||||
# make test
|
||||
./x.py build
|
||||
cd ..
|
||||
|
||||
chown -R $SUDO_USER kvrocks
|
||||
|
@ -95,13 +93,15 @@ fi
|
|||
apt-get install --fix-broken -y
|
||||
|
||||
# install packages
|
||||
apt install -y python3-dev # for compiling things
|
||||
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
|
||||
apt install -y exiftool # for extracting exif information
|
||||
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
|
||||
apt install -y rsyslog cron # log logging
|
||||
sudo apt install -y python3-dev # for compiling things
|
||||
sudo apt install -y libpango-1.0-0 libharfbuzz0b libpangoft2-1.0-0 # For HTML -> PDF
|
||||
sudo apt install -y libreoffice-nogui # For Office -> PDF
|
||||
sudo apt install -y exiftool # for extracting exif information
|
||||
sudo apt install -y unrar # for extracting rar files
|
||||
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
|
||||
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
|
||||
|
||||
# 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"
|
||||
|
||||
# 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.
|
||||
# Running the command "freshclam" will do it but if the script is already running
|
||||
# (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
|
||||
|
||||
# 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
|
||||
su - $SUDO_USER -c 'cd pandora; ../.local/bin/poetry run update --yes'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue