Skip to content
View metathrone's full-sized avatar

Block or report metathrone

Block user

Prevent this user from interacting with your repositories and sending you notifications. Learn more about blocking users.

You must be logged in to block users.

Content in all repositories owned by your account will be closed.
Maximum 250 characters. Please don’t include any personal information such as legal names or email addresses. This note will only be visible to you.
Report abuse

Contact GitHub support about this user’s behavior. Learn more about reporting abuse.

Report abuse

Pinned Loading

  1. 修改wsl2下拼接windows环境变量导致命令执行失败 修改wsl2下拼接windows环境变量导致命令执行失败
    1
    # 在 WSL 2 中默认可获取到宿主机中的环境变量,这可能会导致某些错误,比如获取到一些没有意义的环境变量,导致环境混乱
    2
    # 若要禁止在 WSL 2 中访问 Windows 环境变量
    3
    
                  
    4
    echo -e "[intertop]\nappendWindowsPath=false" | sudo tee -a /etc/wsl.conf
  2. wsl2启用systemd管理 wsl2启用systemd管理
    1
    # 系统要求 Windows 10 内部版本 19044+ 或 Windows 11 
    2
    # 首先升级wsl至最新版 
    3
    # wsl --update
    4
    # 安装好新版wsl后,通过以下命令来配置wsl启用 systemd:
    5
    
                  
  3. WSL2使用clash for windows代理 WSL2使用clash for windows代理
    1
    # WSL通过Win访问网络,所以WSL的网关指向的是Windows,DNS服务器指向的也是Windows,设置WSL的proxy为win的代理ip+端口即可
    2
    # WSL中的DNS server在/etc/resolv.conf中查看,该文件是由/etc/wsl.conf自动生成的。
    3
    # 如果关闭了wsl.conf中自动生成resolve.conf并自行修改了resolve.conf,DNS nameserver并不是本机win ip
    4
    # 需要开启wsl.conf的自动生成,再运行以下命令
    5
    # https://zhuanlan.zhihu.com/p/153124468
  4. docker-net.md docker-net.md
    1
    # docker网络代理配置
    2
    
                  
    3
    ## dockerd代理
    4
    在执行docker pull时,是由守护进程dockerd来执行
    5