LoginSignup
0
0

WSL ってどうやってインストールするの??

Posted at

how to install wsl2

  1. windows の機能の有効化または無効化

    1. Linux 用 Windows サブシステムを有効化
      Windows の機能のキャプチャ
  2. install applications from Microsoft Store

    1. Ubuntu
      Ubuntu
    2. vscode
      vscode
  3. powershell で実行

    1. ubuntu をディストリビューションとしてインストール

      wsl --install -d Ubuntu
      

      実行結果

    2. 文字化けエラーが出たのでアプデして対処

      wsl --update
      

      実行結果

    3. 任意のユーザー名・パスワードを設定

      実行結果

    4. wsl 内に入っていることを確認

      pwd
      ll
      

      実行結果

    5. wsl のバージョンが2であることを確認

      1. wsl から退出

        exit
        
      2. powershell で確認

        wsl -l -v
        

      実行結果

  4. vscode で開いてみる
    F1 or ctrl+shift+p でコマンドパレットを開き、
    >wsl: Connect to WSL より wsl を起動する

    wsl起動
    実行結果

  5. vscode のターミナルを開く
    ctrl+shift+`で新しいターミナルを開くと wsl のターミナル操作ができて幸せになれます。
    実行結果

参考サイト

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