WSL子系统Debian 安装xfce4桌面,以及xrdp远程桌面的使用

安装xfce主要参考

参考这篇文章安装Win10的debian子系统的远程桌面https://www.ithome.com/html/win10/353700.htm

遇到问题:

远程桌面连接的时候出现
在这里插入图片描述

并且在日志“/var/log/xrdp-sesman.log”中显示:
X server for display 10 startup timeout和another Xserver is already active on display 10

无效的解决方案:

网上很多教程都说:
问题根源在于tightvnc,出现问题的版本跟X字体有冲突,导致连接Xserver出错。
解决方法:
apt-get purge tightvnc xrdp
apt-get install tightvncserver xrdp
尝试后没有效果。因为本来就没有安装tightvnc。

另外一些关于tightvncserver 和xrdp安装顺序的建议,我尝试后没有效果。

正确的解决方案:

打开 sudo vim /etc/X11/Xwrapper.config
然后修改
“allowed_users=anybody”
这是因为默认值 (“console”) 需要 xserver-xorg-legacy 的支持,而XRDP不满足,所以需要调整。

在这里插入图片描述

打开home文件夹时遇到问题:

Error when getting information for file “/home/leedain/thinclient_drives”:Transport endpoint is not connected。

运行:sudo umount -l /home/【替换成用户名】/thinclient_drives
重新启动 sudo service xrdp restart