1、系统设置,开启共享及设置密码
2、安装xrdp
major@major-System-Product-Name:~$ sudo apt-get install xrdp
[sudo] password for major:
Reading package lists... Done
Building dependency tree
Reading state information... Done
xrdp is already the newest version (0.9.12-1).
0 upgraded, 0 newly installed, 0 to remove and 234 not upgraded.
3、安装dconf-editor
major@major-System-Product-Name:~$ sudo apt-get install dconf-editor
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
dconf-editor
0 upgraded, 1 newly installed, 0 to remove and 234 not upgraded.
Need to get 314 kB of archives.
After this operation, 1,241 kB of additional disk space will be used.
Get:1 http://cn.archive.ubuntu.com/ubuntu focal/universe amd64 dconf-editor amd64 3.36.0-1 [314 kB]
Fetched 314 kB in 3s (109 kB/s)
Selecting previously unselected package dconf-editor.
(Reading database ... 225999 files and directories currently installed.)
Preparing to unpack .../dconf-editor_3.36.0-1_amd64.deb ...
Unpacking dconf-editor (3.36.0-1) ...
Setting up dconf-editor (3.36.0-1) ...
Processing triggers for mime-support (3.64ubuntu1) ...
Processing triggers for hicolor-icon-theme (0.17-2) ...
Processing triggers for gnome-menus (3.36.0-1ubuntu1) ...
Processing triggers for libglib2.0-0:amd64 (2.64.3-1~ubuntu20.04.1) ...
Processing triggers for man-db (2.9.1-1) ...
Processing triggers for desktop-file-utils (0.24-1ubuntu3) ...
4、启动软件“dconf-editor",打开之后,依次展开org->gnome->desktop->remote-access,然后取消 “requlre-encryption”的勾选即可。如图所示:
5、切换windows系统打开远程桌面
进入windows,开启远程桌面,填入IP登陆,选择vnc-any,填入IP和共享设置的密码。
出现如下界面选择vnc-any,再次输入IP地址,端口默认5900,填入第一步设置的密码
最后到了我们的界面