videolooper-MasterImage-README
------------------------------
15.5.2024
------------------------------
contain:
#the basic image
https://downloads.raspberrypi.com/raspios_oldstable_lite_armhf/images/raspios_oldstable_lite_armhf-2022-01-28/2022-01-28-raspios-buster-armhf-lite.zip
#videolooper install
#!/bin/bash
sudo apt-get update
sudo apt-get install -y git
git clone https://github.com/adafruit/pi_video_looper.git
cd pi_video_looper
sudo ./install.sh
#smb install
#!/bin/bash
sudo apt-get update
sudo apt-get install samba samba-common smbclient
echo "sudo smbpasswd -a pi"
echo "sudo nano /etc/samba/smb.conf"
echo "sudo service smbd status"
#splash screen install
#HIDE splashscreen
sudo sh -c "echo 'disable_splash=1' >> /boot/config.txt"
#DISABLE WARNINGS:
sudo sh -c "echo 'avoid_warnings=1' >> /boot/config.txt"
#quiet boot
sudo sed -i -e 's/rootwait/rootwait quiet splash loglevel=0 consoleblank=0 logo.nologo vt.global_cursor_default=0 plymouth.ignore-serial-consoles /' /boot/cmdline.txt
#Tell dmesg to be quiet
sudo sed -i '/exit 0/i\#Suppress Kernel Messages\ndmesg --console-off\n' /etc/rc.local
#hide motd
touch ~/.hushlogin
#SILENT BOOT AND SPLASH
sudo systemctl disable getty@tty1
#install fbi
sudo apt install fbi
#splashscreen.service looks like this:
[Unit]
Description=Splashscreen
DefaultDependencies=no
After=local-fs.target
[Service]
ExecStart=/usr/bin/fbi -d /dev/fb0 --noverbose -a /home/pi/splash/splash.jpg
StandardInput=tty
StandardOutput=tty
[Install]
WantedBy=sysinit.target
#install splash screen service
sudo cp splashscreen.service /etc/systemd/system/splashscreen.service
#enable
sudo systemctl enable splashscreen
#GPIOs:
LED = PIN 9 und 13
BUTTON = PIN 11
#one shot playback: works only with a second (startup) video in the video folder
TRUE
#reload videolooper
sudo supervisorctl restart video_looper