FreeBSD 14
Sponsored Link

Desktop Environment : VNC Client : noVNC2024/01/24

 

Install noVNC which is a VNC Client tool to connect to VNC server via Web Browser.

[1] Install required packages.
root@dlp:~ #
pkg install -y novnc py39-websockify py39-numpy
[2]
Start VNC Server as a user, refer to here.
This example is based on that [serverworld] user has started VNC service with [5901] port.
[3] Login as a user who runs VNC and create certificates, and then Start Websockify to proxy [localhost:5901] on port [6080].
serverworld@dlp:~ $
openssl req -x509 -nodes -newkey rsa:3072 -keyout novnc.pem -out novnc.pem -days 3650

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 code
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) []:dlp.srv.world    # server's FQDN
Email Address []:serverworld@srv.world                          # admin email

serverworld@dlp:~ $
websockify -D --web=/usr/local/libexec/novnc/ --cert=novnc.pem 6080 localhost:5901

WebSocket server settings:
  - Listen on :6080
  - Web server. Web root: /usr/local/libexec/novnc
  - SSL/TLS support
  - Backgrounding (daemon)
[4] Access to the [https://(server's hostname or IP address):6080/vnc.html] from a client computer with web browser, then noVNC form is displayed like follows, Click [Connect] to proceed.
[5] Password is required. Input VNC password of the user VNC runs.
[6] If successfully passed authentication, VNC session starts and it's possible to operate FreeBSD on Web browser.
Matched Content