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!
Asked
Active
Viewed 1,062 times
2 Answers
2
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 ~/.config/lxsession/LXDE-pi/
directory.
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 autostart

Liam
- 661
- 2
- 9
- 20
1
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.

Dmitry Grigoryev
- 27,928
- 6
- 53
- 144
disk image
, but rather a picture. – Bex Mar 22 '17 at 13:34