Novnc connects to CentOS to deliver VNC remote connections on the Web

Source: Internet
Author: User

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

    • Operating system: CentOS 6.6

    • ip:192.168.204.128

First, modify the network configuration

1) Close the protective wall

12 setenforce 0service iptables stop

2) View native IP address

Second, install Git

1 yum installgit -y

Three, installation configuration Tigervnc

12 yum installtigervnc-servervncserver :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 iptablessetenforce 0service iptables stop# install vncserver and gityum installtigervnc-server git -yvncserver :1# 此时会提示输入密码# download noVNCgit clone git://github.com/kanaka/noVNC# create secure connectioncd./noVNC/utils/openssl req -new -x509 -days 365 -nodes -out self.pem -keyout self.pem# run noVNCcd.././utils/launch.sh --vnc localhost:5901# running

 

Novnc connects to CentOS to deliver VNC remote connections on the Web

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.