Skip to content

Instantly share code, notes, and snippets.

@puzzeljp
Created July 18, 2024 08:47
Show Gist options
  • Save puzzeljp/0d9df5e71486f98d102c16e371930d97 to your computer and use it in GitHub Desktop.
Save puzzeljp/0d9df5e71486f98d102c16e371930d97 to your computer and use it in GitHub Desktop.
raspi-setup
#!/usr/bin/env bash
set -ex
sudo raspi-config nonint do_change_locale ja_JP.UTF-8
sudo apt update
sudo apt upgrade -y
sudo apt purge wolfram-engine scratch nuscratch sonic-pi idle3 smartsim java-common libreoffice* -y
sudo apt install matchbox-window-manager -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
cat <<EOS > ~/.config/lxsession/LXDE-pi/autostart
@xset s off
@xset -dpms
@xset s noblank
unclutter -idle 0
@matchbox-window-manager
@chromium-browser --noerrdialogs --disable-infobars --gpu --gpu-launcher --in-process-gpu --ignore-gpu-blacklist --ignore-gpu-blocklist --kiosk --enable-speech-dispatcher --incognito https://bit.ly/chompy240718
EOS
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment