sudo raspi-config
@xset s off @xset s noblank @xset -dpms
[SeatDefaults] xserver-command=X -s 0 -dpms
sudo apt install unclutter sudo vi /etc/xdg/lxsession/LXDE/autostart
以下を追記する
@unclutter -idle 0.1 -root
#!/bin/sh export DISPLAY=:0.0 sed -i 's/"exited_cleanly":false/"exited_cleanly":true/' ~/.config/chromium/Default/Preferences sed -i 's/"exit_type":"Crashed"/"exit_type":"None"/' ~/.config/chromium/Default/Preferences exec chromium-browser --check-for-update-interval=31536000 --noerrdialogs --disable-infobars --kiosk https://www.rcnp.osaka-u.ac.jp/~kohda/signage/signage4.html
@reboot sh /home/pi/script/LaunchBrowser.sh > /dev/null 2>&1
framebuffer_width=480 framebuffer_height=320 hdmi_force_hotplug=1 hdmi_group=2 hdmi_mode=87 hdmi_cvt=480 320 60 1 0 0 0
$ DISPLAY=:0.0 xrandr -s 480x320
sudo apt-get install apache2
sudo a2enmod userdir sudo systemctl restart apache2
/var/www/html/index.html
$ sudo apt-get purge wolfram-engine $ sudo apt-get purge sonic-pi $ sudo apt-get purge scratch $ sudo apt-get remove --purge libreoffice* $ sudo apt-get clean $ sudo apt-get autoremove
sudo apt update sudo apt full-upgrade -y sudo apt autoremove -y sudo apt clean sudo reboot
sudo chown kohda:kohda ./dir -Rとすれば良い。
DISPLAY=:0 aplay hoge.wavのように、DISPLAY=:0を付けないといけない。
sudo apt-get --purge remove vim-common vim-tiny sudo apt-get install vim
sudo apt install ttf-sazanami-gothic ttf-sazanami-mincho
33 #session optional pam_motd.so motd=/run/motd.dynamic