No more dual boot or VM! Let's build a Linux environment with WSL2 & Windows Terminal [WSL2]

Install WSL2 (Ubuntu)

Updated Windows version to Preview version

C:\Users\user1>ver
Microsoft Windows [Version 10.0.19041.21]

Install a Linux distribution

PS C:\Users\user1> wsl -l
The distribution is not installed on the Windows subsystem for Linux.
Distributions can be installed by visiting the Microsoft Store:
https://aka.ms/wslstore
Installing, this may take a few minutes...
Please create a default UNIX user account. The username does not need to match your Windows username.
For more information visit: https://aka.ms/wslusers
Enter new UNIX username: myuser
Enter new UNIX password:
myuser@DESKTOP-KH1ORKF:~$ ls
myuser@DESKTOP-KH1ORKF:~$ cd ..
myuser@DESKTOP-KH1ORKF:/home$

Enable WSL

dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart
dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart
PS C:\Users\user1> wsl -l
Windows subsystem distribution for Linux:
Ubuntu (default)
PS C:\Users\user1> wsl --set-version Ubuntu 2
Converting. This process can take a few minutes...
For the main differences from WSL 2, https://aka.ms/See wsl2
The conversion is complete.

Install Windows Terminal

Recommended Posts

No more dual boot or VM! Let's build a Linux environment with WSL2 & Windows Terminal [WSL2]
[Linux] Build a jenkins environment with Docker
[Linux] Build a Docker environment with Amazon Linux 2
Build a local development environment with WSL + Docker Desktop for Windows + docker-lambda + Python
I tried to build an environment with WSL + Ubuntu + VS Code in a Windows environment
Build Azure Pipelies with Azure DevOps in a Linux self-hosted environment
Build a LAMP environment with Vagrant (Linux + Apache + MySQL + PHP)
Build a Python environment with WSL + Pyenv + Jupyter + VS Code
Create a Python execution environment for Windows with VScode + Remote WSL
Build a 64-bit Python 2.7 environment with TDM-GCC and MinGW-w64 on Windows 7
Create a Linux environment on Windows 10
Build a CentOS Linux 8 environment with Docker and start Apache HTTP Server
Build Linux on a Windows environment. Steps to install Laradock and migrate
Steps to build a Django environment with Win10 WSL Ubuntu18.04 + Anaconda + Apache2
Easily build a development environment with Laragon
Build a Tensorflow environment with Raspberry Pi [2020]
Building a Python 3.6 environment with Windows + PowerShell
Build a Fast API environment with docker-compose
Build a python virtual environment with pyenv
Build a modern Python environment with Neovim
Let's install box2d-py with Windows 10 environment pip
Build a C language development environment with a container
Build a WardPress environment on AWS with pulumi
Install Windows 10 from a Linux server with PXE
Simply build a Python 3 execution environment on Windows
Build a python environment with ansible on centos6
Let's move OpenCv a little. mac or linux
[Python] Build a Django development environment with Docker
Create a python3 build environment with Sublime Text3
Build a Django environment with Vagrant in 5 minutes
[Memo] Build a virtual environment with Pyenv + anaconda
Build a virtual environment with pyenv and venv
Build a Django development environment with Doker Toolbox
Organize files on Windows with Linux commands-using WSL-
Build a Python environment with OSX El capitan
Quickly build a Python Django environment with IntelliJ
Build a mruby development environment for ESP32 (Linux)
Build a Python machine learning environment with a container
Build a python execution environment with VS Code