Install WSL (Windows only)
NOTE
On macOS and Linux, skip this page. Your computer can already run everything in this course. Go to Open a terminal.
NanoClaw can't run on Windows by itself. It runs inside WSL, a part of Windows that runs Linux. With WSL you get Ubuntu, a popular version of Linux, running inside Windows like any other app.
You install WSL once. After that, almost everything in this course happens inside Ubuntu: you type your commands into Ubuntu's terminal, and the tools on the next pages are installed in there. The one exception is Docker Desktop, a normal Windows app with its own installer.
This page uses PowerShell, a command window that comes with Windows. It is the only page in the course where you need it.
Check if it's already installed
Click Start and type PowerShell. Right-click Windows PowerShell and choose Run as administrator. Click Yes. Then run:
wsl -l -v- If you see a list with
Ubuntuin it, WSL and Ubuntu are already installed. Check the VERSION column next toUbuntu: it must say2. Then skip to step 3 below. - If it says
1, runwsl --set-version Ubuntu 2and wait. Version 1 is an older way of running Linux, and some of the programs in this course don't work properly on it. Then skip to step 3 below. - If you see an error, or a list without
Ubuntu, start at step 1.
Install it
In the same PowerShell window, type this command and press Enter:
powershellwsl --installWindows downloads WSL and Ubuntu. This takes a few minutes.
If the command only shows a help text, WSL is already on your computer. Run
wsl --install -d Ubuntuinstead.Restart your computer.
Click Start, type
Ubuntu, and open it. The first time, it takes a minute to finish setting itself up.Ubuntu asks you to make a username and a password. They don't need to match your Windows ones. While you type the password, nothing shows on the screen. That is normal. Remember this password: Ubuntu asks for it when you install things.
If Ubuntu doesn't ask, you already made them earlier. Use those.
In the Ubuntu window, update Ubuntu with this command:
bashsudo apt update && sudo apt upgrade -ysudomeans "run this as an administrator", so Ubuntu asks for the password you just made.
Check that it works
Open PowerShell again, the same way as before, and run:
wsl -l -vYou should see Ubuntu in the list, with 2 in the VERSION column. Close PowerShell: you won't need it again.
Next
WSL is ready. Next, open a terminal — on Windows, that means opening Ubuntu.