woshikid / blog

Apache License 2.0
8 stars 1 forks source link

noVNC学习笔记 #190

Open woshikid opened 1 year ago

woshikid commented 1 year ago

安装noVNC

sudo apt install python3 git
git clone https://github.com/novnc/noVNC.git

手动安装

curl -O -L https://github.com/novnc/noVNC/archive/refs/tags/v1.4.0.tar.gz
tar zxvf v1.4.0.tar.gz && mv noVNC-1.4.0 noVNC
curl -O -L https://github.com/novnc/websockify/archive/refs/tags/v0.11.0.tar.gz
tar zxvf v0.11.0.tar.gz && mv websockify-0.11.0 noVNC/utils/websockify

启用SSL

openssl req -new -x509 -days 365 -nodes -out noVNC/utils/self.pem -keyout noVNC/utils/self.pem

运行noVNC

noVNC/utils/novnc_proxy --vnc localhost:5901 [--listen 0.0.0.0:6080]

访问noVNC http://localhost:6080/vnc.html https://localhost:6080/vnc.html