先說架構

LightDM
 └─ Xsession
     └─ XDG Autostart (*.desktop)
         └─ rpd-x / LXDE / Openbox

所以執行以下指令

mkdir -p ~/.config/autostart
nano ~/.config/autostart/chromium-kiosk.desktop

內容如下,請自行更改http://localhost:5000

[Desktop Entry]
Type=Application
Name=Chromium Kiosk
Exec=chromium --no-first-run --disable-session-crashed-bubble --disable-infobars --kiosk http://localhost:5000
X-GNOME-Autostart-enabled=true

如果怕你的網頁伺服器開比較久 可以做延遲 如下

Exec=sh -c "sleep 5; /usr/bin/chromium --kiosk http://localhost:5000"