Two ways to install the Linux subsystem in Windows 10 (with pictures and text)

Two ways to install the Linux subsystem in Windows 10 (with pictures and text)

Windows 10 now supports Linux subsystem, saying goodbye to cumbersome dual-system and virtual machine installations, and native installation is convenient and fast.

Windows Subsystem for Linux is referred to as WSL.

Here are 2 installation methods, there is always one that suits you.

Graphical installation

Enable Developer Mode

Press the Windows key to open Settings

Settings --> Update & Security --> Developer options --> Developer mode

Open the Windows Subsystem for Linux. Press Windows jian key and enter控制面板to open the control panel.

Open應用或關閉Windows功能, check適用于Linux的Windows子系統, then confirm and restart.

Install Ubuntu

Press the Windows key and search for Store to open the Microsoft App Store.

Search for Ubuntu and click the first one to enter. Click Get to install. If you are not logged in, you will be asked to log in to your Microsoft account. Just log in with your own account.

After the installation is complete, click Start and set your username and password

Congratulations on your successful installation! ! !

Install using PowerShell

Enable Windows Subsystem for Linux

Press the Windows key, search for PowerShell , right click, and run as administrator

Enter the following command, then enter Y to restart the machine

Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux 

Download the Ubuntu installation file

After restarting the machine, start PowerShell again as an administrator and set the file installation directory

cd D:\wsl\ // Choose a directory you like, if not, create it yourself Invoke-WebRequest -Uri https://aka.ms/wsl-ubuntu-1804 -OutFile Ubuntu1804.appx -UseBasicParsing 

While waiting for the download, you might as well have a cup of coffee~

PS: https://docs.microsoft.com/en-us/windows/wsl/install-manual There are various versions here, you can choose by yourself and replace the link above

Installing the system

Install it using the following command

Add-AppxPackage .\Ubuntu1804.appx 

There is no information reminder, congratulations on your successful installation, No Response is OK!

Start the Linux subsystem

Press Windows key to enter Ubuntu stand-alone to open and set the username and password

Set up your username and password

Uninstalling the Linux Subsystem

Run Powershell as an administrator to get the full software name and uninstall

Get-AppxPackage *ubuntu*
Get-AppxPackage CanonicalGroupLimited.Ubuntu18.04onWindows | Remove-AppxPackage 

Disable Linux Subsystem

Disable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux 

That’s all for today’s article. The next article will introduce how to configure acceleration services to make your Linux subsystem fly!

This is the end of this article about two ways to install the Linux subsystem in Windows 10 (with pictures and text). For more information about installing the Linux subsystem in Windows 10, please search for previous articles on 123WORDPRESS.COM or continue to browse the related articles below. I hope you will support 123WORDPRESS.COM in the future!

You may also be interested in:
  • Detailed explanation of the time representation example of the Linux time subsystem
  • Teach you how to enable the Linux subsystem of Win10 (with detailed pictures and text)
  • Talk about important subdirectory issues in Linux system
  • Win10 installation Linux subsystem graphic tutorial
  • Simply master the usage of fork() function to create child processes in Linux system
  • Analysis of the Linux input subsystem framework principle

<<:  Advanced crawler - Use of Scrapy_splash component for JS automatic rendering

>>:  Detailed explanation of the principle and usage of MySQL views

Recommend

Detailed deployment of Alibaba Cloud Server (graphic tutorial)

I have recently learned web development front-end...

How to automatically delete records before a specified time in Mysql

About Event: MySQL 5.1 began to introduce the con...

Detailed explanation of formatting numbers in MySQL

Recently, due to work needs, I need to format num...

Write a formal blog using XHTML CSS

The full name of Blog should be Web log, which mea...

WeChat applet custom scroll-view example code

Mini Program Custom Scroll-View Scroll Bar Withou...

docker-maven-plugin packages the image and uploads it to a private warehouse

Table of contents 1. Introduction to docker-maven...

How to smoothly upgrade and rollback Nginx version in 1 minute

Today, let's talk about a situation that is o...

JS implements a stopwatch timer

This article example shares the specific code of ...

Summary of MySQL date and time functions (MySQL 5.X)

1. MySQL gets the current date and time function ...

MySQL uses the truncate command to quickly clear all tables in a database

1. Execute the select statement first to generate...

A practical record of restoring a MySQL Slave library

Description of the situation: Today, I logged int...

Analysis of the Principles of MySQL Slow Query Related Parameters

MySQL slow query, whose full name is slow query l...