261
edits
(Updated article, renamed Simple Display 1 to Display 1. Added Display 2 section that gives NOVNC section for remote management.) |
|||
Line 180: | Line 180: | ||
===== /etc/xdg/openbox/autostart ===== | ===== /etc/xdg/openbox/autostart ===== | ||
Replace the contents of this file with the following: | Replace the contents of this file with the following: | ||
Note: change <URL TO VISIT> to webserver URL you want to display. | |||
<syntaxhighlight lang="bash"> | <syntaxhighlight lang="bash"> | ||
# | # | ||
Line 200: | Line 203: | ||
#Start x0vncserver and serve up VNC on port localhost:5900 | #Start x0vncserver and serve up VNC on port localhost:5900 | ||
/usr/bin/x0vncserver -passwordfile /home/ | /usr/bin/x0vncserver -passwordfile /home/kiosk/.vnc/passwd -display :0 | ||
# If you want to use XFCE config tools... | # If you want to use XFCE config tools... | ||
Line 214: | Line 217: | ||
#Start websockify to proxy novnc to port 6080 using self-signed SSL cert and vnc on localhost:5900 | #Start websockify to proxy novnc to port 6080 using self-signed SSL cert and vnc on localhost:5900 | ||
/usr/bin/websockify -D --web=/usr/share/novnc/ --cert=/home/ | /usr/bin/websockify -D --web=/usr/share/novnc/ --cert=/home/kiosk/novnc.pem --ssl-only 6080 localhost:5900 | ||
#Start OSDSH | #Start OSDSH | ||
Line 264: | Line 267: | ||
done | done | ||
</syntaxhighlight> | </syntaxhighlight> | ||
===== Generate SSL certificate ===== | ===== Generate SSL certificate ===== | ||
* Navigate to the /home/kiosk user directory | * Navigate to the /home/kiosk user directory |