Ubuntu 18.04
Sponsored Link

Desktop Environment : noVNC Client2018/04/27

 
Proxy VNC Server which is running on localhost and make Client computers access to Ubuntu Desktop with Web Browser.
[1] Install some packages and create SSL certificates.
root@dlp:~#
apt -y install novnc websockify python-numpy
root@dlp:~#
cd /etc/ssl

root@dlp:/etc/ssl#
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   # country
State or Province Name (full name) [Some-State]:Hiroshima    # state
Locality Name (eg, city) []:Hiroshima  # city
Organization Name (eg, company) [Internet Widgits Pty Ltd]:GTS  # company
Organizational Unit Name (eg, section) []:Server World     # department
Common Name (e.g. server FQDN or YOUR name) []:www.srv.world  # server's FQDN
Email Address []:root@srv.world   # admin email
root@dlp:/etc/ssl#
chmod 644 novnc.pem

[2]
Start VNC Server, refer to here (section [1]).
This example is based on that [bionic] user runs VNC server with Display number #1 (= 5901 port).
[3] Start Websockify with the user who run VNC server and proxy localhost:5901 on port 6080.
bionic@dlp:~$
websockify -D --web=/usr/share/novnc/ --cert=/etc/ssl/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 [http://(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 Ubuntu on Web browser.
Matched Content