2022-06-11 16:27:47 +02:00
Pandora-BOX
============
Pandorabox is a USB scaning station base on Pandora
2022-07-04 20:24:06 +02:00
Install
-------
Install Ubuntu 22.04 server LTS
select (x) Ubuntu Server (minumized)
Choose to install OpenSSH server
That's all, no other packages needed
After reboot, login with the user create during the install and type :
sudo apt install git
git clone https://github.com/dbarzin/pandora-box
cd pandora-box
sudo ./install.sh
=========================================================================
2022-06-11 16:01:39 +00:00
Mouse terminal
---------------
2022-06-12 20:37:49 +02:00
2022-06-11 16:01:39 +00:00
sudo apt install gpm
2022-06-28 14:29:46 +02:00
imagemagick
-----------
imagemagick for convert command
sudo apt install imagemagick
2022-06-11 18:25:10 +02:00
User mount device
2022-06-11 16:01:39 +00:00
---------------
2022-06-11 18:25:10 +02:00
2022-06-11 16:01:39 +00:00
sudo apt install pmount
2022-06-11 18:25:10 +02:00
Messages on console
-------------------
Suppress all messages from the kernel (and its drivers) except panic messages from appearing on the console.
2022-06-28 15:16:33 +02:00
echo "kernel.printk = 3 4 1 3" | sudo tee -a /etc/sysctl.conf
2022-06-11 18:25:10 +02:00
2022-06-11 16:27:47 +02:00
Python
------
2022-06-11 18:25:10 +02:00
2022-06-11 16:01:39 +00:00
pip install psutil pyudev
2022-06-11 16:27:47 +02:00
Progress Bar
------------
tqdm
Asii Art
--------
2022-06-13 22:01:47 +02:00
_Bloody Style_
2022-06-11 16:27:47 +02:00
██▓███ ▄▄▄ ███▄ █ ▓█████▄ ▒█████ ██▀███ ▄▄▄ ▄▄▄▄ ▒█████ ▒██ ██▒
▓██░ ██▒▒████▄ ██ ▀█ █ ▒██▀ ██▌▒██▒ ██▒▓██ ▒ ██▒▒████▄ ▓█████▄ ▒██▒ ██▒▒▒ █ █ ▒░
▓██░ ██▓▒▒██ ▀█▄ ▓██ ▀█ ██▒░██ █▌▒██░ ██▒▓██ ░▄█ ▒▒██ ▀█▄ ▒██▒ ▄██▒██░ ██▒░░ █ ░
▒██▄█▓▒ ▒░██▄▄▄▄██ ▓██▒ ▐▌██▒░▓█▄ ▌▒██ ██░▒██▀▀█▄ ░██▄▄▄▄██ ▒██░█▀ ▒██ ██░ ░ █ █ ▒
▒██▒ ░ ░ ▓█ ▓██▒▒██░ ▓██░░▒████▓ ░ ████▓▒░░██▓ ▒██▒ ▓█ ▓██▒ ░▓█ ▀█▓░ ████▓▒░▒██▒ ▒██▒
▒▓▒░ ░ ░ ▒▒ ▓▒█░░ ▒░ ▒ ▒ ▒▒▓ ▒ ░ ▒░▒░▒░ ░ ▒▓ ░▒▓░ ▒▒ ▓▒█░ ░▒▓███▀▒░ ▒░▒░▒░ ▒▒ ░ ░▓ ░
░▒ ░ ▒ ▒▒ ░░ ░░ ░ ▒░ ░ ▒ ▒ ░ ▒ ▒░ ░▒ ░ ▒░ ▒ ▒▒ ░ ▒░▒ ░ ░ ▒ ▒░ ░░ ░▒ ░
░░ ░ ▒ ░ ░ ░ ░ ░ ░ ░ ░ ░ ▒ ░░ ░ ░ ▒ ░ ░ ░ ░ ░ ▒ ░ ░
░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░
░ ░
2022-06-13 22:01:47 +02:00
https://patorjk.com/software/taag/#p =display& f=Bloody& t=Pandora-Box
2022-06-11 16:27:47 +02:00
2022-06-13 22:01:47 +02:00
_Flower Power_
.-------. ____ ,---. .--. ______ ,-----. .-------. ____ _______ ,-----. _____ __
\ _(`)_ \ .' __ `. | \ | || _ ` ''. .' .-, '. | _ _ \ .' __ `. \ ____ \ .' .-, '. \ _\ / /
| (_ o._)|/ ' \ \| , \ | || _ | ) _ \ / ,-.| \ _ \ | ( ' ) | / ' \ \| | \ | / ,-.| \ _ \ .-./ ). / '
| (_,_) /|___| / || |\_ \| ||( ''_' ) |; \ '_ / | :|(_ o _) / |___| / || |____/ / ; \ '_ / | : \ '_ .') .'
| '-.-' _.-` || _ ( )_\ || . (_) `. || _` ,/ \ _/ || (_,_).' __ _.-` || _ _ '. | _ `,/ \ _/ |(_ (_) _) '
| | .' _ || (_ o _) ||(_ ._) ': ( '\_/ \ ;| |\ \ | |.' _ || ( ' ) \: ( '\_ / \ ; / \ \
| | | _( )_ || (_,_)\ || (_.\.' / \ `"/ \ ) / | | \ ` ' /| _( )_ || (_{;}_) | \ `"/ \ ) / ` -'`-' \
/ ) \ (_ o _) /| | | || .' '. \_ /``".' | | \ / \ (_ o _) /| (_,_) / '. \_/` `".' / / \ \
`---' '.(_,_).' '--' '--''-----'` '-----' ''-' `'-' '.(_,_).' /_______.' '-----' '--' '----'
https://patorjk.com/software/taag/#p =display& f=Flower%20Power& t=PandoraBox
Little Devils
_ (`-') (` -') _ <-. (`-')_ _(`-') (`-') (`-') _ < -. ( `-') (` - ')
\-.(OO ) (OO ).-/ \( OO) )( (OO ).-> .-> < -. ( OO ) ( OO ). - / __ ( OO ) . - > (OO )_.->
_.' \ / ,---. ,--./ ,--/ \ .'_ (`-')----. ,------,) / ,---. '-'---.\ (` -')----. (_| \_)--.
(_...--'' | \ /`.\ | \ | | '` '-..__)( OO).-. '| /`. ' | \ /` .\ | .-. (/ ( OO).-. '\ `.' /
| |_.' | '-'|_.' || . '| |) | | ' |( _) | | || |_ .' | '-'|_.' | | '-' `.)( _) | | | \ .')
| .___.'(| .-. || |\ | | | / : \| |)| || . .'(| .-. | | /`'. | \| |)| | .' \
| | | | | || | \ | | '-' / ' '-' '| |\ \ | | | | | '--' / ' '-' '/ .'. \
`--' ` --' `--'` --' `--' ` ------' `-----' ` --' '--' `--' ` --' `------' ` -----'`--' '--'
https://patorjk.com/software/taag/#p =display& f=Lil%20Devil& t=Pandora%20Box
2022-06-11 16:27:47 +02:00
Screensaver
-----------
tty-clock -srt
2022-06-13 22:10:20 +02:00
Start
-----
Start ClamAV
sudo service clamav-daemon start
Start Pandora
cd pandora
poetry run start
2022-06-11 16:27:47 +02:00
2022-06-13 21:00:07 +00:00
Homepage
--------
2022-06-11 16:27:47 +02:00
2022-06-27 07:24:33 +02:00
convert -resize 1920x1080 -background black -gravity center -extent 1920x1080 image1.png bgra:/dev/fb0
2022-06-11 16:27:47 +02:00
2022-06-28 22:49:48 +02:00
AutoStart on console
--------------------
2022-06-27 07:24:33 +02:00
2022-07-04 20:24:06 +02:00
mkdir -p /etc/systemd/system/getty@tty1 .service.d
echo "[Service]" > /etc/systemd/system/getty@tty1 .service.d/override.conf
echo "ExecStart=" >> /etc/systemd/system/getty@tty1 .service.d/override.conf
echo "ExecStart=-su - pandora -c ./pandora-box/pandora-box.py" >> /etc/systemd/system/getty@tty1 .service.d/override.conf
echo "StandardInput=tty" >> /etc/systemd/system/getty@tty1 .service.d/override.conf
echo "StandardOutput=tty" >> /etc/systemd/system/getty@tty1 .service.d/override.conf
echo "Type=idle" >> /etc/systemd/system/getty@tty1 .service.d/override.conf
2022-06-27 07:24:33 +02:00
2022-06-30 10:32:30 +02:00
Restert getty1
sudo systemctl daemon-reload; sudo systemctl restart getty@tty1 .service
src: https://wiki.archlinux.org/title/Getty#Automatic_login_to_virtual_console
2022-06-27 07:24:33 +02:00
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.
2022-06-11 16:27:47 +02:00
2022-06-28 17:57:42 +02:00
Quarantine Folder
-----------------
mkdir /var/quarantine
chmod 0777 /var/quarantine
2022-06-28 22:49:48 +02:00
Move to pandora-box folder
---------------------------
abspath = os.path.abspath(__file__)
dname = os.path.dirname(abspath)
os.chdir(dname)