参考了几篇文章:
https://zhuanlan.zhihu.com/p/150555651https://zhuanlan.zhihu.com/p/150555651
https://zhuanlan.zhihu.com/p/151853503https://zhuanlan.zhihu.com/p/151853503
https://github.com/QMonkey/wsl-tutorial/issues/11https://github.com/QMonkey/wsl-tutorial/issues/11
https://blog.csdn.net/u014552102/article/details/129998921?spm=1001.2101.3001.6650.3&utm_medium=distribute.pc_relevant.none-task-blog-2%7Edefault%7EYuanLiJiHua%7EPosition-3-129998921-blog-38901839.235%5Ev36%5Epc_relevant_anti_vip&depth_1-utm_source=distribute.pc_relevant.none-task-blog-2%7Edefault%7EYuanLiJiHua%7EPosition-3-129998921-blog-38901839.235%5Ev36%5Epc_relevant_anti_vip&utm_relevant_index=4https://blog.csdn.net/u014552102/article/details/129998921?spm=1001.2101.3001.6650.3&utm_medium=distribute.pc_relevant.none-task-blog-2%7Edefault%7EYuanLiJiHua%7EPosition-3-129998921-blog-38901839.235%5Ev36%5Epc_relevant_anti_vip&depth_1-utm_source=distribute.pc_relevant.none-task-blog-2%7Edefault%7EYuanLiJiHua%7EPosition-3-129998921-blog-38901839.235%5Ev36%5Epc_relevant_anti_vip&utm_relevant_index=4
https://blog.csdn.net/u014552102/article/details/129998921?spm=1001.2101.3001.6650.3&utm_medium=distribute.pc_relevant.none-task-blog-2%7Edefault%7EYuanLiJiHua%7EPosition-3-129998921-blog-38901839.235%5Ev36%5Epc_relevant_anti_vip&depth_1-utm_source=distribute.pc_relevant.none-task-blog-2%7Edefault%7EYuanLiJiHua%7EPosition-3-129998921-blog-38901839.235%5Ev36%5Epc_relevant_anti_vip&utm_relevant_index=4https://blog.csdn.net/u014552102/article/details/129998921?spm=1001.2101.3001.6650.3&utm_medium=distribute.pc_relevant.none-task-blog-2%7Edefault%7EYuanLiJiHua%7EPosition-3-129998921-blog-38901839.235%5Ev36%5Epc_relevant_anti_vip&depth_1-utm_source=distribute.pc_relevant.none-task-blog-2%7Edefault%7EYuanLiJiHua%7EPosition-3-129998921-blog-38901839.235%5Ev36%5Epc_relevant_anti_vip&utm_relevant_index=4
WSL2部分
在WSL2 Ubuntu中安装好xfce4后,启动显示各种拒绝、报错等等后
查了几篇文章,最终以如下几处修改,解决配置问题
1. windows防火墙
2.
根据win10的HOST IP,得到192.168.43.214,加上端口:0。
配置完bashrc后,要记得
source .bashrc
才能生效
3. 编辑resolv.conf
打开禁止自动换IP,都放到192.168.1.x网段
MobaXterm部分配置
实现
sudo startxfce4
一个混沌的winux出现了。