windows子系统wsl_如何在Windows 10 Windows子系统Linux(WSL)上安装Ubuntu?

windows子系统wsl_如何在Windows 10 Windows子系统Linux(WSL)上安装Ubuntu?

windows子系统wsl

Windows 10 provides different Linux distributions natively running them by using Windows Subsystem For Linux or WSL . Ubuntu can be installed and run with the WSL easily via Microsoft Store. In order to install and run Ubuntu via WSL, the Windows 10 should be at least Windows 10 Fall Creators Update which is released in October 2017.

Windows 10通过使用Windows Subsystem For LinuxWSL提供了本机运行的不同Linux发行Windows Subsystem For Linux 。 可以通过Microsoft Store轻松地在WSL中安装和运行Ubuntu。 为了通过WSL安装和运行Ubuntu,Windows 10至少应为2017年10月发布的Windows 10 Fall Creators Update。

Windows Store上的Ubuntu (Ubuntu On Windows Store)

In order to locate Ubuntu on Windows Store simply type ubuntu to the start menu. We will see a screen like below which list Ubuntu. We will click to the Open.

为了在Windows Store上找到Ubuntu,只需在开始菜单中键入ubuntu 。 我们将看到如下屏幕,其中列出了Ubuntu。 我们将单击“打开”。

windows子系统wsl_如何在Windows 10 Windows子系统Linux(WSL)上安装Ubuntu?

在Windows上安装Ubuntu (Install Ubuntu On Windows)

We will see the following screen where detailed information about the Ubuntu package will be provided. We will simply click to the Install. If there is a dialog box like login Microsoft account just skip it closing it.

我们将看到以下屏幕,其中将提供有关Ubuntu软件包的详细信息。 我们只需单击“ Install 。 如果出现类似登录Microsoft帐户的对话框,请跳过该对话框将其关闭。

windows子系统wsl_如何在Windows 10 Windows子系统Linux(WSL)上安装Ubuntu?
Install Ubuntu On Windows
在Windows上安装Ubuntu

运行Ubuntu (Run Ubuntu)

Installed Ubuntu can be run in different ways. From the Microsoft Store screen, we can simply click to the Launch.

已安装的Ubuntu可以以不同的方式运行。 在Microsoft Store屏幕上,我们只需单击“ Launch

windows子系统wsl_如何在Windows 10 Windows子系统Linux(WSL)上安装Ubuntu?
Launch Ubuntu From Microsoft Store Screen
从Microsoft Store屏幕启动Ubuntu

For the first time, we will see the following screen which is initialization about the Ubuntu WSL image.

第一次,我们将看到以下屏幕,该屏幕是有关Ubuntu WSL映像的初始化。

windows子系统wsl_如何在Windows 10 Windows子系统Linux(WSL)上安装Ubuntu?
Ubuntu WSL First Time Initialization
Ubuntu WSL首次初始化

When the initialization is completed we will be asked for the user name and password like to be used inside the Ubuntu.

初始化完成后,我们将要求您提供用户名和密码,例如在Ubuntu中使用的用户名和密码。

windows子系统wsl_如何在Windows 10 Windows子系统Linux(WSL)上安装Ubuntu?
Ubuntu WLS Username and Password Configuration
Ubuntu WLS用户名和密码配置

Alternatively, we can use the start menu in order to run Ubuntu WSL. We will type ubuntu to the Start Menu. Then we will click to the open which will start the ubuntu command line.

另外,我们可以使用开始菜单来运行Ubuntu WSL。 我们将在“开始”菜单中键入ubuntu 。 然后,我们将单击打开以启动ubuntu命令行。

windows子系统wsl_如何在Windows 10 Windows子系统Linux(WSL)上安装Ubuntu?
Start Ubuntu Terminal From Start Menu
从开始菜单启动Ubuntu终端

We can run different Linux or Ubuntu commands like uname andls but some commands which are related to different hardware devices like fdisk will not run.

我们可以运行不同Linux或Ubuntu命令,例如unamels但是某些与不同硬件设备(例如fdisk相关的命令将无法运行。

windows子系统wsl_如何在Windows 10 Windows子系统Linux(WSL)上安装Ubuntu?
Run Command On Ubuntu WSL
在Ubuntu WSL上运行命令
了解更多Linux mv命令教程

翻译自: https://www.poftut.com/how-to-install-ubuntu-on-windows-10-windows-subsystem-for-linuxwsl/

windows子系统wsl