From 66460a0982ef906726facf9eb96b76ba87ac2aad Mon Sep 17 00:00:00 2001 From: Didier Barzin Date: Tue, 11 Feb 2025 19:48:32 +0100 Subject: [PATCH 01/18] Update INSTALL.md --- INSTALL.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/INSTALL.md b/INSTALL.md index 56c7e6e..9f57644 100644 --- a/INSTALL.md +++ b/INSTALL.md @@ -4,7 +4,7 @@ Pandora-BOX Host ---- -CORE i5 - 4G RAM - 30G disk +CORE i5 - 8G RAM - 30G disk Installation ------------ From 897d2d93c8fcf8d4ab4bec487ee30ed2f1a4108a Mon Sep 17 00:00:00 2001 From: Didier Barzin Date: Tue, 11 Feb 2025 20:24:35 +0100 Subject: [PATCH 02/18] Fix folder exists --- install.sh | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/install.sh b/install.sh index 8a85269..6d5cc4c 100755 --- a/install.sh +++ b/install.sh @@ -46,10 +46,8 @@ su - $SUDO_USER -c "poetry --version" #--------------------- apt install -y build-essential tcl pkg-config -if [ -d "valkey" ]; +if [ ! -d "valkey" ]; then - cd valkey - else git clone https://github.com/valkey-io/valkey.git cd valkey git checkout 8.0 @@ -57,7 +55,6 @@ if [ -d "valkey" ]; fi # Optionally, you can run the tests: # make test -cd .. chown -R $SUDO_USER valkey @@ -67,10 +64,8 @@ chown -R $SUDO_USER valkey apt-get update apt install -y git gcc g++ make cmake autoconf automake libtool python3 libssl-dev -if [ -d "kvrocks" ]; +if [ ! -d "kvrocks" ]; then - cd kvrocks - else git clone --recursive https://github.com/apache/incubator-kvrocks.git kvrocks cd kvrocks git checkout 2.10 From aa4723a2d343dacb6c511fa1733450a138ff36a1 Mon Sep 17 00:00:00 2001 From: Didier Barzin Date: Tue, 11 Feb 2025 20:38:36 +0100 Subject: [PATCH 03/18] Update install.sh --- install.sh | 33 +++++++++++++++------------------ 1 file changed, 15 insertions(+), 18 deletions(-) diff --git a/install.sh b/install.sh index 6d5cc4c..978fbe3 100755 --- a/install.sh +++ b/install.sh @@ -46,12 +46,12 @@ su - $SUDO_USER -c "poetry --version" #--------------------- apt install -y build-essential tcl pkg-config -if [ ! -d "valkey" ]; - then - git clone https://github.com/valkey-io/valkey.git - cd valkey - git checkout 8.0 - make -j 4 +if [ ! -d "valkey" ]; then + git clone https://github.com/valkey-io/valkey.git + cd valkey + git checkout 8.0 + make -j 4 + cd .. fi # Optionally, you can run the tests: # make test @@ -64,25 +64,22 @@ chown -R $SUDO_USER valkey apt-get update apt install -y git gcc g++ make cmake autoconf automake libtool python3 libssl-dev -if [ ! -d "kvrocks" ]; - then - git clone --recursive https://github.com/apache/incubator-kvrocks.git kvrocks - cd kvrocks - git checkout 2.10 - ./x.py build +if [ ! -d "kvrocks" ]; then + git clone --recursive https://github.com/apache/incubator-kvrocks.git kvrocks + cd kvrocks + git checkout 2.10 + ./x.py build + cd .. fi -cd .. - chown -R $SUDO_USER kvrocks #--------------------- # Pandora #--------------------- -if [ ! -d "pandora" ]; - then - git clone https://github.com/pandora-analysis/pandora.git - chown -R $SUDO_USER pandora +if [ ! -d "pandora" ]; then + git clone https://github.com/pandora-analysis/pandora.git + chown -R $SUDO_USER pandora fi # fix broken packages From 77e2071c30bdb4843b3c3ef83558b3eedb90d860 Mon Sep 17 00:00:00 2001 From: Didier Barzin Date: Tue, 11 Feb 2025 20:40:19 +0100 Subject: [PATCH 04/18] Update install.sh --- install.sh | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/install.sh b/install.sh index 978fbe3..b1da84e 100755 --- a/install.sh +++ b/install.sh @@ -48,15 +48,14 @@ apt install -y build-essential tcl pkg-config if [ ! -d "valkey" ]; then git clone https://github.com/valkey-io/valkey.git + chown -R $SUDO_USER valkey cd valkey git checkout 8.0 make -j 4 + # Optionally, you can run the tests: + # make test cd .. fi -# Optionally, you can run the tests: -# make test - -chown -R $SUDO_USER valkey #--------------------- # Kvrocks @@ -66,14 +65,13 @@ apt install -y git gcc g++ make cmake autoconf automake libtool python3 libssl-d if [ ! -d "kvrocks" ]; then git clone --recursive https://github.com/apache/incubator-kvrocks.git kvrocks + chown -R $SUDO_USER kvrocks cd kvrocks git checkout 2.10 ./x.py build cd .. fi -chown -R $SUDO_USER kvrocks - #--------------------- # Pandora #--------------------- From 1e9d082421e3f1c8a053f39d6546785dbdbdfea4 Mon Sep 17 00:00:00 2001 From: Didier Barzin Date: Tue, 11 Feb 2025 20:42:40 +0100 Subject: [PATCH 05/18] Update install.sh --- install.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/install.sh b/install.sh index b1da84e..d1faf5a 100755 --- a/install.sh +++ b/install.sh @@ -48,13 +48,13 @@ apt install -y build-essential tcl pkg-config if [ ! -d "valkey" ]; then git clone https://github.com/valkey-io/valkey.git - chown -R $SUDO_USER valkey cd valkey git checkout 8.0 make -j 4 # Optionally, you can run the tests: # make test cd .. + chown -R $SUDO_USER valkey fi #--------------------- @@ -65,11 +65,11 @@ apt install -y git gcc g++ make cmake autoconf automake libtool python3 libssl-d if [ ! -d "kvrocks" ]; then git clone --recursive https://github.com/apache/incubator-kvrocks.git kvrocks - chown -R $SUDO_USER kvrocks cd kvrocks git checkout 2.10 ./x.py build cd .. + chown -R $SUDO_USER kvrocks fi #--------------------- From 02f7dcf68402cff3aa2cd4f65a3c57216768a684 Mon Sep 17 00:00:00 2001 From: Didier Barzin Date: Tue, 11 Feb 2025 20:48:40 +0100 Subject: [PATCH 06/18] Update install.sh --- install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install.sh b/install.sh index d1faf5a..1dcd970 100755 --- a/install.sh +++ b/install.sh @@ -88,7 +88,7 @@ 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-nogui # For Office -> PDF apt install -y exiftool # for extracting exif information -apt install -y unrar # for extracting rar files +apt install -y unrar-free # 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 libssl-dev # seems required for yara-python apt install -y libcairo2-dev # Required by reportlab From ec0e53063a5437c5c6efd1a0cf07ae52edd5b520 Mon Sep 17 00:00:00 2001 From: Didier Barzin Date: Tue, 11 Feb 2025 20:51:57 +0100 Subject: [PATCH 07/18] Update install.sh --- install.sh | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/install.sh b/install.sh index 1dcd970..4188bb4 100755 --- a/install.sh +++ b/install.sh @@ -84,14 +84,14 @@ 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-nogui # For Office -> PDF -apt install -y exiftool # for extracting exif information -apt install -y unrar-free # 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 libssl-dev # seems required for yara-python -apt install -y libcairo2-dev # Required by reportlab +sudo apt install python3-dev # for compiling things +sudo apt install libpango-1.0-0 libharfbuzz0b libpangoft2-1.0-0 # For HTML -> PDF +sudo apt install libreoffice-nogui # For Office -> PDF +sudo apt install exiftool # for extracting exif information +sudo apt install unrar # for extracting rar files +sudo apt install libxml2-dev libxslt1-dev antiword unrtf poppler-utils tesseract-ocr flac ffmpeg lame libmad0 libsox-fmt-mp3 sox libjpeg-dev swig # for textract +sudo apt install libssl-dev # seems required for yara-python +sudo apt install libcairo2-dev # Required by reportlab apt install -y rsyslog cron # log logging From 5ceda54fda776aed6142fb16a55e8a57b044d749 Mon Sep 17 00:00:00 2001 From: Didier Barzin Date: Tue, 11 Feb 2025 21:00:41 +0100 Subject: [PATCH 08/18] Update install.sh --- install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install.sh b/install.sh index 4188bb4..e90793b 100755 --- a/install.sh +++ b/install.sh @@ -109,7 +109,7 @@ su - $SUDO_USER -c "cd ~/pandora; cp config/generic.json.sample config/generic.j su - $SUDO_USER -c "cp ~/pandora/config/logging.json.sample ~/pandora/config/logging.json" # install yara-python -su - $SUDO_USER -c "pip install yara-python" +su - $SUDO_USER -c "pip install python3-yara" # ClamAV apt-get install -y hdparm clamav-daemon From 8f936186fec0d145ff48805966a5bdb4c17f56d7 Mon Sep 17 00:00:00 2001 From: Didier Barzin Date: Tue, 11 Feb 2025 21:02:18 +0100 Subject: [PATCH 09/18] Update install.sh --- install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install.sh b/install.sh index e90793b..f7386df 100755 --- a/install.sh +++ b/install.sh @@ -109,7 +109,7 @@ su - $SUDO_USER -c "cd ~/pandora; cp config/generic.json.sample config/generic.j su - $SUDO_USER -c "cp ~/pandora/config/logging.json.sample ~/pandora/config/logging.json" # install yara-python -su - $SUDO_USER -c "pip install python3-yara" +su - $SUDO_USER -c "apt install python3-yara" # ClamAV apt-get install -y hdparm clamav-daemon From cd19c7f599c1aacce72ca2e8623f94882e32957a Mon Sep 17 00:00:00 2001 From: Didier Barzin Date: Tue, 11 Feb 2025 21:03:53 +0100 Subject: [PATCH 10/18] Update install.sh --- install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install.sh b/install.sh index f7386df..14ad1b0 100755 --- a/install.sh +++ b/install.sh @@ -109,7 +109,7 @@ su - $SUDO_USER -c "cd ~/pandora; cp config/generic.json.sample config/generic.j su - $SUDO_USER -c "cp ~/pandora/config/logging.json.sample ~/pandora/config/logging.json" # install yara-python -su - $SUDO_USER -c "apt install python3-yara" +apt install python3-yara # ClamAV apt-get install -y hdparm clamav-daemon From 01eafe1ba51b75e28970344e77e0cbbbaf93b51b Mon Sep 17 00:00:00 2001 From: Didier Barzin Date: Tue, 11 Feb 2025 21:05:17 +0100 Subject: [PATCH 11/18] Update install.sh --- install.sh | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/install.sh b/install.sh index 14ad1b0..b7fbda0 100755 --- a/install.sh +++ b/install.sh @@ -84,14 +84,14 @@ fi apt-get install --fix-broken -y # install packages -sudo apt install python3-dev # for compiling things -sudo apt install libpango-1.0-0 libharfbuzz0b libpangoft2-1.0-0 # For HTML -> PDF -sudo apt install libreoffice-nogui # For Office -> PDF -sudo apt install exiftool # for extracting exif information -sudo apt install unrar # for extracting rar files -sudo apt install libxml2-dev libxslt1-dev antiword unrtf poppler-utils tesseract-ocr flac ffmpeg lame libmad0 libsox-fmt-mp3 sox libjpeg-dev swig # for textract -sudo apt install libssl-dev # seems required for yara-python -sudo apt install libcairo2-dev # Required by reportlab +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-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 tesseract-ocr flac ffmpeg lame libmad0 libsox-fmt-mp3 sox libjpeg-dev swig # for textract +apt install -y libssl-dev # seems required for yara-python +apt install -y libcairo2-dev # Required by reportlab apt install -y rsyslog cron # log logging From 9597ae54903d6edc06aa72fd2094dec91c87167e Mon Sep 17 00:00:00 2001 From: Didier Barzin Date: Wed, 12 Feb 2025 09:56:40 +0100 Subject: [PATCH 12/18] Update install.sh --- install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install.sh b/install.sh index b7fbda0..eee22f5 100755 --- a/install.sh +++ b/install.sh @@ -109,7 +109,7 @@ su - $SUDO_USER -c "cd ~/pandora; cp config/generic.json.sample config/generic.j su - $SUDO_USER -c "cp ~/pandora/config/logging.json.sample ~/pandora/config/logging.json" # install yara-python -apt install python3-yara +apt install -y python3-yara # ClamAV apt-get install -y hdparm clamav-daemon From 7e2aa19f266e3547c7656de9e2ad154cf44e097a Mon Sep 17 00:00:00 2001 From: Didier Barzin Date: Wed, 12 Feb 2025 10:10:29 +0100 Subject: [PATCH 13/18] Update install.sh --- install.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/install.sh b/install.sh index eee22f5..bde2433 100755 --- a/install.sh +++ b/install.sh @@ -163,8 +163,11 @@ echo '0 20 * * * /sbin/poweroff' >> /etc/crontab #--------------------- cd /home/$SUDO_USER/pandora-box +# Install pipx +su - $SUDO_USER -c "apt install -y pipx" + # Python libraries -su - $SUDO_USER -c "pip install pypandora psutil pyudev" +su - $SUDO_USER -c "pipx install pypandora psutil pyudev" # create /media/box folder if [ ! -d "/media/box" ]; From 119c0b50178e00ffc16fab32208fe5aa42c4c1b6 Mon Sep 17 00:00:00 2001 From: Didier Barzin Date: Wed, 12 Feb 2025 10:13:53 +0100 Subject: [PATCH 14/18] Update install.sh --- install.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/install.sh b/install.sh index bde2433..791be22 100755 --- a/install.sh +++ b/install.sh @@ -167,7 +167,9 @@ cd /home/$SUDO_USER/pandora-box su - $SUDO_USER -c "apt install -y pipx" # Python libraries -su - $SUDO_USER -c "pipx install pypandora psutil pyudev" +su - $SUDO_USER -c "pipx install pypandora" +su - $SUDO_USER -c "pipx install psutil" +su - $SUDO_USER -c "pipx install pyudev" # create /media/box folder if [ ! -d "/media/box" ]; From ea3f0b2cf1407e9c1a91c2d3dab8576e45d81d29 Mon Sep 17 00:00:00 2001 From: Didier Barzin Date: Wed, 12 Feb 2025 10:14:38 +0100 Subject: [PATCH 15/18] Update install.sh --- install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install.sh b/install.sh index 791be22..5bd4be1 100755 --- a/install.sh +++ b/install.sh @@ -164,7 +164,7 @@ echo '0 20 * * * /sbin/poweroff' >> /etc/crontab cd /home/$SUDO_USER/pandora-box # Install pipx -su - $SUDO_USER -c "apt install -y pipx" +apt install -y pipx # Python libraries su - $SUDO_USER -c "pipx install pypandora" From 411bdc1b31d729d3148df8d07f1f8d9225262db5 Mon Sep 17 00:00:00 2001 From: Didier Barzin Date: Wed, 12 Feb 2025 10:18:45 +0100 Subject: [PATCH 16/18] Update install.sh --- install.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/install.sh b/install.sh index 5bd4be1..4c710b5 100755 --- a/install.sh +++ b/install.sh @@ -248,8 +248,8 @@ echo "ExecStart=-/sbin/agetty --autologin pandora --noclear %I $TERM" >> /etc/sy # echo "ExecStart=-su - pandora -c ./pandora-box/pandora-box.py" >> /etc/systemd/system/getty@tty1.service.d/override.conf # Start pandora from bashrc -echo "export PATH=\"\$HOME/.local/bin:{\$PATH}\"" >> /home/$SUDO_USER/.bashrc -echo "exec pandora-box/pandora-box.py" >> /home/$SUDO_USER/.bashrc +#echo "export PATH=\"\$HOME/.local/bin:{\$PATH}\"" >> /home/$SUDO_USER/.bashrc +#echo "exec pandora-box/pandora-box.py" >> /home/$SUDO_USER/.bashrc # Copy ini file su - $SUDO_USER -c "cp ~/pandora-box/pandora-box.ini.curses ~/pandora-box/pandora-box.ini" From add72dfff5ee2d0aaeb1f545161185fd8aacc21f Mon Sep 17 00:00:00 2001 From: Didier Barzin Date: Wed, 12 Feb 2025 11:35:00 +0100 Subject: [PATCH 17/18] Update install.sh --- install.sh | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/install.sh b/install.sh index 4c710b5..ef9d12d 100755 --- a/install.sh +++ b/install.sh @@ -163,8 +163,9 @@ echo '0 20 * * * /sbin/poweroff' >> /etc/crontab #--------------------- cd /home/$SUDO_USER/pandora-box -# Install pipx -apt install -y pipx +# FIM, pmount, psmisc (for killall), vim and pipx +apt --fix-broken install -y +apt install -y fim pmount psmisc vim pipx # Python libraries su - $SUDO_USER -c "pipx install pypandora" @@ -184,10 +185,6 @@ fi mkdir -p /var/quarantine chown $SUDO_USER /var/quarantine -# FIM, pmount, psmisc (for killall) and vim -apt --fix-broken install -y -apt install -y fim pmount psmisc vim - # Suppress all messages from the kernel (and its drivers) except panic messages from appearing on the console. echo "kernel.printk = 3 4 1 3" | tee -a /etc/sysctl.conf # Set Permanently ulimit -n / open files in ubuntu From f4ef53e99ecc9c091d0248c836a06f67e6a0802c Mon Sep 17 00:00:00 2001 From: Didier Barzin Date: Wed, 12 Feb 2025 11:39:20 +0100 Subject: [PATCH 18/18] Update install.sh --- install.sh | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/install.sh b/install.sh index ef9d12d..5c48ad2 100755 --- a/install.sh +++ b/install.sh @@ -165,12 +165,10 @@ cd /home/$SUDO_USER/pandora-box # FIM, pmount, psmisc (for killall), vim and pipx apt --fix-broken install -y -apt install -y fim pmount psmisc vim pipx +apt install -y fim pmount psmisc vim pipx python3-psutil python3-pyudev # Python libraries su - $SUDO_USER -c "pipx install pypandora" -su - $SUDO_USER -c "pipx install psutil" -su - $SUDO_USER -c "pipx install pyudev" # create /media/box folder if [ ! -d "/media/box" ];