How can I boot my raspberry pi 2 directly into displaying a graphical image? What needs to happen is once I plug it in it boots up and directly after it finishes it just displays an image without outside intervention. Is there a way to do this? Thanks in advance!
to execute commands "at boot", if autologin is enabled (since what it really does it execute them when the pi user logs in), i'd suggest editing the
autostart file wich is in the
just add these two lines at the end of the file:
@export DISPLAY=:0 @epiphany /path/to/your/file.png &
P.S. you need to have root permissions to edit
Note that there are many image viewers (e.g.
fbi) which can render images directly, without the need to start an X server and boot into a desktop environment. If you need to save boot time and SD card space, you can run
fbi -T 1 -a picture.jpg
at boot time as described here.