Created
September 25, 2019 12:56
-
-
Save robbi5/f765e181c99c50a5dcce386c61f132c4 to your computer and use it in GitHub Desktop.
jiaōtōng Kiosk Mode
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Unit] | |
Description=Unclutter | |
[Service] | |
ExecStart=/usr/bin/unclutter -idle 0 | |
[Install] | |
WantedBy=default.target |
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
Put all these files into ~/.config/systemd/user/
Load the files with
systemctl --user daemon-reload
, then enable them withsystemctl --user enable {jiaotong,jiaotong-kiosk,unclutter}.service
.