iTranslated by AI

The content below is an AI-generated translation. This is an experimental feature, and may contain errors. View original article
💻

Installing WSL

に公開
2

https://zenn.dev/ohno/books/356315a0e6437c/viewer/3fefe4

I also explain this in the book mentioned above. I will explain the installation procedure as of January 2022.

Steps

Following the official Microsoft explanation:
https://docs.microsoft.com/en-us/windows/wsl/install
should allow you to install it. Most of the time, people fail because they miss something important.

Yes, you must launch PowerShell with administrator privileges. To run it with administrator privileges, find PowerShell in the Start menu and right-click it.

Simply type wsl --install into the PowerShell window that appears after right-clicking and press Enter.

A restart will likely be required. After restarting, launch "Start Menu > Microsoft Store," search for Ubuntu, and install it.

If Ubuntu has been added to the Start menu and you can launch it, the installation is successful.

If it fails

Let me say this first: it's the "Control Panel," not "Settings." Open "Start Menu > Windows System Tools > Control Panel." Click on "Programs > Turn Windows features on or off."

A new window will open. Check the box for "Windows Subsystem for Linux" and then press "OK." A restart will likely be required here.

Launch "Start Menu > Microsoft Store," search for Ubuntu, and install it.

If Ubuntu has been added to the Start menu and you can launch it, the installation is successful.

Usage

I was shocked when I Googled how to use Linux; information that could not be called high-quality even as a compliment was dominating the top results. It might have become an era where it is no longer possible for beginners to learn how to use Linux just by searching on Google. However, it is inherently difficult, so I think it is faster to be taught by someone. There should be at least one Linux-related lecture offered at your university, so I recommend taking it. If you are self-studying, I recommend buying any book or referring to the following PDFs.

Also, it is a good idea to refer to these steps so you can transfer files between Windows and Linux.
https://zenn.dev/ohno/articles/13af6f4e1588a5

Q&A

  • Some incomprehensible English and a URL starting with https://aka... were displayed.
    → Access that URL as it says.
  • I was taken to the Microsoft Store.
    → Please install Ubuntu.
  • I was asked for a password, but nothing happens when I type.
    → It is being entered, but just not displayed. Since you do not know what has been entered, hit backspace about 30 times to clear everything and then try typing it again.
  • (Y/n) was displayed.
    → For now, type Y and press Enter.

Discussion

kazuakikazuaki

タイトルの"WLSのインストール"は"WSL"じゃないですか?

大野 周平大野 周平

おっしゃる通りです。修正しました。
ご指摘ありがとうございます。