ltsc2019(1809)上的wsl

  1. 配置 apt 国内源

    sed -i 's/archive.ubuntu.com/mirrors.aliyun.com/g' /etc/apt/sources.list
    # 更新源
    apt update
  2. /etc/init.wsl

    #! /bin/sh
    # Filename: /etc/init.wsl
    # Usage: /etc/init.wsl [start|stop|restart]
    /etc/init.d/cron $1
    /etc/init.d/ssh $1
    /etc/init.d/supervisor $1
    #/etc/init.d/dbus $1

win+r shell:startup wsl.bat

Set ws = CreateObject("Wscript.Shell")
ws.run "wsl -d Ubuntu-20.04 -u root /etc/init.wsl start", vbhide

此处评论已关闭