2
0
mirror of https://github.com/pikvm/pikvm synced 2024-11-01 09:20:17 +00:00
pikvm/pages/vnc.md

48 lines
2.3 KiB
Markdown
Raw Normal View History

2020-08-20 03:39:44 +00:00
# VNC
As an alternative to the web interface, you can use VNC with various desktop clients. The main advantage of VNC over the browser is the ability to expand the image to the full screen, as well as complete interception of all keyboard keys. In some cases, VNC will be more responsive than the browser, especially on weak computers.
2021-02-15 03:09:00 +00:00
:exclamation: **Please note: we strongly advise against using VNC without X.509 or TLS encryption on untrusted networks!** Otherwise your password will be transmitted over the network in plain text. Unfortunately, this is the reality of the VNC protocol.
2020-08-20 03:39:44 +00:00
2020-08-20 03:42:56 +00:00
# Enabling VNC on the Pi-KVM side
1. Switch Pi-KVM filesystem to read-write mode using command `rw`.
2020-08-20 18:31:47 +00:00
2. _Optional:_ Change client's keyboard layout if you're using an non-US keyboard. To do this edit file `/etc/kvmd/override.yaml`
:exclamation: **(remove `{}` before adding lines)**:
2020-08-20 03:41:41 +00:00
```yaml
vnc:
keymap: /usr/share/kvmd/keymaps/ru
```
2020-08-21 04:59:56 +00:00
_All available keymaps are located in /usr/share/kvmd/keymaps:_
![VNC keymaps](/img/vnc-keymaps.png)
2021-02-16 18:33:41 +00:00
3. _Optional:_ Some VNC clients (for example TightVNC) can't use user/password authentication. In this case you can enable passphrases mode in `/etc/kvmd/override.yaml`:
2020-08-20 03:41:41 +00:00
```yaml
vnc:
auth:
vncauth:
enabled: true
```
To set passphrases edit file `/etc/kvmd/vncpasswd`.
2020-08-20 03:39:44 +00:00
4. Enable `kvmd-vnc` daemon. VNC will be available on the port 5900: `systemctl enable --now kvmd-vnc`.
5. Switch filesystem back to read-only: `ro`.
2020-08-20 03:39:44 +00:00
# Configuring the client
2021-02-18 02:30:56 +00:00
We recommend [TigerVNC](https://tigervnc.org) for a better experience on desktop.
Here are our recommended settings for TigerVNC:
2020-08-20 03:39:44 +00:00
* **Compression** tab:
- Choose **Tight** encoding as preferred and color-level **Full**.
- Disable automatic quality adjust settings **Auto Select**.
- Enable **Allow JPEG compression**.
* **Security** tab:
2021-02-15 03:08:32 +00:00
- Enable **None**, **X.509 TLS** and **Anonymous TLS** encryption (or choose one preferred mode).
2020-08-20 03:39:44 +00:00
- Enable **Username and password** authentication.
2021-02-18 02:30:56 +00:00
For iOS and Android the recommended application is bVNC:
* [Google Play](https://play.google.com/store/apps/details?id=com.iiordanov.bVNC)
* [App Store](https://apps.apple.com/us/app/bvnc-pro/id1506461202)
2021-04-24 19:01:02 +00:00
# Unsupported clients
2021-04-24 19:01:48 +00:00
* Guacamole - Incorrectly implements vencrypt, no JPEG compression.
* Vinagre - Incorrectly implements vencrypt.