Window10 system using Linux to build a complete development environment

https://juejin.im/post/5d22e46ee51d45775746b9b1

 

REVIEW

When using window system development environment and the online environment due to system inconsistencies can lead to various problems, as well as some extensions only support running under liunx system, Linux development environment is particularly important. window of linux environment in general by the vm / vbox virtual machine running under the course can also be mounted on the virtual machine window in linux very troublesome it wants. Plus a virtual machine runs advanced problem

Today the use of Microsoft's linux subsystem, to build a lightweight and efficient linux system.

wsl (Linux subsystem under windows)

Windows Subsystem for Linux (short WSL) is a Windows 10 can run on native Linux binary executable file (ELF format) compatibility layer. It is developed in cooperation with Microsoft Canonical company whose goal is to make pure Ubuntu 14.04 "Trusty Tahr" images can be downloaded and expanded into a local computer user, and the tools and utilities in the image can natively run in this subsystem

linux subsystem hereinafter referred to as the windows wsl

wsl supports full function Linux

Open Linux subsystem

  • Open win10 developer mode [developer updates and security → Options → developer mode]
  • Add linux subsystem [application program applications and functions → Programs and Features → → → function is enabled and close windows for Linux windows subsystem]
  • By application store installed linux (ubuntu pagoda has been tested and can not be installed properly, it is recommended to select debian)

Open after download to automatically install

Error may occur can not be installed

Installing, this may take a few minutes...
Installation Failed!
Error: 0x8007019e
Press any key to continue...
复制代码

Solution

1.win + x, select Windows PowerShell (administrator) 2. Type:

Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux
复制代码

3. Enter, enter Y, restart!

4. Re-open the subsystem has been installed, wait a few minutes and enter the account password.

Installation Development Environment

1. Wait follow the prompts to set up a user name and password Shortly after the installation is complete

Configuring the development environment is used herein pagoda integrated environment (optionally other environments)

www.bt.cn

3. End the environment

You can fully use the file in the window in Linux subsystem

Disk window were hanging in the directory / mnt

Configure the default user at startup

ubuntu/debian config --default-user root
复制代码

Configure the current user password

passwd 新密码

Author: twelve_juejin
link: https: //juejin.im/post/5d22e46ee51d45775746b9b1
Source: Nuggets
copyright reserved by the authors. Commercial reprint please contact the author authorized, non-commercial reprint please indicate the source.

Guess you like

Origin www.cnblogs.com/xiang--liu/p/11531514.html