Skip to main content

Jumpstarter driver for VNC

Project description

Vnc Driver

jumpstarter-driver-vnc provides functionality for interacting with VNC servers. It allows you to create a secure, tunneled VNC session in your browser.

Installation

pip3 install --extra-index-url https://pkg.jumpstarter.dev/simple/ jumpstarter-driver-vnc

Configuration

The VNC driver is a composite driver that requires a TCP child driver to establish the underlying network connection. The TCP driver should be configured to point to the VNC server's host and port, which is often 127.0.0.1 from the perspective of the Jumpstarter server.

Example exporter.yaml configuration:

export:
  vnc:
    type: jumpstarter_driver_vnc.driver.Vnc
    # You can set the default encryption behavior for the `j vnc session` command.
    # If not set, it defaults to False (unencrypted).
    default_encrypt: false
    children:
      tcp:
        type: jumpstarter_driver_network.driver.TcpNetwork
        config:
          host: "127.0.0.1"
          port: 5901 # Default VNC port for display :1

API Reference

The client class for this driver is jumpstarter_driver_vnc.client.VNClient.

vnc.session()

This asynchronous context manager establishes a connection to the remote VNC server and provides a local web server to view the session.

Usage:

async with vnc.session() as novnc_adapter:
    print(f"VNC session available at: {novnc_adapter.url}")
    # The session remains open until the context block is exited.
    await novnc_adapter.wait()

CLI: j vnc session

This driver provides a convenient CLI command within the jmp shell. By default, it will open the session URL in your default web browser.

Usage:

# This will start the local server and open a browser.
j vnc session

# To prevent it from opening a browser automatically:
j vnc session --no-browser

# To force an encrypted (wss://) or unencrypted (ws://) connection, overriding
# the default set in the exporter configuration:
j vnc session --encrypt
j vnc session --no-encrypt

Note: Using an encrypted connection is intended for advanced scenarios where the local proxy can be configured with a TLS certificate that your browser trusts. For standard local development, modern browsers will likely reject the self-signed certificate and the connection will fail.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

jumpstarter_driver_vnc-0.8.1.tar.gz (6.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

jumpstarter_driver_vnc-0.8.1-py3-none-any.whl (5.8 kB view details)

Uploaded Python 3

File details

Details for the file jumpstarter_driver_vnc-0.8.1.tar.gz.

File metadata

File hashes

Hashes for jumpstarter_driver_vnc-0.8.1.tar.gz
Algorithm Hash digest
SHA256 cde98a32a7c70467a2d15a190742f83f924539b5485dbbb997c47868ab346aa4
MD5 d2c7572ec5bc31bdda788bce49bfdf44
BLAKE2b-256 d5c1a5cc9774088f07c525d7140d74f46d4aaf033eb887c80ab2459b59b62e1a

See more details on using hashes here.

File details

Details for the file jumpstarter_driver_vnc-0.8.1-py3-none-any.whl.

File metadata

File hashes

Hashes for jumpstarter_driver_vnc-0.8.1-py3-none-any.whl
Algorithm Hash digest
SHA256 d69ad89059cc550d75997e28fd519ee02f070c2bfe9ab27b32267814c60660ff
MD5 8ae27541eaedccd113c61d4cde72abab
BLAKE2b-256 eea37afa3d41e62f190bd4e965774b7ce1d9d1f38e61e48d8b36ec5183b5a2c8

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page