Skip to content

Commit

Permalink
Start websockify to serve the novnc client.
Browse files Browse the repository at this point in the history
This serves javascript based vnc client called "novnc" and proxies its
websocket connections to TCP connection to the local Xvnc server.
  • Loading branch information
Michal Srb authored and mvidner committed Apr 6, 2018
1 parent f07959c commit 65159b3
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions startup/common/vnc.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

0 comments on commit 65159b3

Please sign in to comment.