From 417c3c7998ceca1f7ce57c3b4ea61ed34e323189 Mon Sep 17 00:00:00 2001 From: dbarzin Date: Tue, 28 Jun 2022 17:57:42 +0200 Subject: [PATCH] work in progress --- INSTALL.md | 10 +++++++++- images/images.py | 6 +++--- pandora-box.ini | 9 ++++++--- 3 files changed, 18 insertions(+), 7 deletions(-) diff --git a/INSTALL.md b/INSTALL.md index 3af9e89..a7d4bdd 100644 --- a/INSTALL.md +++ b/INSTALL.md @@ -106,7 +106,7 @@ Homepage convert -resize 1920x1080 -background black -gravity center -extent 1920x1080 image1.png bgra:/dev/fb0 -AUtoLogin +AutoLogin --------- @@ -123,3 +123,11 @@ https://wiki.archlinux.org/title/Getty#Automatic_login_to_virtual_console The option Type=idle found in the default getty@.service will delay the service startup until all jobs are completed in order to avoid polluting the login prompt with boot-up messages. + +Quarantine Folder +----------------- + +mkdir /var/quarantine +chmod 0777 /var/quarantine + + diff --git a/images/images.py b/images/images.py index 7b11e37..2064b54 100755 --- a/images/images.py +++ b/images/images.py @@ -5,13 +5,13 @@ import os import time -format = "1020x600" -#format = "1920x1080" +size = "1020x600" +#size = "1920x1080" images = ["pandora-box1.png", "pandora-box2.png", "pandora-box3.png", "pandora-box4.png"] for image in images : - os.system("convert -resize %s -background black -gravity center -extent %s %s bgra:/dev/fb0" % (format,format,image)) + os.system("convert -resize %s -background black -gravity center -extent %s %s bgra:/dev/fb0" % (size, size, image)) time.sleep(1) os.system("reset") diff --git a/pandora-box.ini b/pandora-box.ini index 76baa1e..2a1584e 100644 --- a/pandora-box.ini +++ b/pandora-box.ini @@ -1,8 +1,10 @@ [DEFAULT] - ; Curses mode (full text) CURSES = False +; Screen size +SCREEN_SIZE = "1020x600" + ; Set USB_AUTO_MOUNT to true is if the OS mount automaticaly mount USB keys USB_AUTO_MOUNT = True @@ -10,7 +12,7 @@ USB_AUTO_MOUNT = True ; 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 +; 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 @@ -18,4 +20,5 @@ FAKE_SCAN = False QUARANTINE = True ; Set quarantine folder -QUARANTINE_FOLDER = /tmp +QUARANTINE_FOLDER = /var/quarantine +