Created
February 12, 2022 08:20
-
-
Save miya0001/81396959e91c766c25c6a2657b19c178 to your computer and use it in GitHub Desktop.
setup Raspberry Pi as Kosk
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 | |
set -ex | |
sudo apt update | |
sudo apt upgrade -y | |
sudo apt purge wolfram-engine scratch nuscratch sonic-pi idle3 -y | |
sudo apt purge smartsim java-common libreoffice* -y | |
sudo apt install unclutter -y | |
sudo apt clean | |
sudo apt autoremove -y | |
sudo rm -f /etc/xdg/lxsession/LXDE-pi/sshpwd.sh | |
mkdir -p ~/.config/lxsession/LXDE-pi | |
mkdir -p ~/.config/openbox | |
echo "@openbox-session" > ~/.config/lxsession/LXDE-pi/autostart | |
cat <<EOS > ~/.config/openbox/autostart | |
xset -dpms & # Disable DPMS (Energy Star) features | |
xset s off & # Disable screensaver | |
xset s noblank & # Don't blank video device | |
unclutter -idle 0 & | |
chromium-browser --noerrdialogs --disable-infobars --kiosk https://get.webgl.org/ | |
EOS |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment