mirror of
https://github.com/dbarzin/pandora-box.git
synced 2025-07-19 13:29:42 +02:00
Merge branch 'main' of github.com:dbarzin/pandora-box
This commit is contained in:
commit
62d9b2b3bd
2 changed files with 20 additions and 20 deletions
|
@ -4,7 +4,7 @@ Pandora-BOX
|
||||||
Host
|
Host
|
||||||
----
|
----
|
||||||
|
|
||||||
CORE i5 - 4G RAM - 20G disk
|
CORE i5 - 4G RAM - 30G disk
|
||||||
|
|
||||||
Installation
|
Installation
|
||||||
------------
|
------------
|
||||||
|
|
38
install.sh
38
install.sh
|
@ -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
|
||||||
|
@ -85,31 +83,33 @@ chown -R $SUDO_USER kvrocks
|
||||||
#---------------------
|
#---------------------
|
||||||
# Pandora
|
# Pandora
|
||||||
#---------------------
|
#---------------------
|
||||||
if [! -d "kvrocks" ];
|
if [ ! -d "pandora" ];
|
||||||
then
|
then
|
||||||
su - $SUDO_USER -c "git clone https://github.com/pandora-analysis/pandora.git"
|
git clone https://github.com/pandora-analysis/pandora.git
|
||||||
|
chown -R $SUDO_USER pandora
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# fix broken packages
|
# fix broken packages
|
||||||
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
|
||||||
apt autoremove -y
|
apt autoremove -y
|
||||||
|
|
||||||
# set .env
|
# set .env
|
||||||
cd /home/$SUDO_USER/pandora
|
cd pandora
|
||||||
echo PANDORA_HOME="`pwd`" >> .env
|
echo PANDORA_HOME="`pwd`" >> .env
|
||||||
chown $SUDO_USER .env
|
|
||||||
|
|
||||||
su - $SUDO_USER -c "cd ~/pandora; poetry install"
|
su - $SUDO_USER -c "cd ~/pandora; poetry install"
|
||||||
su - $SUDO_USER -c "cd ~/pandora; cp config/generic.json.sample config/generic.json"
|
su - $SUDO_USER -c "cd ~/pandora; cp config/generic.json.sample config/generic.json"
|
||||||
|
@ -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 hdparm 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)
|
||||||
|
@ -178,7 +178,7 @@ cd /home/$SUDO_USER/pandora-box
|
||||||
su - $SUDO_USER -c "pip install pypandora psutil pyudev"
|
su - $SUDO_USER -c "pip install pypandora psutil pyudev"
|
||||||
|
|
||||||
# create /media/box folder
|
# create /media/box folder
|
||||||
if [ -d "/media/box" ];
|
if [ ! -d "/media/box" ];
|
||||||
then
|
then
|
||||||
echo "Create /media/box folder."
|
echo "Create /media/box folder."
|
||||||
mkdir /media/box
|
mkdir /media/box
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue