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

documentation

This commit is contained in:
dbarzin 2022-07-04 20:49:16 +02:00
parent f7921b097b
commit 3c7f022b3b
7 changed files with 7 additions and 153 deletions

View file

@ -1,17 +1,11 @@
Pandora-BOX Pandora-BOX
============ ============
Pandorabox is a USB scaning station base on Pandora
Install
-------
Install Ubuntu 22.04 server LTS Install Ubuntu 22.04 server LTS
select (x) Ubuntu Server (minumized) select (x) Ubuntu Server (minumized)
Choose to install OpenSSH server Choose to "install OpenSSH server"
That's all, no other packages needed That's all, no other packages needed
@ -23,148 +17,3 @@ After reboot, login with the user create during the install and type :
sudo ./install.sh sudo ./install.sh
=========================================================================
Mouse terminal
---------------
sudo apt install gpm
imagemagick
-----------
imagemagick for convert command
sudo apt install imagemagick
User mount device
---------------
sudo apt install pmount
Messages on console
-------------------
Suppress all messages from the kernel (and its drivers) except panic messages from appearing on the console.
echo "kernel.printk = 3 4 1 3" | sudo tee -a /etc/sysctl.conf
Python
------
pip install psutil pyudev
Progress Bar
------------
tqdm
Asii Art
--------
_Bloody Style_
██▓███ ▄▄▄ ███▄ █ ▓█████▄ ▒█████ ██▀███ ▄▄▄ ▄▄▄▄ ▒█████ ▒██ ██▒
▓██░ ██▒▒████▄ ██ ▀█ █ ▒██▀ ██▌▒██▒ ██▒▓██ ▒ ██▒▒████▄ ▓█████▄ ▒██▒ ██▒▒▒ █ █ ▒░
▓██░ ██▓▒▒██ ▀█▄ ▓██ ▀█ ██▒░██ █▌▒██░ ██▒▓██ ░▄█ ▒▒██ ▀█▄ ▒██▒ ▄██▒██░ ██▒░░ █ ░
▒██▄█▓▒ ▒░██▄▄▄▄██ ▓██▒ ▐▌██▒░▓█▄ ▌▒██ ██░▒██▀▀█▄ ░██▄▄▄▄██ ▒██░█▀ ▒██ ██░ ░ █ █ ▒
▒██▒ ░ ░ ▓█ ▓██▒▒██░ ▓██░░▒████▓ ░ ████▓▒░░██▓ ▒██▒ ▓█ ▓██▒ ░▓█ ▀█▓░ ████▓▒░▒██▒ ▒██▒
▒▓▒░ ░ ░ ▒▒ ▓▒█░░ ▒░ ▒ ▒ ▒▒▓ ▒ ░ ▒░▒░▒░ ░ ▒▓ ░▒▓░ ▒▒ ▓▒█░ ░▒▓███▀▒░ ▒░▒░▒░ ▒▒ ░ ░▓ ░
░▒ ░ ▒ ▒▒ ░░ ░░ ░ ▒░ ░ ▒ ▒ ░ ▒ ▒░ ░▒ ░ ▒░ ▒ ▒▒ ░ ▒░▒ ░ ░ ▒ ▒░ ░░ ░▒ ░
░░ ░ ▒ ░ ░ ░ ░ ░ ░ ░ ░ ░ ▒ ░░ ░ ░ ▒ ░ ░ ░ ░ ░ ▒ ░ ░
░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░
░ ░
https://patorjk.com/software/taag/#p=display&f=Bloody&t=Pandora-Box
_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
Screensaver
-----------
tty-clock -srt
Start
-----
Start ClamAV
sudo service clamav-daemon start
Start Pandora
cd pandora
poetry run start
Homepage
--------
convert -resize 1920x1080 -background black -gravity center -extent 1920x1080 image1.png bgra:/dev/fb0
AutoStart on console
--------------------
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
Restert getty1
sudo systemctl daemon-reload; sudo systemctl restart getty@tty1.service
src: 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
Move to pandora-box folder
---------------------------
abspath = os.path.abspath(__file__)
dname = os.path.dirname(abspath)
os.chdir(dname)

View file

@ -3,7 +3,12 @@ Pandora-box
Pandora-Box is a USB scaning station based on [Pandora](https://github.com/pandora-analysis). Pandora-Box is a USB scaning station based on [Pandora](https://github.com/pandora-analysis).
It is based on recycled ThinkCenter and an integrated HDMI touch screen.
[<img src="" width="400">](images/box1.jpg)
[<img src="" width="400">](images/box2.jpg)
[<img src="" width="400">](images/box3.jpg)
[<img src="" width="400">](images/box4.jpg)

BIN
images/box1.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 117 KiB

BIN
images/box2.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 164 KiB

BIN
images/box3.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 176 KiB

BIN
images/box4.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 133 KiB

BIN
images/box4.jpg~ Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 159 KiB