Your Ad Here

Posted By

Pjotor on 07/16/11


Tagged

Kiosk


Versions (?)

kiosk.sh


 / Published in: Bash
 

URL: http://pjotor.com

Snipped from http://www.instructables.com/id/Setting-Up-Ubuntu-as-a-Kiosk-Web-Appliance/

For TinyCore you'll need

Chromium, Pearl and lxrandr

  1. #!/bin/bash
  2. cat ~/.config/chromium/Local\ State | perl -pe "s/\"bottom.*/\"bottom\": $(xrandr | grep \* | cut -d' ' -f4 | cut -d'x' -f2),/" > ~/.config/chromium/Local\ State
  3. cat ~/.config/chromium/Local\ State | perl -pe "s/\"right.*/\"right\": $(xrandr | grep \* | cut -d' ' -f4 | cut -d'x' -f1),/" > ~/.config/chromium/Local\ State
  4. while true; do chromium-browser $1 --kiosk --start-maximized; sleep 5s; done

Report this snippet  

You need to login to post a comment.