: :
Previous slide
Next slide

Raspberry Pi Kiosk

This was done using a raspberry pi 4 8gb. Click here for an Amazon search.

 

Type This, followed by Enter after each line:

sudo su
apt update
apt upgrade -y
apt install xdotool -y
nano /etc/xdg/lxsession/LXDE-pi/autostart

Paste This:

@xset s off
@xset -dpms
@xset s noblank
sed -i 's/"exited_cleanly":false/"exited_cleanly":true/' ~/.config/chromium/'Local State'
sed -i 's/"exited_cleanly":false/"exited_cleanly":true/; s/"exit_type":"[^"]+"/"exit_type":"Normal"/' ~/.config/chromium/Default/Preferences
@chromium-browser --kiosk https://app.powerbi.com/links/dLcv3eb_jp?ctid=0de18311-713c-4cd5-8387-e150f01a95f9&pbi_source=linkShare&bookmarkGuid=cc61da26-0fce-4af5-8a>
@/home/pi/Desktop/xauth_root.sh
@/home/pi/Desktop/refresh.sh

Hit These Keys:

Ctrl + o

Ctrl + x

Type This, followed by Enter after each line:

nano /home/pi/Desktop/xauth_root.sh

Paste This:

#!/bin/bash

#
# source: https://raspberrypi.stackexchange.com/questions/1719/x11-connection-rejected-because-of-wrong-authentication
#
touch /root/.Xauthority
xauth merge /home/pi/.Xauthority
export XAUTHORITY=/root/.Xauthority

Hit These Keys:

Ctrl + o
Ctrl + x

Type This, followed by Enter after each line:

chmod 755 /home/pi/Desktop/xauth_root.sh
nano /home/pi/Desktop/refresh.sh

Paste This:

#!/bin/bash
#
# also see instructions here: https://www.raspberrypi.org/forums/viewtopic.php?t=178206#p1239241
#
# To make this run with sudo (which is the case when run at boot), execute "xauth_root.sh" before running this script.
#
# xdotools setup instructions found here: http://theembeddedlab.com/tutorials/simulate-keyboard-mouse-events-xdotool-ra>
#
# This will only set up the DISPLAY variable for one command
DISPLAY=:0 xdotool key "ctrl+F5"
# This will set up the DISPLAY variable for every command executed on this terminal,
# and child processes spawned from this terminal
export DISPLAY=:0
while true; #create an infinite loop
do
xdotool key "ctrl+F5" &
sleep 300 #refresh time in seconds so 300 = every 5 min
done

Hit These Keys:

Ctrl + o
Ctrl + x

Type This, followed by Enter after each line:

chmod 755 /home/pi/Desktop/refresh.sh

Facebook
Twitter
LinkedIn

Leave a Reply

Your email address will not be published. Required fields are marked *