mirror of
https://github.com/dbarzin/pandora-box.git
synced 2025-07-19 13:29:42 +02:00
work in progress
This commit is contained in:
parent
a30aa59b19
commit
540f912c62
3 changed files with 15 additions and 4 deletions
|
@ -116,9 +116,14 @@ ExecStart=
|
||||||
ExecStart=-su - didier -c ./pandora-box/pandora-box.py
|
ExecStart=-su - didier -c ./pandora-box/pandora-box.py
|
||||||
StandardInput=tty
|
StandardInput=tty
|
||||||
StandardOutput=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.
|
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.
|
||||||
|
|
|
@ -1,4 +1,6 @@
|
||||||
#/usr/bin/bash -e
|
#/usr/bin/bash -e
|
||||||
|
# Install procedure for Pandora-Box
|
||||||
|
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
cd ..
|
cd ..
|
||||||
|
@ -83,7 +85,7 @@ sudo mkdir /var/quarantine
|
||||||
sudo chown $USER /var/quarantine
|
sudo chown $USER /var/quarantine
|
||||||
|
|
||||||
# Mouse terminal
|
# 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.
|
# 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
|
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
|
# allow write to /dev/fb0
|
||||||
sudo usermod -a -G video $USER
|
sudo usermod -a -G video $USER
|
||||||
|
|
||||||
|
# allow read mouse input
|
||||||
|
sudo usermod -a -G input $USER
|
||||||
|
|
||||||
|
|
||||||
# Start Poetry
|
# Start Poetry
|
||||||
echo "cd /home/$USER/pandora" >> /etc/rc.local
|
echo "cd /home/$USER/pandora" >> /etc/rc.local
|
||||||
echo "poetry run update --yes" >> /etc/rc.local
|
echo "poetry run update --yes" >> /etc/rc.local
|
||||||
|
|
|
@ -1,12 +1,12 @@
|
||||||
#!/usr/bin/python3
|
#!/usr/bin/python3
|
||||||
|
|
||||||
mouse = open( "/dev/input/mice", "rb" )
|
|
||||||
|
|
||||||
def waitMouseClick():
|
def waitMouseClick():
|
||||||
|
mouse = open( "/dev/input/mice", "rb" )
|
||||||
while True:
|
while True:
|
||||||
buf = mouse.read(3)
|
buf = mouse.read(3)
|
||||||
if ((buf[0] & 0x1)==1):
|
if ((buf[0] & 0x1)==1):
|
||||||
break;
|
break;
|
||||||
|
close(mouse)
|
||||||
|
|
||||||
waitMouseClick()
|
waitMouseClick()
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue