Skip to content

Instantly share code, notes, and snippets.

@miya0001
Last active January 7, 2022 19:28
Show Gist options
  • Save miya0001/3639688bbb3c464cbe1bb6f5b3e8e6e6 to your computer and use it in GitHub Desktop.
Save miya0001/3639688bbb3c464cbe1bb6f5b3e8e6e6 to your computer and use it in GitHub Desktop.
Raspberry Pi as a Kiosk
#!/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
@miya0001
Copy link
Author

miya0001 commented Jan 2, 2022

OS はデフォルトでインストールする

Raspberry_Pi_Imager_v1_6_2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment