1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

Windows10にWSL2をセットアップする

Last updated at Posted at 2022-01-25

Ubuntu-20.04をインストール

Powershellを起動して、下記コマンドでインストーラをダウンロード&インストールします。

powershell
# Ubuntu.appxというファイル名としてダウンロード
Invoke-WebRequest -Uri https://aka.ms/wslubuntu2004 -OutFile Ubuntu.appx -UseBasicParsing

# ダウンロードしたファイルを元にアプリインストール
Add-AppxPackage .\Ubuntu.appx

# Versionを1から2に変更する
wsl --set-version Ubuntu-20.04 2

# Versionを確認する
wsl -l -v

VERSIONが2になっていればOK
image.png

Ubuntu-20.04の設定

以下ユーザー名の入力を求められたら何も入力せず、ウィンドウを閉じましょう
そうすることでrootで自動ログインできます。
image.png

以上

1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?