how to do a picture frame with a Raspberry Pi

sudo apt-get install vim feh
vi /home/pi/.config/lxsession/LXDE-pi/autostart
@/home/pi/start-picture-frame.sh
@xset s off 
@xset -dpms
@xset s 0 0
@xset s noblank
@xset s noexpose
@xset dpms 0 0 0
echo "hdmi_blanking=1" >> /boot/config.txt
mkdir /home/pi/picframe
vi /home/pi/start-picture-frame.sh
  #!/bin/bash
  DISPLAY=:0.0 XAUTHORITY=/home/pi/.Xauthority /usr/bin/feh --quiet --recursive --preload --full-screen --auto-zoom --reload 60 --hide-pointer --slideshow-delay 10.0 /home/pi/picframe
chmod 755 /home/pi/start-picture-frame.sh
/home/pi/start-picture-frame.sh
sudo reboot

Terminate picture frame :

sudo pkill feh
sudo vi /etc/rc.local

Add before “exit 0” :

  sleep 10
  bash /home/pi/start-picture-frame.sh &