apt --no-install-recommends install novnc tigervnc-standalone-server
X/VNC server (no security):
Xtigervnc -geometry 1000x750 -desktop prova :100 -SecurityTypes None -localhost
X session/client:
DISPLAY=:100 xeyes
VNC viewer (default port is 5900 + screen number)
vncviewer localhost:6000
Export VNC port over websocket, and serve web page:
websockify --web /usr/share/novnc/ 6080 localhost:6000
Web page for viewer:
http://localhost:6080/vnc.html?host=localhost&port=6080&autoconnect=true
The source parsing the URL arguments is at /usr/share/novnc/include/ui.js:36
.service files implement a subset of systemd's unit files. All sections and
configurations that are not supported are silently ignored.
Currently ignored
These configurations are supported the same as in systemd:
SyslogIdentifierWorkingDirectoryExecStartPreExecStartPostExecStopExecStopPostKillSignalSendSIGKILLTimeoutSecTimeoutStopSec
These configurations are supported with some differences:
ExecStart: prefixes@,-,+are ignoredKillMode: valuescontrol-groupandmixedare treated the same asprocessUser,Group: can also take an environment variable prefixed by$, like$SUDO_UIDor$SUDO_GID
The Webrun section contains configuration directives that are specific to
webrun:
DisplayNumber(default: 4): display number to use for the X VNC serverDisplayGeometry(default:800x600): geometry of the X display where the application is runVNCPort(default: localhost:5900 + DisplayNumber):host:portto use for VNC communication.host:can be omitted and defaults tolocalhostWebPort(default: 6080):host:portto use for the http server / websocket server.host:can be omitted and defaults tolocalhostLogFile(default: standard error): write log output to the given fileWebConnectTimeout(default: no timeout): exit if there is no http server / websocket connection before this amount of seconds