I would start by following the guide in the link posted by karrika:
http://jamcnaughton.com/2014/09/05/simp ... or-ubuntu/
The basic steps are:
1.) Install
feh
2.) Install
xprintidle
Code: Select all
sudo apt-get install feh
sudo apt-get install xprintidle
3.) Save the
screensaver.sh bash file created by J.A.McNaughton in the same directory that your images are contained (or use screensaverwithlock.sh, but I didn't test this one). One way to do this is to simply copy the code text in the link, paste it into a text editor, and save it. Again, here is the link:
https://raw.githubusercontent.com/jamcn ... ensaver.sh
At this point, entering the following line into a terminal (with your file path and input argument time) should give you a basic slideshow screensaver that starts after [time] seconds of being idle:
Code: Select all
bash path/to/script/screensaver.sh time
I found that pressing escape will exit the slideshow.
The next step is to make it run on startup, and this is how I did it.
4.) Create a bash script that will execute your screensaver.sh script upon launching
startx. To do this, put the following in a text editor:
Code: Select all
#!/bin/sh
bash path/to/script/screensaver.sh time
Again, use your file directory and desired idle [time].
5.) Save this script in your
/home/pi/bin directory. If this directory doesn't already exist, then you need to create a folder called
bin in your
/home/pi directory. The user created ~/bin folder is by default in the path, so you should be able to call any scripts and executables in it (like our bash script) without changing your directory.
6.) Open the autostart text file in both the
/etc/xdg/lxsession/LXDE and
/etc/xdg/lxsession/LXDE-pi directories, and add a new line at the bottom with the name of the script file you created in step 5, preceeded by the @ symbol, and save. For example, I named my file "start-screensaver", so my autostart files now look like this:
Code: Select all
@lxpanel --profile LXDE
@pcmanfm --desktop --profile LXDE
@start-screensaver
Note: I'm pretty sure you only need to do it for one of the files, but I'm not sure which and doing both didn't seem to hurt.
It should now run your script, thus running the screensaver.sh script, upon launching
startx.
This has worked for me, but I should tell you that I'm new to Linux and have only had a Pi for a couple of days, so I'm sure there are better ways of doing this. I also can't guarantee that this will definitely work for you, but I hope it helps.