This tutorial was tested on Ubuntu20.04 and Ubuntu18.04

Install dependencies

You need to install XRDP and dconf-Editor on the Ubuntu server

sudo apt install xrdp dconf-editor
Copy the code

Modify the configuration

1. Enable screen sharing in Ubuntu Settings and set a password for remote control

2. Open the previously installed application dconf-editor

(3) to enterorg/gnome/desktop/remote-accessIn the directory, closerequire-encryptionoptions

The remote connection

Matters needing attention

  • Make sure that both Windows 10 and Ubuntu hosts are on the same LAN, even if they cannot access the public network
  • Make sure the Ubuntu host is connected to the screen, otherwise even if remotely connected, the mouse can only move but cannot point anything

Use Win10 built-in remote desktop connection

1. Open remote desktop connection, enter Ubuntu LAN IP, and click Connect

2. Select VNC-any, enter the IP address and remote password, and click OK

3. The access succeeds

Use third-party software VNC Viewer

1. InstallVNC Viewer

2. Create a connection, enter the Ubuntu host LAN IP, and click OK

3. Enter the remote password

4. The access is successful