WSL stands for Windows Subsystem for Linux—this essentially creates a Linux virtual machine that’s deeply integrated into your Microsoft Windows system. If you’re on Microsoft Windows, please use WSL. We’ve had students who used MinGW and other runtimes—they had a much harder time developing their projects.
These steps were verified to work on Microsoft Windows 11 x64 23H2. They may work on previous versions of Microsoft Windows (down to Windows 10), but it’s not guaranteed. Please seek help in office hours if you get stuck.
Here are the steps to get WSL set up:
control
, hit enter)
> Programs and Features > Turn Windows features on or off. Select
Windows Subsystem for Linux.
wsl.exe --update
wsl.exe --install Ubuntu-22.04
ubuntu
. Follow the
prompts to set up your UNIX username and password.
sudo apt update
sudo apt install -y git
You’ve now got a working WSL install!
We’ll be using Docker, which is a form of containerization software that creates isolated environments according to certain specifications, to replicate our autograding environment. Feel free to read more about it here. All you really need to know is that it’s very similar to a virtual machine.
Let’s install Docker on your system. Head over to https://www.docker.com and click on the install button for your machine. Follow the installation instructions. (On Microsoft Windows, make sure the WSL 2 option is selected. If you forgot to do this/you already have Docker Desktop installed, visit this page for more information.)
Visual Studio Code (VSC) also has great WSL support for Microsoft Windows users.
Head over to https://code.visualstudio.com to download and install the appropriate version of VSC. Follow the instructions and any prompts.
Launch VSC. Follow these instructions if you’re on WSL: