当前位置: 首页 > news >正文

[Linux]Ubuntu noVNC使用

又到了逛大型程序员交友 网站的时间了,今天你准备好了吗。
今天要推荐的一个有趣的项目是在这里插入图片描述noVNC
setup好以后是这个样子的,可以在浏览器登陆vnc,不需要再安装一个vnc client.
在这里插入图片描述
setup的过程比较简单,分为以下几步:

1. vncserver

novnc基于vncserver,所以需要先把vncserver的环境搭建好,最后的目标就是在命令行敲vncserver的时候他会提示在:1或者:5901创建成功。

sudo apt-get install tightvncserver

这里不展开,网上有大量的教程。

这里要注意记住设置的vncserver的password,下面会用到。

2. novnc

Use the novnc_proxy script to automatically download and start websockify, which includes a mini-webserver and the WebSockets proxy. The --vnc option is used to specify the location of a running VNC server:

git clone https://github.com/novnc/noVNC.git
cd noVNC
./utils/novnc_proxy --vnc localhost:5901 --listen localhost:6081

这时你应该可以看到这样的输出:

Using local websockify at /home/xxx/projects/noVNC/utils/websockify/run
Starting webserver and WebSockets proxy on host localhost port 6081
WebSocket server settings:- Listen on localhost:6081- Web server. Web root: /home/xxx/projects/noVNC- SSL/TLS support- proxying from localhost:6081 to localhost:5901Navigate to this URL:http://localhost:6081/vnc.html?host=localhost&port=6081Press Ctrl-C to exit

这时,把上面那个URL copy到浏览器里打开然后点connect输入你的vncserver密码就可以了,实际用下来和vnc client没啥差别。

http://www.lryc.cn/news/268539.html

相关文章:

  • CSRF和SSRF原理、区别、防御方法
  • 如何使用JMeter测试https请求
  • el-table 纵向垂直表头
  • python/pytorch读取数据集
  • IT安全:实时网络安全监控
  • SQL server使用profiler工具跟踪语句
  • python实现一维傅里叶变换——冈萨雷斯数字图像处理
  • 表单(HTML)
  • spripng 三级缓存,三级缓存的作用是什么? Spring 中哪些情况下,不能解决循环依赖问题有哪些
  • elasticsearch系列六:索引重建
  • GitOps实践指南:GitOps能为我们带来什么?
  • D3485国产芯片+5V工作电压, 内置失效保护电路采用SOP8封装
  • devops使用
  • AI训练师常用的ChatGPT通用提示词模板
  • Java加密算法工具类(AES、DES、MD5、RSA)
  • 探索Go语言的魅力:一门简洁高效的编程语言
  • 【用unity实现100个游戏之19】制作一个3D传送门游戏,实现类似鬼打墙,迷宫,镜子,任意门效果
  • DRF(Django Rest Framework)框架基于restAPI协议规范的知识点总结
  • Linux磁盘与文件系统管理
  • 数字魔法AI绘画的艺术奇迹-用Stable Diffusion挑战无限可能【文末送书-12】
  • 【docker实战】02 用docker安装mysql
  • 循环渲染ForEach
  • 纷享销客华为云:如何让企业多一个选择?
  • 前端实现断点续传文件
  • 复试 || 就业day01(2023.12.27)算法篇
  • JavaWeb——JQuery
  • Python教程:查询Py模块的版本号,有哪些方法?
  • 第一节 初始化项目
  • idea提示unable to import maven project
  • 【Spring】SpringBoot日志