Skip to content
XXD VPS Guide
中文
  1. How-to
  2. AI tools
  3. Install WSL on Windows

Install WSL on Windows

About 15 minutes (one restart)For: Windows usersMain guide step 2: Set up an AI assistant

What it is

WSL is a Linux environment built into Windows. This setup’s scripts need Linux tools such as bash and ssh; with WSL, Windows can run them just like a Mac.

Requirements: Windows 11, or a reasonably recent Windows 10 (updated since 2020).

1. Install

  1. Open the Start menu, search for “PowerShell”, and on “Windows PowerShell” right-click → Run as administrator.
  2. Paste this command and press Enter:
Run in an administrator PowerShell
wsl --install
  1. Wait for the download and install to finish, then restart the computer when prompted.

2. Open Ubuntu for the first time

After restarting, an Ubuntu window opens automatically (if not, search the Start menu for “Ubuntu”). The first time it asks you to:

  1. choose a username (lowercase English, e.g. me);
  2. set a password — nothing shows on screen while typing; that’s normal — press Enter and type it again.

You’ll need this password for sudo commands later, so remember it.

3. Install a few tools

Run this in the Ubuntu window (it asks for the password you just set):

Run in the Ubuntu window
sudo apt update && sudo apt install -y git unzip curl

You should see

You can open “Ubuntu” from the Start menu, and the window shows a line ending in $. From now on, “terminal” in this guide means this window on Windows.

Where your files are

WSL’s files are separate from Windows’. Type explorer.exe . (note the final dot) in the Ubuntu window to open the current folder in File Explorer — for example, to find the login-info file.

Stuck?

It says virtualization must be enabled?

Restart into the BIOS and enable Intel VT-x or AMD-V (names vary by motherboard), then run the install command again.

wsl --install only prints help text?

WSL is already installed. Search the Start menu for “Ubuntu”; if it isn’t there, run wsl --install -d Ubuntu.

This setup is for you and your family only. Follow local laws and each site's and AI tool's terms of use. Open source (MIT) — code and feedback on GitHub.