首页 > 编程知识 正文

novnc 安卓,ubuntu安装novnc

时间:2023-05-05 17:51:35 阅读:269653 作者:2543

novnc使用方法
一,安装vncserver
第一种vncserver
$sudo apt-get install tightvncserver  //tightvncserver是可以访问命令行
$vncserver :1
(记住输入的密码,登陆用)


第二种vncserver
$sudo apt-get install x11vnc
$x11vnc -forever -display :0


二,安装novnc
$sudo apt-get install git
$git clone https://github.com/kanaka/noVNC
$cd noVNC
$./utils/launch.sh --vnc localhost:5901


然后打开:http://localhost:6080/vnc.html,输入host和密码(host为localhost的IP,密码为vncserver的密码,端口为6080)


三,高级设置
1,修改6080默认端口
$./utils/websockify --web ./ 8787 localhost:5901


2,可以讲localhost改成所有安装了vncserver的IP地址,例如:
$./utils/飞艇如何买前5后5r> $./utils/launch.sh --vnc localhost:5901


然后打开:http://localhost:6080/vnc.html,输入host和密码(host为localhost的IP,密码为vncserver的密码,端口为6080)


三,高级设置
1,修改6080默认端口
$./utils/websockify --web ./ 8787 localhost:5901


2,可以讲localhost改成所有安装了vncserver的IP地址,例如:
$./utils/websockify --web ./ 8787 192.168.1.10:5901


四,注意
1,vncserver的默认端口一般为5900或5901,具体端口看vncserver安装后给出的端口,比如x11vnc可能为5902

下面是Openstack官网给出的novnc的整个过程




参考资料:
介绍,https://github.com/kanaka/noVNC/blob/master/README.md
高级设置,https://github.com/kanaka/noVNC/wiki/Advanced-usage

版权声明:该文观点仅代表作者本人。处理文章:请发送邮件至 三1五14八八95#扣扣.com 举报,一经查实,本站将立刻删除。