[Linux]Ubuntu noVNC使用

又到了逛大型程序员交友 网站的时间了,今天你准备好了吗。

今天要推荐的一个有趣的项目是noVNC

setup好以后是这个样子的,可以在浏览器登陆vnc,不需要再安装一个vnc client.

setup的过程比较简单,分为以下几步:

1. vncserver

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

shell 复制代码
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:

shell 复制代码
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:5901


Navigate to this URL:

    http://localhost:6081/vnc.html?host=localhost&port=6081

Press Ctrl-C to exit

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

相关推荐
梁洪飞2 分钟前
通过链接文件和Start.S学习armv7
linux·arm开发·嵌入式硬件·学习·arm
DN金猿13 分钟前
使用ubuntu安装nginx时报错
linux·nginx·ubuntu
小赵还有头发34 分钟前
安装Ceres与glog
linux·学习·无人机·ceres·glog
负二代0.01 小时前
Linux下的网络管理
linux·网络
有毒的教程1 小时前
SaltStack 开源自动化运维工具详细介绍
运维·开源·saltstack
s_daqing1 小时前
ubuntu(arm)安装redis
linux·redis·ubuntu
大房身镇、王师傅2 小时前
【VirtualBox】VirtualBox 7.1.6 RockyLinux10 配置增强功能 设置共享目录
运维·服务器·virtualbox·rockylinux10
林鸿群2 小时前
ubuntu 26.04 安装mysql-server
linux·mysql·ubuntu
betazhou2 小时前
rsync使用案例分析
linux·运维·服务器·rsync·同步数据
安静的技术开发者2 小时前
Linux Ubuntu学习笔记
linux·ubuntu