Skip to content

Instantly share code, notes, and snippets.

@robbi5
Created September 25, 2019 12:56
Show Gist options
  • Save robbi5/f765e181c99c50a5dcce386c61f132c4 to your computer and use it in GitHub Desktop.
Save robbi5/f765e181c99c50a5dcce386c61f132c4 to your computer and use it in GitHub Desktop.
jiaōtōng Kiosk Mode
[Unit]
Description=Jiaotong Kiosk
Requires=jiaotong.service
After=jiaotong.service
[Service]
WorkingDirectory=/home/pi
ExecStart=/usr/bin/chromium-browser --kiosk --no-first-run http://localhost:4200
[Install]
WantedBy=default.target
[Unit]
Description=Jiaotong Daemon
[Service]
WorkingDirectory=/home/pi/jiaotong
ExecStartPre=/usr/bin/npm run-script build
ExecStart=/usr/bin/npm run-script start
[Install]
WantedBy=default.target
[Unit]
Description=Unclutter
[Service]
ExecStart=/usr/bin/unclutter -idle 0
[Install]
WantedBy=default.target
@robbi5
Copy link
Author

robbi5 commented Sep 25, 2019

Put all these files into ~/.config/systemd/user/

Load the files with systemctl --user daemon-reload, then enable them with systemctl --user enable {jiaotong,jiaotong-kiosk,unclutter}.service.

@robbi5
Copy link
Author

robbi5 commented Sep 25, 2019

For disable screen sleep, edit /etc/lightdm/lightdm.conf and set xserver-command=X -s 0 dpms

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