> For the complete documentation index, see [llms.txt](https://kawsing.gitbook.io/opensystem/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://kawsing.gitbook.io/opensystem/windows/windows-wsl2.md).

# windows WSL2

{% embed url="<https://docs.microsoft.com/zh-tw/windows/wsl/wsl2-install>" %}

檢查目前 OS build

![](/files/-M3U53RH7upaWhloU3t_)

![](/files/-M3V-85Xr9vzpIA2gEFm)

![](/files/-M3U5FQYOac_Hp3gk42B)

以開發人員選項，安裝previview版本

![](/files/-M3U3-HIctUIpZhhCAQ4)

![](/files/-M3V4HxkF4lr7s0xF0dY)

```
>wsl -l -v
  NAME      STATE           VERSION
* Ubuntu    Running         2
```

注意，運行的內核是Microsoft Linux核心

```
uname -a
Linux kawsing-TN-notebook 4.19.104-microsoft-standard #1 SMP Wed Feb 19 06:37:35 UTC 2020 x86_64 x86_64 x
```

```
sudo apt-get install lxde-core
```

```

PS C:\Users\user-3> wsl -l -v
  NAME            STATE           VERSION
* Ubuntu          Running         2
  Ubuntu-20.04    Stopped         1
PS C:\Users\user-3> wsl --set-version Ubuntu-20.04 2
正在進行轉換，這可能需要幾分鐘的時間...
有關 WSL 2 的主要差異詳細資訊，請瀏覽 https://aka.ms/wsl2
轉換完成。
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://kawsing.gitbook.io/opensystem/windows/windows-wsl2.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
