Files
noVNC/README.md
T

229 lines
8.4 KiB
Markdown
Raw Normal View History

2024-11-27 13:58:26 +01:00
## noVNC: HTML VNC client library and application
2010-04-06 21:34:56 -05:00
2020-06-24 13:02:03 +02:00
[![Test Status](https://github.com/novnc/noVNC/workflows/Test/badge.svg)](https://github.com/novnc/noVNC/actions?query=workflow%3ATest)
[![Lint Status](https://github.com/novnc/noVNC/workflows/Lint/badge.svg)](https://github.com/novnc/noVNC/actions?query=workflow%3ALint)
2010-04-06 21:34:56 -05:00
### Description
2010-04-06 21:34:56 -05:00
2017-12-08 16:06:50 +01:00
noVNC is both a HTML VNC client JavaScript library and an application built on
top of that library. noVNC runs well in any modern browser including mobile
browsers (iOS and Android).
2016-11-22 00:03:28 +01:00
Many companies, projects and products have integrated noVNC including
2013-10-28 16:01:40 -05:00
[OpenStack](http://www.openstack.org),
2016-11-22 00:03:28 +01:00
[OpenNebula](http://opennebula.org/),
[LibVNCServer](http://libvncserver.sourceforge.net), and
2016-11-22 00:37:52 +01:00
[ThinLinc](https://cendio.com/thinlinc). See
2024-11-27 13:58:26 +01:00
[the Projects and companies wiki page](https://github.com/novnc/noVNC/wiki/Projects-and-companies-using-noVNC)
2013-10-28 16:01:40 -05:00
for a more complete list with additional info and links.
2024-11-27 13:58:26 +01:00
### Table of contents
- [News/help/contact](#newshelpcontact)
- [Features](#features)
- [Screenshots](#screenshots)
2024-11-27 13:58:26 +01:00
- [Browser requirements](#browser-requirements)
- [Server requirements](#server-requirements)
- [Quick start](#quick-start)
- [Installation from snap package](#installation-from-snap-package)
- [Integration and deployment](#integration-and-deployment)
- [Authors/Contributors](#authorscontributors)
### News/help/contact
2017-10-09 10:58:24 +02:00
The project website is found at [novnc.com](http://novnc.com).
2010-04-06 21:34:56 -05:00
2016-11-22 00:37:52 +01:00
If you are a noVNC developer/integrator/user (or want to be) please join the
2017-10-09 11:06:15 +02:00
[noVNC discussion group](https://groups.google.com/forum/?fromgroups#!forum/novnc).
2016-11-22 00:37:52 +01:00
Bugs and feature requests can be submitted via
[github issues](https://github.com/novnc/noVNC/issues). If you have questions
about using noVNC then please first use the
[discussion group](https://groups.google.com/forum/?fromgroups#!forum/novnc).
2017-12-08 16:12:19 +01:00
We also have a [wiki](https://github.com/novnc/noVNC/wiki/) with lots of
helpful information.
2016-11-22 00:37:52 +01:00
If you are looking for a place to start contributing to noVNC, a good place to
start would be the issues that are marked as
2017-01-14 11:33:36 +01:00
["patchwelcome"](https://github.com/novnc/noVNC/issues?labels=patchwelcome).
2017-12-08 16:12:43 +01:00
Please check our
[contribution guide](https://github.com/novnc/noVNC/wiki/Contributing) though.
2016-11-22 00:37:52 +01:00
If you want to show appreciation for noVNC you could donate to a great non-
profits such as:
[Compassion International](http://www.compassion.com/),
[SIL](http://www.sil.org),
[Habitat for Humanity](http://www.habitat.org),
[Electronic Frontier Foundation](https://www.eff.org/),
[Against Malaria Foundation](http://www.againstmalaria.com/),
[Nothing But Nets](http://www.nothingbutnets.net/), etc.
2011-06-26 15:55:44 -05:00
### Features
* Supports all modern browsers including mobile (iOS, Android)
2022-12-27 14:03:54 +01:00
* Supported authentication methods: none, classical VNC, RealVNC's
RSA-AES, Tight, VeNCrypt Plain, XVP, Apple's Diffie-Hellman,
UltraVNC's MSLogonII
* Supported VNC encodings: raw, copyrect, rre, hextile, tight, tightPNG,
ZRLE, JPEG, Zlib, H.264
2017-12-08 16:14:05 +01:00
* Supports scaling, clipping and resizing the desktop
2025-02-04 16:14:31 +01:00
* Supports back & forward mouse buttons
2017-12-08 16:14:05 +01:00
* Local cursor rendering
2022-12-27 14:03:54 +01:00
* Clipboard copy/paste with full Unicode support
2019-03-21 13:57:16 +01:00
* Translations
2020-06-28 23:01:23 +02:00
* Touch gestures for emulating common mouse actions
2017-12-08 16:14:38 +01:00
* Licensed mainly under the [MPL 2.0](http://www.mozilla.org/MPL/2.0/), see
[the license document](LICENSE.txt) for details
2010-07-09 11:41:36 -05:00
### Screenshots
2017-05-12 17:10:27 +02:00
Running in Firefox before and after connecting:
2010-07-09 10:52:42 -05:00
2017-05-12 17:10:27 +02:00
<img src="http://novnc.com/img/noVNC-1-login.png" width=400>&nbsp;
<img src="http://novnc.com/img/noVNC-3-connected.png" width=400>
2010-04-06 21:34:56 -05:00
2016-11-22 00:37:52 +01:00
See more screenshots
2017-10-09 11:06:15 +02:00
[here](http://novnc.com/screenshots.html).
2010-07-09 11:41:36 -05:00
2024-11-27 13:58:26 +01:00
### Browser requirements
2017-12-08 16:23:56 +01:00
noVNC uses many modern web technologies so a formal requirement list is
not available. However these are the minimum versions we are currently
aware of:
2024-11-21 13:30:57 +01:00
* Chrome 89, Firefox 89, Safari 15, Opera 75, Edge 89
2010-09-24 10:45:33 -05:00
2024-11-27 13:58:26 +01:00
### Server requirements
2010-04-06 21:34:56 -05:00
2017-12-08 16:24:35 +01:00
noVNC follows the standard VNC protocol, but unlike other VNC clients it does
require WebSockets support. Many servers include support (e.g.
[x11vnc/libvncserver](http://libvncserver.sourceforge.net/),
[QEMU](http://www.qemu.org/), and
[MobileVNC](http://www.smartlab.at/mobilevnc/)), but for the others you need to
use a WebSockets to TCP socket proxy. noVNC has a sister project
[websockify](https://github.com/novnc/websockify) that provides a simple such
proxy.
2010-04-06 21:34:56 -05:00
2024-11-27 13:58:26 +01:00
### Quick start
2010-04-06 21:34:56 -05:00
* Use the `novnc_proxy` script to automatically download and start websockify, which
2017-12-08 16:24:35 +01:00
includes a mini-webserver and the WebSockets proxy. The `--vnc` option is
used to specify the location of a running VNC server:
`./utils/novnc_proxy --vnc localhost:5901`
* If you don't need to expose the web server to public internet, you can
bind to localhost:
`./utils/novnc_proxy --vnc localhost:5901 --listen localhost:6081`
2021-10-27 15:57:36 -07:00
* Point your browser to the cut-and-paste URL that is output by the `novnc_proxy`
2017-12-08 16:25:14 +01:00
script. Hit the Connect button, enter a password if the VNC server has one
configured, and enjoy!
2024-11-27 13:58:26 +01:00
### Installation from snap package
Running the command below will install the latest release of noVNC from snap:
2019-07-26 06:22:48 +10:00
`sudo snap install novnc`
2024-11-27 13:58:26 +01:00
#### Running noVNC from snap directly
2019-07-26 06:22:48 +10:00
2024-11-27 13:58:26 +01:00
You can run the snap package installed novnc directly with, for example:
2019-07-26 06:22:48 +10:00
`novnc --listen 6081 --vnc localhost:5901 # /snap/bin/novnc if /snap/bin is not in your PATH`
2024-11-27 13:58:26 +01:00
If you want to use certificate files, due to standard snap confinement restrictions you need to have them in the /home/\<user\>/snap/novnc/current/ directory. If your username is jsmith an example command would be:
2022-03-02 19:05:35 +11:00
`novnc --listen 8443 --cert ~jsmith/snap/novnc/current/self.crt --key ~jsmith/snap/novnc/current/self.key --vnc ubuntu.example.com:5901`
2024-11-27 13:58:26 +01:00
#### Running noVNC from snap as a service (daemon)
The snap package also has the capability to run a 'novnc' service which can be
2019-07-26 06:22:48 +10:00
configured to listen on multiple ports connecting to multiple VNC servers
2025-02-13 01:00:46 +08:00
(effectively a service running multiple instances of novnc).
2019-07-26 06:22:48 +10:00
Instructions (with example values):
List current services (out-of-box this will be blank):
```
sudo snap get novnc services
Key Value
services.n6080 {...}
services.n6081 {...}
```
Create a new service that listens on port 6082 and connects to the VNC server
running on port 5902 on localhost:
`sudo snap set novnc services.n6082.listen=6082 services.n6082.vnc=localhost:5902`
(Any services you define with 'snap set' will be automatically started)
Note that the name of the service, 'n6082' in this example, can be anything
as long as it doesn't start with a number or contain spaces/special characters.
View the configuration of the service just created:
```
sudo snap get novnc services.n6082
Key Value
services.n6082.listen 6082
services.n6082.vnc localhost:5902
```
2024-11-27 13:58:26 +01:00
Disable a service (note that because of a limitation in snap it's currently not
2019-07-26 06:22:48 +10:00
possible to unset config variables, setting them to blank values is the way
to disable a service):
`sudo snap set novnc services.n6082.listen='' services.n6082.vnc=''`
(Any services you set to blank with 'snap set' like this will be automatically stopped)
Verify that the service is disabled (blank values):
```
sudo snap get novnc services.n6082
Key Value
services.n6082.listen
services.n6082.vnc
```
2024-11-27 13:58:26 +01:00
### Integration and deployment
2017-12-08 16:25:41 +01:00
Please see our other documents for how to integrate noVNC in your own software,
or deploying the noVNC application in production environments:
* [Embedding](docs/EMBEDDING.md) - For the noVNC application
* [Library](docs/LIBRARY.md) - For the noVNC JavaScript library
### Authors/Contributors
2018-10-09 06:15:35 -04:00
See [AUTHORS](AUTHORS) for a (full-ish) list of authors. If you're not on
that list and you think you should be, feel free to send a PR to fix that.
2013-10-28 16:01:40 -05:00
* Core team:
* [Samuel Mannehed](https://github.com/samhed) (Cendio)
2017-01-12 09:38:23 +01:00
* [Pierre Ossman](https://github.com/CendioOssman) (Cendio)
2013-10-28 16:01:40 -05:00
2022-12-27 14:02:44 +01:00
* Previous core contributors:
* [Joel Martin](https://github.com/kanaka) (Project founder)
* [Solly Ross](https://github.com/DirectXMan12) (Red Hat / OpenStack)
2013-10-28 16:01:40 -05:00
* Notable contributions:
2024-11-27 13:58:26 +01:00
* UI and icons : Pierre Ossman, Chris Gordon
* Original logo : Michael Sersen
* tight encoding : Michael Tinglof (Mercuri.ca)
2022-03-10 15:38:50 +01:00
* RealVNC RSA AES authentication : USTC Vlab Team
* Included libraries:
* base64 : Martijn Pieters (Digital Creations 2), Samuel Sieb (sieb.net)
* DES : Dave Zimmerman (Widget Workshop), Jef Poskanzer (ACME Labs)
2015-05-18 19:01:58 -04:00
* Pako : Vitaly Puzrin (https://github.com/nodeca/pako)
2016-11-22 00:59:11 +01:00
2017-12-08 16:12:43 +01:00
Do you want to be on this list? Check out our
[contribution guide](https://github.com/novnc/noVNC/wiki/Contributing) and
start hacking!