0
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.

Windows11にUbuntu(WSL)をインストール

Posted at

動作環境

Windows 11
バージョン 21H2(OSビルド 22000.832)

インストール手順

管理者権限でPowerShellを起動して wsl --install を実行してください。

PS C:\WINDOWS\system32> wsl --install
インストール中: 仮想マシン プラットフォーム
仮想マシン プラットフォーム はインストールされました。
インストール中: Linux  Windows サブシステム
Linux  Windows サブシステム はインストールされました。
ダウンロード中: Ubuntu
要求された操作は正常に終了しました。変更を有効にするには、システムを再起動する必要があります。

コマンド実行後にPCを再起動すると、既定でインストールされた「Ubuntu」が起動します。
ユーザー名とパスワードを尋ねられるので任意で入力してください。

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: [任意のユーザー名]
New password: [任意のパスワード]
Retype new password: [上記と同じパスワード]
passwd: password updated successfully
Installation successful!
To run a command as administrator (user "root"), use "sudo <command>".
See "man sudo_root" for details.

Welcome to Ubuntu 20.04 LTS (GNU/Linux 5.10.102.1-microsoft-standard-WSL2 x86_64)

これでインストール完了です。

インストール後の確認事項

パッケージの更新 & アップグレード

自動的に更新やアップグレードが行われないため、自分で実行する必要があります。
インストール後にはとりあえず実行しておいた方が良いです。

sudo apt update && sudo apt upgrade

ファイルの保存場所

GUIから開く方法

エクスプローラーを開いて、左のナビゲーションウィンドウから「Linux」をクリックしてください。
explorer.png

Ubuntuターミナルから開く方法

以下のコマンドを実行してください。
現在のディレクトリがエクスプローラーで開きます。

explorer.exe .
0
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
0
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?