Skip to content

Mediaplayer setup

Hardware

Setup

  • Flash raspberry pi OS using rpi-imager (use stored config settings for user, hostname, locale, wifi setup etc.)
  • If not using rpi-imager configure manually:
    • Set hostname
      • Using hostnamectl (~/Howtos/systemd/hostnamectl.md)
      • or via Settings/Screen configuration menu entry
    • sudo raspi-conifg
      • Interface options
        • enable ssh

Hifiberry

Not needed because the mediaplayer uses audio via HDMI

Etc

  • Finish setup wizard

    • Display Options
      • Disable screen blankking
    • Performance options
      • GPU Mem: 256
  • apt update && apt upgrade
  • Run ansible

    bash cd ~/ansible/ varac ansible-playbook -l mediaplayer site.yml

  • reboot

Run ansible-playbook again (?)

Additional tasks

  • Turn off screen saver (Settings → Privacy → Screenlock)
  • Bigger fonts (Settings → Accessability)

Autostart in fullscreen mode

firefox-fullscreen.sh:

#!/bin/sh
firefox &
xdotool search --sync --onlyvisible --pid $! windowactivate key F11

~/.config/autostart/firefox.desktop:

[Desktop Entry]
Type=Application
Exec=/home/casita/firefox-fullscreen.sh
Hidden=false
NoDisplay=false
X-GNOME-Autostart-enabled=true
Name[en_US]=Firefox
Name=Firefox
Comment[en_US]=
Comment=