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:
- Reset pi user password
- SSH over Wifi built in is problematic https://www.raspberrypi.org/forums/viewtopic.php?f=28&t=138631
- Disable wlan power settings: https://discourse.osmc.tv/t/pi-3-wifi-unstable/14171/7
- sudo iwconfig wlan0 power off
- sudo iwconfig wlan0 power off to /etc/rc.local
- Turn of eth0: pluggy wrote:Turn off the eth0 in /etc/network/interfaces . Put a '#' in front of any line to do with eth0.
- 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
- Set Chromium to automatically launch
- sudo nano ~/.config/lxsession/LXDE/autostart
- Add: @chromium-browser --disable-session-crashed-bubble --restore-last-session --kiosk
- 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.
- Add these extensions to Chromium: Check out "Remove Scrollbars": https://chrome.google.com/webstore/detail/remove-scrollbars/lkfmjedfjkmfmckgcadelnfjebccjdcf?utm_source=gmailCheck out "Revolver - Tabs": https://chrome.google.com/webstore/detail/revolver-tabs/dlknooajieciikpedpldejhhijacnbda?utm_source=gmail
- Set Static IP address via MAC address and DHCP
- 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
- 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