Last active
January 7, 2022 19:28
-
-
Save miya0001/3639688bbb3c464cbe1bb6f5b3e8e6e6 to your computer and use it in GitHub Desktop.
Raspberry Pi as a Kiosk
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 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 https://miya0001.github.io/map/ | |
EOS | |
# Installs the driver for 3.5inch RPi Display | |
# http://www.lcdwiki.com/3.5inch_RPi_Display | |
sudo rm -rf LCD-show | |
git clone https://github.com/goodtft/LCD-show.git && cd LCD-show/ && sudo ./LCD35-show 180 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
OS はデフォルトでインストールする