win10远程连接ubuntu16.04方法

时间:2024-04-02 13:46:37

Ubuntu16.04端:

1、打开终端,安装xrdp,vncserver,xbase-clients

sudo apt-get install xrdp vnc4server xbase-clients

2、安装desktop sharing(Ubuntu16.04默认已经安装),可以到应用商店下载。打开desktop sharing,设置如下:

win10远程连接ubuntu16.04方法中文版的系统输入“桌面共享”进行搜索,英文版的输入desktop sharing

3、安装安装dconf-editor,取消权限限制:

sudo apt-get install dconf-editor

dconf-editor设置:org > gnome > desktop > remote-access,取消 “requlre-encryption”

Windows 10端:

运行->mstsc,输入Ubuntu的ip地址($ ip address),点击连接。
进入连接口出现小窗口,
选择vnc-any,输入Ubuntu的ip地址,端口不变(5900),桌面共享设定的密码,即可远程连接到ubuntu 16.04桌面。

之前安装的版本主要是18.04 和 20.04 连接效果都不理想。20.04没有使用gnome进行图形化,18.04的win10连接后,屏幕始终处于黑色状态,没有出现验证对话框。18.04的使用vnc-viewer 配合 vnc-server,xrdp确实也可以连接,但是桌面映射有错位,基本处于难以使用状态。

参考:https://blog.csdn.net/weixin_41864878/article/details/79817015