noVNC安装和使用
但是只能代理本地,不能代理其他地址,不知道原因,确认为vnc-server版本较老的问题,安装在windows的为realvnc是N多年前非常老了,替换为新的Tightvnc server后就正常了。
安装tigervnc-server
# dnf安装tigervnc-server
dnf install tigervnc-server
cp /lib/systemd/system/vncserver@.service /etc/systemd/system/vncserver@:1.service
vim /etc/systemd/system/vncserver@\:1.service
# 关闭selinux
getenforce
setenforce 0
getenforce
vim /etc/selinux/config
# 关闭防火墙
systemctl status firewalld
systemctl stop firewalld
systemctl disable firewalld
# 配置vncpasswd和启动vncserver :1
vncpasswd
vncserver :1
systemctl enable vncserver@:1


安装noVNC
git clone https:///novnc/noVNC.git
cd noVNC/utils/如果使用https,则
#openssl req -new -x509 -days 3650 -nodes -out self.pem -keyout self.pem



vnc-view可以连接的其他vnc,但是通过noNVC无法代理
192.168.5.12无法通过noVNC代理




192.168.203.147均无法通过noVNC代理





另外一种方式 就是 noVNC_proxy只监听,单独由websockify来触发正式代理动作。
进入noVNC的utils,然后进入websockify目录。
新建vm.conf文本内容如下:token: host:port
vm1: 192.168.5.4:5901
vm2: 192.168.203.147:5900
vm3: 192.168.5.12:5900./run --target-config=./vm.conf 4488
http://192.168.5.4:6081/vnc.html?host=192.168.5.4&port=4488&path=websockify/?token=vm1



替换Tightvnc后正常
http://192.168.202.89:6080/vnc.html?host=192.168.202.89&port=4488&path=websockify/?token=vm3

















