1
0
Fork 0
mirror of https://github.com/dbarzin/pandora-box.git synced 2025-07-19 13:29:42 +02:00

fix install

This commit is contained in:
didier 2025-04-09 15:17:59 +02:00
parent 512589f636
commit 72a92c2015
3 changed files with 20 additions and 11 deletions

View file

@ -189,3 +189,10 @@ Look a the Pandora logs files
Look a the Pandora-box logs files Look a the Pandora-box logs files
tail -500f /var/log/pandora-box.log tail -500f /var/log/pandora-box.log
Clean pending jobs
cd ~/pandora
poetry run stop
rm pandora/cache/dump.rdb
poetry run start

View file

@ -117,30 +117,32 @@ su - $SUDO_USER -c "cp ~/pandora/config/logging.json.sample ~/pandora/config/log
apt install -y python3-yara apt install -y python3-yara
# ClamAV # ClamAV
cd /home/$SUDO_USER
apt-get install -y hdparm clamav-daemon # cd /home/$SUDO_USER
# 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)
# You might want to run the commands below: # You might want to run the commands below:
systemctl stop clamav-freshclam.service # Stop the service
freshclam # Run the signatures update
systemctl start clamav-freshclam.service # Start the service so we keep getting the updates
service clamav-daemon start # systemctl stop clamav-freshclam.service # Stop the service
# freshclam # Run the signatures update
# systemctl start clamav-freshclam.service # Start the service so we keep getting the updates
# service clamav-daemon start
# Comodo # Comodo
wget https://download.comodo.com/cis/download/installs/linux/cav-linux_x64.deb wget https://download.comodo.com/cis/download/installs/linux/cav-linux_x64.deb
dpkg --ignore-depends=libssl0.9.8 -i cav-linux_x64.deb 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 Pandora workers # Configure Pandora 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"
su - $SUDO_USER -c "cd ~/pandora/pandora/workers; cp base.yml.sample base.yml" su - $SUDO_USER -c "cd ~/pandora/pandora/workers; cp base.yml.sample base.yml"
su - $SUDO_USER -c "cd ~/pandora/pandora/workers; cp blocklists.yml.sample blocklists.yml" su - $SUDO_USER -c "cd ~/pandora/pandora/workers; cp blocklists.yml.sample blocklists.yml"
su - $SUDO_USER -c "cd ~/pandora/pandora/workers; cp comodo.yml.sample comodo.yml" # su - $SUDO_USER -c "cd ~/pandora/pandora/workers; cp comodo.yml.sample comodo.yml"
su - $SUDO_USER -c "cd ~/pandora/pandora/workers; cp clamav.yml.sample clamav.yml" # su - $SUDO_USER -c "cd ~/pandora/pandora/workers; cp clamav.yml.sample clamav.yml"
su - $SUDO_USER -c "cd ~/pandora/pandora/workers; cp extractor.yml.sample extractor.yml" su - $SUDO_USER -c "cd ~/pandora/pandora/workers; cp extractor.yml.sample extractor.yml"
su - $SUDO_USER -c "cd ~/pandora/pandora/workers; cp hashlookup.yml.sample hashlookup.yml" su - $SUDO_USER -c "cd ~/pandora/pandora/workers; cp hashlookup.yml.sample hashlookup.yml"
su - $SUDO_USER -c "cd ~/pandora/pandora/workers; cp pdf.yml.sample pdf.yml" su - $SUDO_USER -c "cd ~/pandora/pandora/workers; cp pdf.yml.sample pdf.yml"
@ -260,7 +262,7 @@ su - $SUDO_USER -c "cp ~/pandora-box/pandora-box.ini.curses ~/pandora-box/pandor
echo "mesg n" >> /home/$SUDO_USER/.bashrc echo "mesg n" >> /home/$SUDO_USER/.bashrc
# Add path to Poetry # Add path to Poetry
echo "export PATH=\"$HOME/.local/bin:{$PATH}\"" >> /home/$SUDO_USER/.bashrc echo "export PATH=\"/home/$SUDO_USER/.local/bin:$PATH\"" >> /home/$SUDO_USER/.bashrc
# Exec pandora at login # Exec pandora at login
echo "exec pandora-box/pandora-box.py" >> /home/$SUDO_USER/.bashrc echo "exec pandora-box/pandora-box.py" >> /home/$SUDO_USER/.bashrc

View file

@ -896,7 +896,7 @@ def main(_):
print("main") print("main")
try: try:
# Wait for workers to start # Wait for workers to start
wait_for_workers()
# Enter the mail loop # Enter the mail loop
state = "START" state = "START"
while state != "STOP": while state != "STOP":