Skip to content

Instantly share code, notes, and snippets.

@itapai
Last active April 28, 2022 07:39
Show Gist options
  • Select an option

  • Save itapai/72973097322de58e79e084d02e0d71d7 to your computer and use it in GitHub Desktop.

Select an option

Save itapai/72973097322de58e79e084d02e0d71d7 to your computer and use it in GitHub Desktop.
setup rpi-tv-looper-omx-bullsht
#!/bin/bash
[[ $EUID -ne 0 ]] && echo "This script must be run as root." && exit 1
apt install -y git vim fbi
# install omxplayer
curl -fsSL https://gist.githubusercontent.com/itapai/a18e58c04c5b67e936c8ad6fc374eb14/raw | bash
# switch to fake kms
sed -i 's/^dtoverlay=.*/dtoverlay=vc4-fkms-v3d/' /boot/config.txt
# play.sh
wget https://gist.githubusercontent.com/itapai/76cef4e3dd32d171e83f302f1fad8144/raw -O /opt/play.sh
chmod +x /opt/play.sh
# download black background
wget https://gamebay.fra1.cdn.digitaloceanspaces.com/assets/437977.jpg -O /opt/splash.jpg
# install services
wget https://gist.githubusercontent.com/itapai/d6b34dd5250867fd12258e51b3427e5b/raw -O /etc/systemd/system/splash-screen.service
wget https://gist.githubusercontent.com/itapai/fa51d72984cafa10532228cd35d87883/raw -O /etc/systemd/system/video-loop.service
systemctl daemon-reload
systemctl disable [email protected]
systemctl enable splash-screen.service
systemctl enable video-loop.service
reboot
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment