#StackBounty: #raspbian-stretch feh on startup…. sort of

Bounty: 50

I am having some problems with getting feh to load at startup. I’m new to Linux but have been in IT for years.. any help is much appreciated. I am running Raspbian Stretch. It’s a Pi 3.

I have a NAS and I have created the mounts in FStab so I mount a folder called pictures to /media. This works.
I then created a shell script and modified its permissions so it runs chmod 775 /startup.sh. The location of the startup.sh file is: /home/pi
My startup.sh script looks like this:

#!/bin/bash
sleep 30
bash feh -Y -x -q -D 5 -B black -F -Z -z -r /media/

I then added an entry to the autostart file located at
/home/pi/.config/lxsession/LXDE-pi.

The autostart now looks like:

@lxpanel --profile LXDE-pi
@pcmanfm --desktop --profile LXDE-pi
@xscreensaver -no-splash
@point-rpi
@epiphany /home/pi/startup.sh

I then rebooted the Pi… here’s the weird thing!
When I reboot my Pi, it opens a web browser and downloads the startup.sh file but it doesn’t seem to execute it.
I tried changing (within the autostartfile) @epiphany /home/pi/startup.sh to
@terminal /home/pi/startup.sh.

Nothing happens. Does that mean @epiphany is the program (webbrowser) it uses to open the script with? What else could I:
1. Install to use to execute the script or
2. Is there something like terminal I could use (I tried @bash) but it didn’t work either.

Here is the output of ls -al /home/pi/startup.sh:

$ ls -al /home/pi/startup.sh
-rwxr-xr-x 1 root root 78 Feb 28 19:27 /home/pi/startup.sh


Get this bounty!!!

Leave a Reply