Raspberry Pi起動時にChromiumを自動起動させる方法 – Qiita

launch.sh

/usr/bin/chromium-browser --noerrdialogs --disable-infobars --kiosk ____URL____

_URL_ここに自動で開きたいURLを書く

$ mkdir -p ~/.config/lxsession/LXDE-pi
$ cp /and so on/xdg/lxsession/LXDE-pi/autostart ~/.config/lxsession/LXDE-pi/autostart
$ nano ~/.config/lxsession/LXDE-pi/autostart

※[~/.config/lxsession/LXDE-pi/autostart] が [/etc/xdg/lxsession/LXDE-pi/autostart] の代わりに実行されます。

@lxpanel --profile LXDE-pi
@pcmanfm --desktop --profile LXDE-pi
@xscreensaver -no-splash
bash /residence/pi/launch.sh
$ nano ~/.config/lxsession/LXDE-pi/autostart

autostart

@xset s 0 0
@xset s noblank
@xset s noexpose
@xset dpms 0 0 0

「Alt + F4」キーでブラウザを終了

– Raspberry pi 4 8G
– Raspberry Pi OS(2021-05-07-raspios-buster-armhf.img)
http://downloads.raspberrypi.org



Source link

Leave a Reply

Your email address will not be published. Required fields are marked *