#1. 在 Win10 的 Microsoft Store 中安裝了 ubuntu18.04,更換為國內源。
#2. 在 WSL 中安裝 xfce4 桌面環境
$ sudo apt-get install xfce4
#3. 配置 .bashrc
$ cd ~
$ nano .bashrc
在最后一行添加
export DISPLAY=:0.0
#4. 下載並安裝 VcXsrv Windows X Server
https://sourceforge.net/projects/vcxsrv/
Windows X-server based on the xorg git sources (like xming or cygwin's xwin), but compiled with Visual C++ 2012 Express Edition. Source code can also be compiled with VS2008, VS2008 Express Edition and VS2010 Express Edition, although current project and makefile are not fully compatible anymore.
#5. 先啟動 XLaunch
#6. 再在 WSL 中啟動 Xfce 會話
$ startxfce4
預覽

補充:關於瀏覽器
系統默認的 Web Browser 運行失敗,應該是 WSL 中沒有啟用瀏覽器支持。
可以參考 WSL(windows subsytem linux)下添加網絡瀏覽器支持 進行嘗試。

參考資料
https://medium.com/@dhanar.santika/installing-wsl-with-gui-using-vcxsrv-6f307e96fac0
https://www.smslit.top/2017/09/02/wsl-webbrowser/
