1. 在hyper-v的设置中使能增强功能
2. 运行在hyper-v中的虚拟机(笔者使用ubuntu版本为bionic)中安装xrdp
2.1 获取安装脚本
$ git clone https://github.com/jterry75/xrdp-init.git ~/xrdp-init
2.2 安装xrdp
$ cd ~/xrdp-init
$ chmod u+x install.sh
$ sudo ./install.sh
2.3 重启虚拟机
$ sudo reboot
3. 参考资料
在这里