How to install linux on win10 subsystem system

For software developers, Linux is basically a threshold around the past. Because the work often use linux, linux computer using pure or windows + virtual machine installed linux, I have been tangled.

If you install a pure linux, windows are some of the software can not use, such as photoshop, if the windows and then put on a virtual machine, install linux on a virtual machine, it feels cumbersome and take up computer resources. Now windows10 can install linux subsystem friends, do not tangle the issue.
Here are the steps I installed linux subsystem on windows10, for reference.
Check windows10 version. By searching for "About", check the version of Windows 10 at the start of the menu bar. In order to use linux subsystem, your version or the latest version should be 1709. If the version is low, you need to upgrade a little longer.

View Computer Information

How to install linux win10 subsystem on how to install the system on the win10 subsystem linux system

Next, go to Control Panel -> Programs and Features -> Enable or disable windows features:

How to install linux win10 subsystem on how to install the system on the win10 subsystem linux system
When checked OK, the system will ask you to reboot. Yes, reboot it.

Restart the computer, open the Microsoft store

How to install linux win10 subsystem on how to install the system on the win10 subsystem linux system

Search linux

How to install linux win10 subsystem on how to install the system on the win10 subsystem linux system

Search out several linux version, I chose Ubuntu 18.04 LTS

How to install linux win10 subsystem on how to install the system on the win10 subsystem linux system

Click "Install"

How to install linux win10 subsystem on how to install the system on the win10 subsystem linux system
After installation, I fixed it to the "Start" menu

Boot linux

How to install linux win10 subsystem on how to install the system on the win10 subsystem linux system
For a while, it begins to requirements set linux system user name and password, follow the prompts settings.

After setting a user name and password, linux subsystem installation is complete. At this point, your Linux subsystem installation path could be in this directory: C: \ Users \\ username \ AppData \ Local \ Packages \ CanonicalGroupLimited.Ubuntu18.04onWindows_79rhkp1fndgsc \ LocalState \ rootfs

This concludes the installation, the following are some of the settings.

In Ubuntu we can apt-get  command  easily install / uninstall software, due to the default package repository is located abroad, to install the software when it is likely to encounter a variety of network problems or to download some of the resources are not complete, Therefore, it is necessary to switch the data source for domestic mirror sites (for example: Ali cloud) to improve.
Data source profile editing  sudo vi /etc/apt/sources.list
the original content commented, then inserted in the final surface:

deb http://mirrors.aliyun.com/ubuntu/ trusty main restricted universe multiversedeb http://mirrors.aliyun.com/ubuntu/ trusty-security main restricted universe multiversedeb-src http://mirrors.aliyun.com/ubuntu/ trusty main restricted universe multiverse

Then press the "ESC" withdraw command line mode, enter the command line  wq! Save out just fine.
Then enter the command sudo apt-get updateto update the system on it.

Guess you like

Origin www.cnblogs.com/linuxprobe-sarah/p/10935217.html