wsl--install 如wsl已安装,误删了linux系统,可使用以下命令查找可下载版本并重新下载。也可以直接进入微软商店寻找下载。 wsl--list--online wsl--install-d{Ubuntu} 安装会弹出{Ubuntu}窗口,进行自动下载,需等待片刻不要关闭窗口,下载完成后,填写linux账号密码进行初始化(此处初始化的是linux用户的账号密码。su命令...
第二步,打开PowerShell,安装WSL2(自动安装Ubuntu):wsl --install 进入Terminal后,ifconfig查看并记下IP地址。第三步,安装XShell。当然也可以用PowerShell,Windows Terminal,看个人喜好。第四步,配置XShell(可选)。这个Command Line颜色不够丰富,directory和file分不清。改。nano ~/.bashrc export PS1="...
If you haven’t set up WSL2 with Ubuntu, follow these steps first: OpenPowerShellas Administrator and run the following command to install WSL: bash Copy code wsl --install After the installation completes, restart your computer. You can set Ubuntu as your default distro with the command: b...
2)下载https://aka.ms/wsl-ubuntu-1804 得到Ubuntu_1804.2019.522.0_x64.appx在shellpower中运行 Add-AppxPackage d:\Ubuntu_1804.2019.522.0_x64.appx(不确定这一步是否有用)。将Ubuntu_1804.2019.522.0_x64.appx文件改为Ubuntu_1804.2019.522.0_x64.zip,解压缩到D:\Ubuntu_1804.2019.522.0_x64下,运行ubuntu18...
wsl--install 1. 然后重启你的计算机。 2. 安装Ubuntu 在Microsoft Store中搜索“Ubuntu”,选择最新版本进行安装。安装完成后,打开Ubuntu,并按照提示完成初始化。 3. 更新软件包 在终端中,先更新你的软件包: sudoaptupdatesudoaptupgrade 1. 2. 4. 安装必需工具 ...
From the Start Menu, open the Ubuntu App and run "sudo apt update && sudo apt upgrade -y". Then, try installing a Linux GUI app. For example, I will attempt to install Shotwell, a personal photo manager app for Linux. Run the "sudo apt install shotwell" command to install Shotwell....
尝试升级时出错:Invalid command line option: wsl --set-version Ubuntu 2 请确保已启用适用于 Linux 的 Windows 子系统,并且你使用的是 Windows 内部版本 18362 或更高版本。 若要启用 WSL,请在 PowerShell 提示符下以具有管理员权限的身份运行此命令:Enable-WindowsOptionalFeature -Online -FeatureName Microsoft...
下载完Ubuntu后打开,会稍等一会,等待安装 之后,输入用户名和密码(密码只是不显示,不是没输进去) 4.配置环境 (以下都在Ubuntu中输入) 更新工具 sudo apt-get update && sudo apt-get upgrade 安装所需要的包 sudo apt install git build-essential gdb-multiarch qemu-system-misc gcc-riscv64-linux-gnu binuti...
WSL 2 is a simple and fast way to run an Ubuntu environment on Windows, without ever leaving the native OS. Whether you deploy a data science model on Ubuntu or you simply prefer the Ubuntu distribution for the love of command line interface, WSL 2 can let you do all of that from the...
打开应用商店,搜索安装Kali Linux。装ubuntu也行,记得装评分最好的。 安装完成后选择“启动”,就会开始解压安装,然后输入用户名和密码就ok了。 升级原有linux系统到WSL2 如果原本就安装有WSL,可以直接升级到WSL2。 使用管理员权限打开PowerShell,输入以下命令: ...