Last active
January 1, 2019 18:09
-
-
Save eladc/f3e3f7c3c5a4f105fbd90b28dd7a8fa5 to your computer and use it in GitHub Desktop.
Revisions
-
eladc renamed this gist
Jan 1, 2019 . 1 changed file with 2 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -47,4 +47,5 @@ chmod +x /home/kiosk/chk-xsv.sh echo "0 * * * * bash /home/kiosk/chk-xsv.sh" >> /var/spool/cron/crontabs/kiosk ## hide cursor sed -i 's/xserver.*/& -nocursor/' /usr/share/lightdm/lightdm.conf.d/50-xserver-command.conf -
eladc revised this gist
Dec 18, 2018 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -17,7 +17,7 @@ cat << EOF > /home/kiosk/beeper function getID() { ID=\$(xinput | grep Touch | cut -f2 -d= | awk '{print $1}' | sort -g | head -n1) } xinput test-xi2 --root \$ID \ -
eladc revised this gist
Dec 18, 2018 . 1 changed file with 21 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -17,7 +17,7 @@ cat << EOF > /home/kiosk/beeper function getID() { ID=\$(xinput | grep Touch | sort -g | head -n1 | cut -f2 -d= | awk '{print $1}') } xinput test-xi2 --root \$ID \ @@ -26,5 +26,25 @@ while read line;do getID; paplay /home/kiosk/pop.ogg ;done EOF ## restart beeper pkill -f beeper su -c /home/kiosk/beeper kiosk & ## fix xscreensaver cat << EOF > /home/kiosk/chk-xsv.sh #!/bin/bash PID=\$(ps aux | pgrep xscreensaver) if [ -z "\$PID" ];then /usr/share/xscreensaver/xscreensaver-wrapper.sh -nosplash & fi EOF chown kiosk:kiosk /home/kiosk/chk-xsv.sh chmod +x /home/kiosk/chk-xsv.sh echo "0 * * * * bash /home/kiosk/chk-xsv.sh" >> /var/spool/cron/crontabs/kiosk -
eladc revised this gist
Dec 17, 2018 . 1 changed file with 2 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -17,10 +17,10 @@ cat << EOF > /home/kiosk/beeper function getID() { ID=\$(xinput | grep Touch | sort -g | head -n1 | cut -f2 -d=) } xinput test-xi2 --root \$ID \ | grep --line-buffered "EVENT type 22 (RawTouchBegin)" | \ while read line;do getID; paplay /home/kiosk/pop.ogg ;done -
eladc revised this gist
Dec 15, 2018 . 1 changed file with 2 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -13,7 +13,7 @@ sed -i '$ d' /var/spool/cron/crontabs/root ## fix beeper cat << EOF > /home/kiosk/beeper #!/bin/bash function getID() { @@ -26,5 +26,5 @@ while read line;do getID; paplay /home/kiosk/pop.ogg ;done EOF pkill -f beeper su -c /home/kiosk/beeper kiosk & -
eladc revised this gist
Dec 15, 2018 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -27,4 +27,4 @@ while read line;do getID; paplay /home/kiosk/pop.ogg ;done EOF killall beeper su -c /home/kiosk/beeper kiosk & -
eladc revised this gist
Dec 15, 2018 . 1 changed file with 2 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -13,6 +13,8 @@ sed -i '$ d' /var/spool/cron/crontabs/root ## fix beeper cat << EOF > /home/kiosk/beeper #/!bin/bash function getID() { ID=$(xinput | grep Touch | sort -g | head -n1 | cut -f2 -d=) -
eladc revised this gist
Dec 15, 2018 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -2,7 +2,7 @@ ## update sudoers file sed -e 's#%sudo.*#&,NOPASSWD: /bin/systemctl#' /etc/sudoers > /tmp/sd ; > /etc/sudoers ; cat /tmp/sd | EDITOR='tee -a' visudo ## add a service restart in update script sed -i '/xf/a\ sudo systemctl restart cleanbox' /opt/cleanbox/update-new.sh -
eladc created this gist
Dec 15, 2018 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,28 @@ #!/bin/bash ## update sudoers file sed -e 's#%sudo.*#&,NOPASSWD /bin/systemctl#' /etc/sudoers > /tmp/sd ; > /etc/sudoers ; cat /tmp/sd | EDITOR='tee -a' visudo ## add a service restart in update script sed -i '/xf/a\ sudo systemctl restart cleanbox' /opt/cleanbox/update-new.sh ## remove service restart from root sed -i '$ d' /var/spool/cron/crontabs/root ## fix beeper cat << EOF > /home/kiosk/beeper function getID() { ID=$(xinput | grep Touch | sort -g | head -n1 | cut -f2 -d=) } xinput test-xi2 --root $ID \ | grep --line-buffered "EVENT type 22 (RawTouchBegin)" | \ while read line;do getID; paplay /home/kiosk/pop.ogg ;done EOF killall beeper bash /home/kiosk/beeper