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

work in progress

This commit is contained in:
dbarzin 2022-06-30 10:32:30 +02:00
parent a30aa59b19
commit 540f912c62
3 changed files with 15 additions and 4 deletions

View file

@ -116,9 +116,14 @@ ExecStart=
ExecStart=-su - didier -c ./pandora-box/pandora-box.py
StandardInput=tty
StandardOutput=tty
Type=idle
https://wiki.archlinux.org/title/Getty#Automatic_login_to_virtual_console
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.

View file

@ -1,4 +1,6 @@
#/usr/bin/bash -e
# Install procedure for Pandora-Box
set -e
cd ..
@ -83,7 +85,7 @@ sudo mkdir /var/quarantine
sudo chown $USER /var/quarantine
# Mouse terminal
sudo apt install gpm imagemagick pmount
sudo apt install imagemagick pmount
# 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
@ -91,6 +93,10 @@ echo "kernel.printk = 3 4 1 3" | sudo tee -a /etc/sysctl.conf
# allow write to /dev/fb0
sudo usermod -a -G video $USER
# allow read mouse input
sudo usermod -a -G input $USER
# Start Poetry
echo "cd /home/$USER/pandora" >> /etc/rc.local
echo "poetry run update --yes" >> /etc/rc.local

View file

@ -1,12 +1,12 @@
#!/usr/bin/python3
mouse = open( "/dev/input/mice", "rb" )
def waitMouseClick():
mouse = open( "/dev/input/mice", "rb" )
while True:
buf = mouse.read(3)
if ((buf[0] & 0x1)==1):
break;
close(mouse)
waitMouseClick()