This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
while true; do | |
for f in $1/*.mp4; do | |
omxplayer -o local $f >/dev/null | |
done | |
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Unit] | |
Description=Video loop | |
After=local-fs.target | |
[Service] | |
ExecStartPre=/bin/mkdir -p /media/videos | |
ExecStart=/opt/play.sh /media/videos | |
[Install] | |
WantedBy=multi-user.target |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Unit] | |
Description=Splash screen | |
DefaultDependencies=no | |
After=local-fs.target | |
[Service] | |
ExecStart=/usr/bin/fbi --noverbose -a /opt/splash.jpg | |
StandardInput=tty | |
StandardOutput=tty |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
[[ $EUID -ne 0 ]] && echo "This script must be run as root." && exit 1 | |
wget -P /tmp https://archive.raspberrypi.org/debian/pool/main/o/omxplayer/omxplayer_20190723+gitf543a0d-1+bullseye_armhf.deb | |
dpkg -i /tmp/omxplayer_20190723+gitf543a0d-1+bullseye_armhf.deb | |
apt install -y --fix-broken | |
cd /usr/lib/arm-linux-gnueabihf | |
ln -s libmmal_core.so.0 libmmal_core.so |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
qemu-img create -f qcow2 /var/lib/libvirt/vms/win-server-2019.iso 50G | |
virt-install \ | |
--name=win-server-2019 \ | |
--os-type=windows \ | |
--memory=4096 \ | |
--cpu=host \ | |
--vcpus=2 \ |