-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
48 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
[Unit] | ||
Description=nodejs httpd for oeffimonitor | ||
After=network.target | ||
|
||
[Service] | ||
Type=simple | ||
ExecStart=/usr/local/bin/node httpd.js | ||
User=oeffimonitor | ||
Group=oeffimonitor | ||
WorkingDirectory=/srv/oeffimonitor/server | ||
StandardOutput=syslog | ||
StandardError=syslog | ||
Restart=always | ||
RestartSec=5 | ||
|
||
[Install] | ||
WantedBy=multi-user.target |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# systemd unit file for starting the X11 part of the oeffimonitor setup after the nodejs httpd is up | ||
[Unit] | ||
Description=oeffimonitor startx | ||
After=syslog.target network.target nodejs-httpd.service | ||
|
||
[Service] | ||
Type=simple | ||
ExecStart=/usr/bin/startx | ||
User=oeffimonitor | ||
Group=oeffimonitor | ||
StandardOutput=syslog | ||
StandardError=syslog | ||
Restart=always | ||
RestartSec=5 | ||
|
||
[Install] | ||
WantedBy=multi-user.target |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
#!/bin/sh | ||
|
||
# start a very simple window manager | ||
matchbox-window-manager & | ||
|
||
# hide mouse | ||
unclutter -idle 1 & | ||
xdotool mousemove 1280 1024 & | ||
|
||
# force the screen to never blank | ||
while :; do xset -dpms s off; sleep 20; done & | ||
|
||
# launch browser, restart X if it crashes | ||
midori -e Fullscreen -a 'http://localhost:8080/' |