From 949fcf145e0fa263556465aa413d1ed8a5027801 Mon Sep 17 00:00:00 2001 From: aiminick <83101338@qq.com> Date: Thu, 7 Feb 2019 20:45:08 +0800 Subject: [PATCH] Update vnc.md --- docs/vnc.md | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/docs/vnc.md b/docs/vnc.md index 2607f57..714b970 100644 --- a/docs/vnc.md +++ b/docs/vnc.md @@ -1,4 +1,4 @@ -# 如何设置VNC远程访问 novnc python-websockify +# 如何设置VNC远程访问 使用root账户登录并执行下列操作: @@ -126,3 +126,24 @@ systemctl start vncserver@1.service ; systemctl status vncserver@1.service 1. 使用客户端连接到你的服务器:IP地址:5901 2. 然后输入你设置的pi用户的VNC密码 + +## 安装NOVNC + +支持使用浏览器作为客户端访问VNC + +### 安装并配置 + +```shell +apt update; apt install novnc python-websockify -y ;\ +ln -sf /usr/share/novnc/vnc_auto.html /usr/share/novnc/index.html +``` + +### 启动服务 + +```shell +websockify -D --web=/usr/share/novnc/ --cert=/var/lib/shellinabox/certificate.pem 6080 localhost:5901 +``` + +### 开机启动 + +将上面的命令放入 "/boot/rc-local" 即可