From 4b62c6008ee68e26ffb861176b931ee4dceecf80 Mon Sep 17 00:00:00 2001 From: Tim Edwards Date: Sun, 16 Jun 2019 15:55:47 +0200 Subject: [PATCH] Fixed some formatting issues in README --- README.md | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 11289d94..344b72af 100644 --- a/README.md +++ b/README.md @@ -124,10 +124,14 @@ To install from Snap: #### Running noVNC You can run the Snap-package installed novnc directly with, for example: + `novnc --listen 6081 --vnc localhost:5901 # /snap/bin/novnc if /snap/bin is not in your PATH` #### Running as a Service (Daemon) -The Snap package also has the capability to run a 'novnc' service which can be configured to listen on multiple ports connecting to multiple VNC servers (effectively a service runing multiple instances of novnc). Instructions (with example values): +The Snap package also has the capability to run a 'novnc' service which can be +configured to listen on multiple ports connecting to multiple VNC servers +(effectively a service runing multiple instances of novnc). +Instructions (with example values): List current services (out-of-box this will be blank): @@ -138,12 +142,14 @@ 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: +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. +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: @@ -154,7 +160,9 @@ services.n6082.listen 6082 services.n6082.vnc localhost:5902 ``` -Disable a service (note that because of a limitation in Snap it's currently not possible to unset config variables, setting them to blank values is the way to disable a service): +Disable a service (note that because of a limitation in Snap it's currently not +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=''`