服务端建议运行在Linux系统,被控端运行在Win下。
官方源码项目地址
git clone https://github.com/novnc/noVNC.git
git clone https://github.com/novnc/websockify.git
封装好的安装步骤:
1.安装Python3 环境
2.将noVNC、websockify解压到任意位置,例如:/www/soft/noVNC
测试运行:
打开浏览器访问,使用默认websocket地址
1.第一种,http://服务器IP:19813/vnc.html?path=websockify?token=目标电脑IP:5900
2.第二种,通过base64加密,http://服务器IP:19813/vnc.html?port=2114&host=服务器IP&token=MTkyLjE2OC4wLjIwNDo1OTAw # token 为Base64编码
开机启动设置:
编辑文件:/etc/rc.d/rc.local,加入内容,编辑好注意rc.local文件的运行权限。
被控端Win版本
项目官网:https://uvnc.com
二次开发:
1.多处WEB和JS操作都用到app/ui.js这文件
2.语言文件位于 app/locale/zh_CN.json
3.ultravnc.ini 文件参数说明 https://uvnc.com/docs/uvnc-server/69-ultravncini.html
4.隐藏托盘图标,修改ultravnc.ini文件中 DisableTrayIcon=1
5.winvnc 命令行参数说明: https://uvnc.com/docs/uvnc-server/51-ultravnc-server-commandline-parameters.html
命令行:
修改密码,setpassword.exe 123456 (新密码长度不能超过6位,操作后需要重启服务才生效)
其他命令行参数: