Debian 9 Stretch
Sponsored Link

VNC Client : noVNC
2017/06/21
 
Install noVNC which is a VNC Client tool to connect to VNC server via Web Browser.
[1] Install some required packages.
[root@dlp ~]#
apt -y install novnc python-websockify
[2]
Start VNC Server with a user, refer to here.
This example is based on that [debian] user runs VNC server with [5901] port.
[3] Login as a user who run VNC and create certificates, and then Start Websockify to proxy localhost:5901 on port 6080.
debian@dlp:~$
openssl req -x509 -nodes -newkey rsa:2048 -keyout novnc.pem -out novnc.pem -days 365

Generating a 2048 bit RSA private key
...................................+++
.....................+++
writing new private key to 'novnc.pem'
-----
You are about to be asked to enter information that will be incorporated
into your certificate request.
What you are about to enter is what is called a Distinguished Name or a DN.
There are quite a few fields but you can leave some blank
For some fields there will be a default value,
If you enter '.', the field will be left blank.
-----
Country Name (2 letter code) [AU]:JP
State or Province Name (full name) [Some-State]:Hiroshima
Locality Name (eg, city) []:Hiroshima
Organization Name (eg, company) [Internet Widgits Pty Ltd]:GTS
Organizational Unit Name (eg, section) []:Server World
Common Name (e.g. server FQDN or YOUR name) []:dlp.srv.world
Email Address []:root@srv.world

debian@dlp:~$
websockify -D --web=/usr/share/novnc/ --cert=/home/debian/novnc.pem 6080 localhost:5901

WebSocket server settings:
  - Listen on :6080
  - Flash security policy server
  - Web server. Web root: /usr/share/novnc
  - SSL/TLS support
  - Backgrounding (daemon)
[4] Access to the [https://(server's hostname or IP address):6080/vnc.html] from a client with web browser, then noVNC form is displayed like follows, Login with VNC password.
[5] Just connected. It's possible to operate Debian on Web browser.
Matched Content
 
Tweet