Enable Win10 subsystem for Linux

Today, I will introduce how to enable the Linux subsystem under Windows10, ado, direct look at the steps of:

Enabling developer mode
Open the Settings

 


Click Update and security

 


Click Developer options

 


Enabling developer mode

 


Change the system function
after use win + X keyboard shortcut to bring up the menu click system management applications and functions, then pulled under, select Programs and Features

 


Select Application Windows features on or off

 


Check for Linux Windows subsystem, then confirm and restart it

 


Installing Linux system
after opening the system actually functions have not installed Linux, you need to use cmd to complete the installation.
First Press Win + R open cmd command input box, and input lxrun / install / y download Linux system (before the slash note to a space, or else command is not recognized)

 


Well, now successfully installed and ready for use!

First, an instruction input into the Ubuntu system bash

 

 

Passwd can then enter the password reset, password reset End Ubuntu can normally use the system. Thus, the basic installation work is complete.

 

Advanced Linux
in Ubuntu we can be easily installed by the apt-get command / uninstall the software, because 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 incomplete, and therefore need to switch data sources for domestic mirror sites to improve.

Edit the data source configuration file vi /etc/apt/sources.list

 


And then they enter the vi editor

 


Continue to press ENTER key to enter the real vi editor page

 


vi编辑器一共有三种模式,分别是命令模式(command mode)、插入模式(Insert mode)和底行模式(last line mode)。命令模式下我们只能控制屏幕光标的移动,字符、字或行的删除,移动复制某区段及进入Insert mode下,或者到 last line mode等;插入模式下可以做文字输入,按「ESC」键可回到命令行模式;底行模式下,可以将文件保存或退出vi,也可以设置编辑环境,如寻找字符串、列出行号等。

当我们进入vi编辑器的时候默认是命令行模式,这是后如果想编辑内容,就输入 i 命令就可以了。现在我们要把镜像源改为阿里的,所以插入如下内容:

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


接着按「ESC」退会命令行模式,输入命令行 wq! 保存退出就好了。

接着输入命令apt-get update更新配置就可以了,这个过程可能比较长,祝好运!

 

好了本教程到此结束


原文链接:https://blog.csdn.net/zhangdongren/article/details/82663977 

Guess you like

Origin www.cnblogs.com/1175429393wljblog/p/11246980.html