Skip to content

Instantly share code, notes, and snippets.

@ralphotowo
Last active July 5, 2018 11:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ralphotowo/1fd9701e431bbda0894d03434f38606f to your computer and use it in GitHub Desktop.
Save ralphotowo/1fd9701e431bbda0894d03434f38606f to your computer and use it in GitHub Desktop.
Raspberry Pi Auto-launch Video Loop
#!/bin/bash
sudo apt-get update && sudo apt-get install omxplayer -y
AUTOSTART_FILE=/home/pi/.config/lxsession/LXDE-pi/autostart
# echo "@point-rpi" >> $AUTOSTART_FILE
echo "@ScITE" >> $AUTOSTART_FILE
echo "@lxterminal -e omxplayer --loop --no-osd /home/pi/autostart.mp4" >> $AUTOSTART_FILE
wget -O /home/pi/autostart.mp4 http://mirrors.standaloneinstaller.com/video-sample/jellyfish-25-mbps-hd-hevc.mp4
sudo reboot
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment