# 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="https://1375086659-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FPvjB9UuBzGwkyWVheSoO%2Fuploads%2F96qB1IxXNxgYIjF9jPrF%2Fimage.png?alt=media&#x26;token=d5a8fd69-23cb-4918-8b5e-2994027f041a" 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>" %}
