From 65159b3ac9a19c9d743f05ef7415e0a27cef6376 Mon Sep 17 00:00:00 2001 From: Michal Srb Date: Mon, 5 Mar 2018 16:05:52 +0100 Subject: [PATCH] Start websockify to serve the novnc client. This serves javascript based vnc client called "novnc" and proxies its websocket connections to TCP connection to the local Xvnc server. --- startup/common/vnc.sh | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/startup/common/vnc.sh b/startup/common/vnc.sh index 81dc4d70a..8a0cd45d5 100644 --- a/startup/common/vnc.sh +++ b/startup/common/vnc.sh @@ -82,12 +82,17 @@ startVNCServer () { -depth 16 \ -dpi 96 \ -rfbwait 120000 \ - -httpd /usr/share/vnc/classes \ -rfbport 5901 \ - -httpport 5801 \ -fp $Xfontdir/misc/,$Xfontdir/uni/,$Xfontdir/truetype/ \ >/var/log/YaST2/vncserver.log 2>&1 & xserver_pid=$! + + /usr/bin/websockify \ + --web /usr/share/novnc \ + 5801 \ + localhost:5901 + >/var/log/YaST2/websockify.log 2>&1 & + export DISPLAY=:0 export XCURSOR_CORE=1 }