by CommanderData · 10y ago · 0 comments
For anyone interested heres a dirty bash script I had:
1. Auto Login & Disable Screen Blanking: http://www.raspberrypi.org/phpBB3/viewtopic.php?f=66&t=18200, http://elinux.org/RPi_Debian_Auto_Login
3. Adjust Overscan and force HDMI hotplug: nano /boot/config.txt disable_overscan hdmi_force_hotplug
4. Install Chromium, Matchbox, unclutter: sudo apt-get -y install unclutter matchbox chromium-browser
5. Add a start up script:
unclutter & xset -dpms xset s off
matchbox-window-manager & while true; do sudo rm -r /etc/chromium su -c "chromium-browser --kiosk --incognito http://localhost" -s /bin/sh pi done
The script logs in and starts x with matchbox (better performance than LXDE default), opens Chromium to localhost (nginx would show a page).
I remember I added a few other things to 'sed' replace Pi config files to display a mp4 splash screen I made in AE (it looked marvelous). At one point I had a front end that could manage Wifi and do some other basic tasks. Using PHP and Nginx. Shamefully hackey.
iceweasel "https://www.google.com"
...and installing something like https://addons.mozilla.org/en-us/firefox/addon/r-kiosk/Or, you can take advantage of this almost two years old bug related to full screen mode: https://bugzilla.mozilla.org/show_bug.cgi?id=1049807
It takes ~1 minute for my RPi2 to boot and start IceWeasel, but it gets the job done in the quickest way possible.
Though struggled getting Iceweasel to start in full screen from command line, afaik there no flags, one way was to close in fullscreen state or install a plugin. Further IW shows first run dialogs. Annoying if your deploying several Pis, then theres the cursor which unclutter package helps to solve. Lastly matchbox x uses less ram than LXDE which was important in my use case.
Chromium is better if you want to seamlessly deploy Pi's without spending too much time configuring them, theres a trade off somewhere - the official Chromiums package is old and IW is newer with less API.
You may want to consider wrapping your command inside the while loop in the script above. I added did this after I experienced IW and Chromiums unexpectedly closing sometimes. Helped alot.
This project does look interesting though. Last time I did this the Pi was a bit underpowered for some JavaScript heavy dashboards and the Wi-Fi was really flaky. Perhaps the Pi 3 has fixed these things but I haven't tried it.
[0] https://shutdownscanner.com/blog/posts/Raspberry-Pi-Digital-...
https://github.com/Lerc/notanos
There's a quick runthough in this video.
I was inspired by Firefox OS some time ago and found that I could access various parts of the filesystem via nodeJS. My plan is to run my node app and launch Electron fullscreen when the Pi boots.