1.window10的Linux子系统(WSL)迁移到非系统盘
3.Ubuntu中的ip命令 一开始只有ip 命令能用 (ifconfig 是不能用的)
Ubuntu 20 设置网关和ip :
sudo ip addr add 192.168.0.193/24 dev wlan0
sudo ip route add default via 192.168.0.1
vi /etc/resolv.conf
修改为:
nameserver 192.168.3.1
在Ubuntu中 我们使用sudo ufw disable命令来关闭防火墙
sudo ufw disable
尝试 ping www.baidu.com
PING www.a.shifen.com (14.215.177.38) 56(84) bytes of data.
64 bytes from 14.215.177.38 (14.215.177.38): icmp_seq=1 ttl=54 time=10.8 ms
64 bytes from 14.215.177.38 (14.215.177.38): icmp_seq=2 ttl=54 time=9.48 ms
sudo apt-get update
apt install net-tools
ifconfig 终于能用了
4. wsl2 ubuntu 子系统设置固定 IP 和开机启动程序
5.wsl2 固定ip 和 wsl2 外部网络设置 ,从而解决内部网络的一些问题
6.wsl 2 设置静态 DNS 服务地址及 Linux 和 Windows 主机网络互相访问设置
7.Ubuntu 更换国内源 & Ubuntu20.04软件源更换
8.(选) Ubuntu:conda的安装与使用 & Ubuntu 20.04安装Anaconda3及简单使用
9.安装xfce4 & WSL 2 Ubuntu Xubuntu Xfce图形化安装指南
直接写死比较方便 DISPLAY=192.168.3.200:0.0
11.开机时关闭wsl
C:\Users\xxx\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup
wsl_shutdown.bat
wsl --shudown
12.防火墙问题:允许某个端口被访问(如2222)
windows主系统 中
netsh advfirewall firewall add rule name=WSL2 dir=in action=allow protocol=TCP localport=2222
ubuntu子系统 中
13.Temporary failure in nameWSL2 Ubuntu: ping: hostname: Temporary failure in name resolution_viaco2love的博客-CSDN博客转载自https://colhountech.com/2021/04/01/wsl2-ubuntu-ping-hostname-temporary-failure-in-name-resolution/https://blog.csdn.net/viaco2love/article/details/118030367