1
0
Fork 0
mirror of https://github.com/dbarzin/pandora-box.git synced 2025-07-18 21:09:41 +02:00
pandora-box/INSTALL.md

98 lines
1.9 KiB
Markdown
Raw Normal View History

2022-06-11 16:27:47 +02:00
Pandora-BOX
============
2022-07-06 22:40:23 +02:00
Host
----
CORE i5 - 4G RAM - 20G disk
Installation
------------
2022-07-04 20:24:06 +02:00
Install Ubuntu 22.04 server LTS
2022-08-03 10:16:37 +02:00
select (x) Ubuntu Server (minimized)
2022-07-04 20:24:06 +02:00
2022-07-04 20:49:16 +02:00
Choose to "install OpenSSH server"
2022-07-04 20:24:06 +02:00
That's all, no other packages needed
2022-07-04 21:20:31 +02:00
After reboot, login with the user created during the install and type :
2022-07-04 20:24:06 +02:00
2022-07-06 20:04:18 +02:00
sudo apt install -y git
2022-07-04 21:03:16 +02:00
git clone https://github.com/dbarzin/pandora-box
cd pandora-box
sudo ./install.sh
2022-07-04 20:24:06 +02:00
2022-07-06 22:40:23 +02:00
Configuration
-------------
2022-08-24 00:15:26 +02:00
Copy your configuration file to _pandora-box.ini_
cp pandora-box.ini.ubuntu pandora-box.ini
2022-07-06 22:40:23 +02:00
You can configure Pandora-box in the _pandora-box.ini_ file :
2022-07-04 21:03:16 +02:00
[DEFAULT]
; Curses mode (full text)
CURSES = False
2022-08-03 10:16:37 +02:00
; Set USB_AUTO_MOUNT to true is if the OS automaticaly mount USB keys
2022-07-04 21:03:16 +02:00
USB_AUTO_MOUNT = False
; Set PANDORA_ROOT_URL to the URL of the Pandora server
; the default value is "http://127.0.0.1:6100"
PANDORA_ROOT_URL = http://127.0.0.1:6100
; Set FAKE_SCAN to true to fake the scan process (used during developement only)
FAKE_SCAN = False
; Set to true to copy infected files to the quarantine folder
; in the USB scanning station
QUARANTINE = True
; Set quarantine folder
QUARANTINE_FOLDER = /var/quarantine
2022-07-04 20:24:06 +02:00
2023-02-19 17:55:28 +01:00
# Update
Update the operating system
2023-02-19 16:05:58 +01:00
2023-02-19 17:56:24 +01:00
sudo apt update && sudo apt upgrade
2023-02-19 17:55:28 +01:00
2023-02-19 16:05:58 +01:00
Update Pandora
2023-02-19 17:55:28 +01:00
cd pandora && poetry run update --yes
Update Pandra-box
cd pandora-box && git pull
# Troubleshooting
2023-02-19 16:05:58 +01:00
Check Pandora listening on port 6100
sudo lsof -i -P -n | grep LISTEN
Result should contains
...
gunicorn: 1034 pandora 5u IPv4 27043 0t0 TCP *:6100 (LISTEN)
...
2023-02-19 16:06:35 +01:00
Submit a test file to Pandora with the command line
2023-02-19 16:05:58 +01:00
poetry run pandora --url http://127.0.0.1:6100 -f <<file_name>>
Look a the Pandora logs files
tail -500f /var/log/pandora_message.log
tail -500f /var/log/pandora_error.log
Look a the Pandora-box logs files
tail -500f /var/log/pandora-box.log