centos7 下使用 noVNC

来源:互联网 发布:收购淘宝店铺骗局 编辑:程序博客网 时间:2024/06/06 10:56
  1. gitclone https://github.com/novnc/noVNC.git
  1. $ cd noVNC/
  2. 指定一台vnc Host :
  3. utils/launch.sh --vnc 192.168.8.131:5901 #首次运行,会检测websockify, 如果没有websockify,则会自动下载到utils/下。
  4. noVnc
  5. 如果虚拟机 vnc host : 192.168.8.131:5901
  6. 浏览器输入: http://192.168.8.131:6080/vnc.html?host=192.168.8.131&port=6080

  7. 或者: 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:5901ubuntu: 192.168.2.101:5903
  • 1
  • 2
  • 1
  • 2

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

这里写图片描述

这里写图片描述


原创粉丝点击