相关教程
https://www.iamkyun.com/2020/07/25/WSL2-Ubuntu-GUI/
https://blog.csdn.net/swordsm/article/details/107777377
遇到的问题
- 退出再打开会黑屏:
原因是关闭远程桌面以后xfce退出休眠了,进入xfce设置power,关闭display power management,参考链接如下:
https://github.com/microsoft/WSL/issues/5719
- 直接关闭远程桌面,再打开时报错
Your computer could not connect to another console session on the remote computer because you already have a console session in progress.
解决方法:不要直接关闭远程桌面窗口,而是在图形界面中logout
- 注意重新开机以后,wsl的ip就变了