###### ##### ## ##### ## ## ## #### ##### ## ## ###### ##### ## ##### ### ### ## ####### ##### ## ## ## ## ## ## ## ## ## ### ## ## ## ## #### ## #### ## ## ## ###### #### ## ## ## ## ## ## #### ## ### ## ## ## ## ##### ###### ##### ## ## ######## ##### ######## ## ##### ###### ##### ## ## ##### ##### #### # Televiseu is an experimental project to make a free hospitality # television service using a Raspberry Pi. Developed on a Raspberry # Pi 5 Model B Rev 1.1 with a 1080p@60Hz monitor. Based off of # "Setting up a Raspberry Pi as a Web Client Kiosk for TV Display" # from portalzine.de. # Start with a fresh install of the 64-bit "Raspberry Pi OS Lite", then # type: wget -O- https://www.televiseu.com/ | bash ##################################################################### # Quick reference # reboot # shutdown now # cat /sys/firmware/devicetree/base/model # sudo nano /boot/firmware/config.txt # Disable Power LED (Red) # dtparam=pwr_led_trigger=none # dtparam=pwr_led_activelow=off # Disable Activity LED (Green) # dtparam=act_led_trigger=none # dtparam=act_led_activelow=off # chromium --kiosk "https://www.movierama.org/" # To do # Automatically open webpage # Configure remote control # Configure arcade buttons # Surround sound output # Add CEC # Adjust volume ##################################################################### # Automatically log in to the console on boot sudo raspi-config nonint do_boot_behaviour B2 # Use Wayland #sudo raspi-config nonint do_wayland W2 # Update and install the latest software and remove unused software sudo apt-get -qq update sudo apt-get -qq upgrade sudo apt-get -qq autoremove # Install X Server, its utilities, the ability to manually start it, the ability to run applications outside of the full desktop environment, and a web browser sudo apt-get -qq install --no-install-recommends xserver-xorg x11-xserver-utils xinit openbox chromium #sudo apt-get -qq install --no-install-recommends lightdm labwc chromium # Configure Openbox, which allows running applications outside of the full desktop environment cat << EOF | sudo tee /etc/xdg/openbox/autostart ## Disable screen saver and power management xset s off xset s noblank xset -dpms ## Allow quitting X Server with CTRL-ALT-Backspace setxkbmap -option terminate:ctrl_alt_bksp ## Start Chromium in kiosk mode sed -i 's/"exited_cleanly":false/"exited_cleanly":true/' ~/.config/chromium/'Local State' sed -i 's/"exited_cleanly":false/"exited_cleanly":true/; s/"exit_type":"[^"]\+"/"exit_type":"Normal"/' ~/.config/chromium/Default/Preferences chromium --disable-infobars --kiosk --autoplay-policy=no-user-gesture-required "https://www.televiseu.com/demo/" EOF # Configure X to start on boot cat << EOF | sudo tee ~/.bash_profile if [ -z \$DISPLAY ] && [ \$(tty) = /dev/tty1 ] then startx -- -nocursor fi EOF # Configure Wayland to start on boot #cat << EOF | sudo tee ~/.config/wayfire.ini #[core] #plugins = autostart #[autostart] #screensaver = false #dpms = false #EOF # Reboot to implement changes reboot