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 1 year has passed since last update.

Windows に Linux をインストールする

Last updated at Posted at 2024-03-25

概要

WSL を用いて、Windows に Linux をインストールする手順を記載する。

環境

OS: Windows 11 Home 64 bit
(Windows 10 バージョン 2004 以上、または Windows 11 であればインストール可能)

インストール手順

コマンドプロンプトを管理者として実行し、以下のコマンドラインを実行する

wsl --install

エラーメッセージが表示されていなければ OK
image.png

再起動したらウィンドウが開く
しばらくすると、UNIX のユーザーネーム/パスワードを決めるように求められるので、
入力すればインストール完了
image.png

参考:インストールされる Linux ディストリビューションの変更

インストールされる Linux ディストリビューションは、既定では Ubuntu となっている
ディストリビューションを変更したい場合は、以下のコマンドラインを実行する

wsl --install -d [ディストリビューション名]

利用可能なディストリビューションを確認するには、以下のコマンドラインを実行する

wsl --list --online

実行例:
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?