What is NOVNC?
NoVNC is a HTML5 VNC client with HTML 5 WebSockets, Canvas and JavaScript implementations, and NoVNC is commonly used in cloud computing, virtual machine control panels such as OpenStack Dashboard and Op Ennebula Sunstone all used NoVNC.
NoVNC is implemented with WebSockets, but most VNC servers currently do not support WebSockets, so NoVNC is not directly connected to the VNC server and requires an agent to convert between WebSockets and TCP sockets. This agent is in the NoVNC directory, called Websockify.
Experimental environment
First, modify the network configuration
1) Close the protective wall
12 |
setenforce 0 service iptables stop |
2) View native IP address
Second, install Git
Three, installation configuration Tigervnc
12 |
yum install tigervnc-server vncserver :1 |
To install the Tigervnc-server process:
Enter Vncserver:1 to start the service and enter the password (note that the password is not less than 6 bits long).
Iv. installation of NoVNC
1) Download NoVNC
1 |
git clone git: //github .com /kanaka/noVNC |
2) Create a secure connection
^ Note: The default session of VNC is not secure and requires creating a secure VNC connection. The created certificate ' SELF.PEM ' needs to be placed in the ' novnc/utils ' directory, and when NoVNC is started,websockify will automatically load the certificate.
12 |
cd . /noVNC/utils/ openssl req -new -x509 -days 365 -nodes -out self.pem -keyout self.pem |
Go all the way down ...
3) Running NoVNC
12 |
# 在noVNC目录下,执行 . /utils/launch .sh --vnc localhost:5901 |
V. Test connection
In browser access (note Replace with your own IP address) http://192.168.204.128:6080/vnc.html
Enter the password, the connection is successful!
Vi. Installation Scripts
1234567891011121314151617181920212223242526272829 |
#!/bin/bash # stop selinux and iptables
setenforce 0
service iptables stop
# install vncserver and git
yum
install
tigervnc-server git -y
vncserver :1
# 此时会提示输入密码
# download noVNC
git clone git:
//github
.com
/kanaka/noVNC
# create secure connection
cd
.
/noVNC/utils/
openssl req -new -x509 -days 365 -nodes -out self.pem -keyout self.pem
# run noVNC
cd
../
.
/utils/launch
.sh --vnc localhost:5901
# running
|
Novnc connects to CentOS to deliver VNC remote connections on the Web