Hallo zusammen,
ich habe ein kleines Problem und finde keine Lösung. Ich hoffe ihr könnt mir helfen, da ich schon einige Dinge ausprobiert habe und keinen Erfolg hatte.
Ich möchte, dass mein Raspi nach dem Booten den Bildbetrachter qiv automatisch startet und eine Slideshow zeigt.
Ich nutze Raspbian Stretch.
Ich habe folgendes versucht:
1. rc.local
Bash
#!/bin/sh -e
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.
#
/usr/bin/qiv -s -r -m -G -i -f /home/pi/bilder
exit 0
Alles anzeigen
wenn ich die rc.local über Kommandozeile aufrufe funktioniert es
2. cron
Code
# /etc/crontab: system-wide crontab
# Unlike any other crontab you don't have to run the `crontab'
# command to install the new version when you edit this file
# and files in /etc/cron.d. These files also have username fields,
# that none of the other crontabs do.
SHELL=/bin/sh
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
# m h dom mon dow user command
17 * * * * root cd / && run-parts --report /etc/cron.hourly
25 6 * * * root test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.daily )
47 6 * * 7 root test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.weekly )
52 6 1 * * root test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.monthly )
#
@reboot /usr/bin/qiv -s -r -m -G -i -f /home/pi/bilder
Alles anzeigen
und 3. /etc/xdg/lxsession/LXDE/autostart
Code
@lxpanel --profile LXDE
@pcmanfm --desktop --profile LXDE
@xscreensaver -no-splash
@qiv -s -r -m -G -i -f /home/pi/bilder
nichts von dem hat funktioniert. Kann mir jemand sagen, wo ich einen Fehler gemacht habe oder mir eine Alternative nennen?
Dankeschön