下载 noVnc
git clone https://github.com/novnc/noVNC.git
$ cd noVNC/
指定一台vnc Host (只能访问一台vnc host)
$ utils/launch.sh --vnc 192.168.8.131:5901
首次运行,会检测websockify, 如果没有websockify,则会自动下载到utils/下。
虚拟机 vnc host : 192.168.8.131:5901
浏览器输入:
http://192.168.8.131:6080/vnc.html?host=192.168.8.131&port=6080
或者:
http://192.168.8.131:6080/vnc_auto.html?path=websockify/?token=192.168.8.131:5901
访问多台 vnc host,编写配置文件
1 . 编辑配置文件 vnc_tokens
vim ./vnc_tokens
win-xp: 192.168.2.101:5901
ubuntu: 192.168.2.101:5903
2 . 启动 noVnc
utils/websockify/run --web ./ --target-config vnc_tokens 6080
3 . 连接
http://192.168.8.131:6080/vnc.html?host=192.168.8.131&port=6080
参考:
webvnc之novnc实战
多人远程桌面共享软件Real VNC – 支持Windows/Linux/Mac
Rea VNC——license Key