How to setup image slideshow kiosk on Raspbian

1. Configure autologin

sudo raspi-config -> 1 System options -> S5 Boot / auto-login -> Set to B2 Console Autologin

2. Use our script to configure the kiosk

sudo apt -y install xserver-xorg xinit x11-xserver-utils matchbox-window-manager xautomation unclutter feh
mkdir -p ~/kiosk-images

sudo cat >~/ <<EOF
xset -dpms
xset s off
xset s noblank
matchbox-window-manager -use_titlebar no &
unclutter &
feh -Y -x -q -D 5 -B black -F -Z -z -r ~/kiosk-images
chmod a+x ~/

sudo cat >>~/.bashrc <<EOF
# Kiosk xinit
xinit ~/ -- vt$(fgconsole)

3. Place images in ~/kiosk-images

e.g. via scp or rsync

4. Reboot

sudo reboot **Note:**When logging in using SSH, the .bashrc hack (found originally at reelyactive) will cause xinit to run, with the message

/usr/lib/xorg/Xorg.wrap: Only console users are allowed to run the X server

appearing on screen and the console not opening. In that case, just type Ctrl+C to stop xinit and see the normal shell.