[windows] windows 10 opens WSL and embraces Linux system

Time:2020-9-4

[windows] windows 10 opens WSL and embraces Linux system

Windows subsystem for Linux (WSL)Is a compatibility layer that can run native Linux binary executable (ELF format) on Windows 10. Since the windows 10 WSL beta was released, WSL has become increasingly mature and has begun to support more and more Linux distributions, such as arch Linux, Ubuntu, Kali Linux, CentOS, Debian, etc.

It is a good thing for developers who are used to Windows development but want to experience Linux.

Note: after opening WSL, other virtual machine software (such as vmware workstation, VirtualBox) can not be started normally! Remember, remember!

After correction by enthusiastic netizens, it was modified as follows: after opening WSL, if Hyper-V is not enabled, other virtual machine software (such as vmware workstation, VirtualBox) can be used normally, but if Hyper-V is enabled, other virtual machine software cannot be started normally.

Thank you @ cyancherry

Now let’s open it and have a taste of it

1、 Enable Developer mode (optional)

1. Right click the start menu:

[windows] windows 10 opens WSL and embraces Linux system

Start menu

2. Click settings to enter the control panel

[windows] windows 10 opens WSL and embraces Linux system

3. In Windows settings, click Update and security

[windows] windows 10 opens WSL and embraces Linux system

“Update and security”

4. Click “developer options”, select “developer mode”, select “yes” in the confirmation box, and then restart the computer

[windows] windows 10 opens WSL and embraces Linux system

Open developer mode

2、 Open Linux system function

After the computer restarts, open the control panel, and the steps are as follows:

  1. Search for “function”;
  2. Click “enable or disable windows functions” in the search results;
  3. Select “windows subsystem for Linux” in the pop-up windows function box,
  4. Click “OK” to confirm the opening:

[windows] windows 10 opens WSL and embraces Linux system

Open Linux system function

3、 Download Linux system

1. Open the Microsoft Store;

2. Search Linux;

3. Select your favorite Linux distribution to download and install;

[windows] windows 10 opens WSL and embraces Linux system

Optional Linux distribution

4. Start the downloaded Linux distribution as an application

For the first run, you need to set the root account and password, add a new user, and follow the prompts, as shown in the following figure:

[windows] windows 10 opens WSL and embraces Linux system

Set account and password

The good news is that arch Linux can also be downloaded

[windows] windows 10 opens WSL and embraces Linux system

Arch Linux

At this point, the installation is complete. After the installation of the system is no graphical interface, if you need to install it.

It should be noted that WSL is jointly launched by Microsoft and canocal. The kernel used is modified. After all, it is not a native Linux. This needs to be clear to all. However, for the new Linux partners, it is enough and can be regarded as a learning strategy. If you want to master it, you need to get started first.

At the beginning, Linux should not spend too much time on installation and preparation. First, choose a distribution that you prefer. If not, I recommend Ubuntu. This is a Linux distribution based on Debian. It has a high market share, rich documentation and community, and is also good for novices.

[windows] windows 10 opens WSL and embraces Linux system

Ubuntu & Windows

Then start from the basic operations, such as create, move, copy, delete files and directories, switch directories, permission operations, etc., and then slowly deepen to learn advanced operation skills. After you adapt to the operation of Linux, you will gradually like it and realize the real power of Linux.

I wish you all a happy trip to Linux!

end.