Sunday, June 19, 2016

Running Digital Signage on a Raspberry Pi 3 over WiFi through a web browser

Note: I am not sure there is a memory leak with Chromium in kiosk mode. I am testing that now. I have had the pi lock up. I have been experimenting with Firefox but launching from autostart isn’t as fully featured.

Also, I am conceiving of a Pi running over WiFi that can take a power outage an recover automatically.

Steps:
  1. Reset pi user password
  2. Turn of eth0: pluggy wrote:Turn off the eth0 in /etc/network/interfaces . Put a '#' in front of any line to do with eth0.
  3. Keep Screen awake from blanking
CODE: SELECT ALL
sudo nano ~/.config/lxsession/LXDE-pi/autostart
add:
CODE: SELECT ALL
@xset s 0 0
@xset s noblank
@xset s noexpose
@xset dpms 0 0 0

Select All (from above code), then right click 'copy', then in '/autostart', 'paste' so it looks like this:
@lxpanel --profile LXDE-pi
@pcmanfm --desktop --profile LXDE-pi
@xscreensaver -no-splash
@xset s 0 0
@xset s noblank
@xset s noexpose
@xset dpms 0 0 0


save with 'Ctrl' + 'x' key, then 'y', then 'enter'
then:
CODE: SELECT ALL
sudo reboot


  1. Set Chromium to automatically launch
  2. Set Static IP address via MAC address and DHCP
  3. Setup cron job to restart at certain time
    • sudo crontab -e
    • Add this line (here reboots at 11:51pm every night)
    • 51 23 * * * /sbin/reboot -n
  4. Setup VNC viewer
How to setup remote desktop VNC viewer


steps:
install and set password
- sudo apt-get install x11vnc
- x11vnc -storepasswd


create autostart entry


- cd .config
- mkdir autostart
- cd autostart
- nano x11vnc.desktop
- paste following text:


[Desktop Entry]
Encoding=UTF-8
Type=Application
Name=X11VNC
Comment=
Exec=x11vnc -forever -usepw -display :0 -ultrafilexfer
StartupNotify=false
Terminal=false
Hidden=false


- save and exit (Ctrl-X, Y, <Enter>)


This start x11vnc when lxde starts





Update: distributing ERB Secure Browser on Mojave

Mojave introduces some security enhancements that mess up the distribution of the ERB secure browser (the "App").  First, than...