VNC in the browser
Self-hosted only. A self-hosted Procy server can show a VNC desktop in your browser with noVNC, so you don’t need a VNC viewer, and the session travels over HTTPS instead of the unencrypted VNC protocol. On hosted Procy, and on servers without this set up, open a VNC tunnel and use a VNC viewer (see managing tunnels).
The server opens a tunnel to the device’s VNC port and makes it available on localhost only. In front of it, the server’s HTTPS proxy serves the noVNC app on the tunnel’s server port and relays the VNC traffic over a WebSocket. Opening that address in a browser starts the session.
- The HTTPS tunnel proxy:
tunnel_proxy_cert_fileandtunnel_proxy_key_filein[server]. - The noVNC app on the server’s file system. Procy is tested with noVNC 1.3.0.
Download noVNC and unpack it where rportd can read it, for example:
cd /tmp
curl -LO https://github.com/novnc/noVNC/archive/refs/tags/v1.3.0.zip
sudo unzip -d /var/lib/rport v1.3.0.zip
rm -f v1.3.0.zip
This leaves the app in /var/lib/rport/noVNC-1.3.0.
Set novnc_root in the [server] section of rportd.conf to that directory and restart rportd:
[server]
tunnel_proxy_cert_file = "/etc/rport/tunnels.crt"
tunnel_proxy_key_file = "/etc/rport/tunnels.key"
novnc_root = "/var/lib/rport/noVNC-1.3.0"
GET /api/v1/status then reports "browser_vnc": true under capabilities.
Create the tunnel with scheme vnc and the proxy turned on:
curl -s -u "$CREDS" -X PUT -G "https://procy.example.com/api/v1/clients/$CLIENT_ID/tunnels" \
-d remote=5900 \
-d scheme=vnc \
-d http_proxy=1 \
-d acl=203.0.113.7 | jq
Open https://procy.example.com:<lport>/ (or the tunnel_url of the response, with
subdomains) and enter the VNC password of the device.