commandstring""你希望在 WSL 实例启动时运行的命令字符串。 此命令以根用户身份运行。 例如service docker start。 示例wsl.conf 文件 下面的wsl.conf示例文件演示了一些可用的配置选项。 在此示例中,分发版为 Ubuntu-20.04,文件路径为\\wsl.localhost\Ubuntu-20.04\etc\wsl.conf。
Your Windows build number: Microsoft Windows [Version 10.0.18932.1000] What you're doing and what's happening: > wsl.exe -d my-wsl2-distro What's wrong / what should be happening instead: It starts as root, even after my-wsl2-distro.exe ...
commandstring""你希望在 WSL 实例启动时运行的命令字符串。 此命令以根用户身份运行。 例如service docker start。 示例wsl.conf 文件 下面的wsl.conf示例文件演示了一些可用的配置选项。 在此示例中,分发版为 Ubuntu-20.04,文件路径为\\wsl.localhost\Ubuntu-20.04\etc\wsl.conf。
Start Command Prompt 在这里,以这种方式使用你的发行版的命令。如果你使用的是 Windows 商店中的 Ubuntu 应用,那么该命令将是: ubuntu config --default-user root 截图中,我正在使用 Windows 商店中的 Ubuntu 20.04 应用。所以,我使用了 ubuntu2004 命令。 Set root as default user in Linux app’s configurat...
[boot] command = service docker start .wslconfig 的配置设置 .wslconfig 文件全局配置使用 WSL 2 运行的所有 Linux 分发版的设置。(对于按分发配置,请参阅 wsl.conf) 。 有关存储 .wslconfig 文件的位置的信息,请参阅 .wslconfig 。 备注 全局.wslconfig 配置选项仅适用于在 Windows 内部版本 19041 及...
①、首先新建vbs C:\Users\用户名\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup(可以使用cmd中的shell:startup打开) Set ws = WScript.CreateObject("WScript.Shell") cmd = "C:\Windows\System32\bash.exe -c ""bash /init.sh""" ...
root4096Nov2423:07.vscode/-rw-r--r--1root root8382Sep2101:38BlackScholes.cu-rw-r--r--1root root2787Sep2101:38BlackScholes_gold.cpp-rw-r--r--1root root3646Sep2101:38BlackScholes_kernel.cuh-rw-r--r--1root root13454Sep2101:38Makefile-rw-r--r--1root root1859Sep2101:38Nsight...
Once the process of installing your Linux distribution with WSL is complete, open the distribution (Ubuntu by default) using the Start menu. You will be asked to create a User Name and Password for your Linux distribution.This User Name and Password is specific to each separate Linux ...
D:\Ubuntu_1804.2019.522.0_x64>ubuntu1804.exe run 'service ssh start ' /bin/bash: service ssh start : command not found D:\Ubuntu_1804.2019.522.0_x64>ubuntu1804.exe run "bash -c 'service ssh start '" Starting OpenBSD Secure Shell server sshd [ OK ] ...
I've been using WSL2 and VSCode for development for a while now with no issues. However, after a recent rebuild and reinstall of Windows I've run into an issue where when a file is created from VSCode through code, then the owner is being set as root rather than the default us...