> For the complete documentation index, see [llms.txt](https://leftover-ice.gitbook.io/resources/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://leftover-ice.gitbook.io/resources/ros/beginners-guide-to-ros/prerequisites/ubuntu-setup-windows-subsystem-for-linux-wsl.md).

# Ubuntu Setup - Windows Subsystem for Linux (WSL)

1. Search on Windows: "Turn Windows Features on or off" and Enable "Windows Subsystem for Linux"

<figure><img src="/files/rnRHRFYNFzcV8TFSGryp" alt=""><figcaption></figcaption></figure>

2. Restart your Computer
3. Open Powershell and start installing WSL and Ubuntu Distribution of Choice

```
wsl --install
```

To use WSL2 instead of WSL1,

```
wsl --set-default-version 2
```

Since I am using Ubuntu 22.04, for WSL, run the following to set up Ubuntu 22.04 in WSL2,

```
wsl --install Ubuntu-22.04
```

To set Ubuntu 22.04 as the default distribution for WSL2,

```
wsl --set-default Ubuntu-22.04
```

For more info, look here

{% embed url="<https://learn.microsoft.com/en-us/windows/wsl/install>" %}
