# 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>" %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://leftover-ice.gitbook.io/resources/ros/beginners-guide-to-ros/prerequisites/ubuntu-setup-windows-subsystem-for-linux-wsl.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
