在 Windows 10 下啟用 Ubuntu 桌面環境
---日期: Jul 13, 2016
標籤:
- WSL
語言: English 正體中文
---
這篇文章已經超過 6 年了。如果這是篇技術性文章,它很大可能已經不再有效,但是你可以嘗試它並檢查它是否仍然有效。
從BashOnWindows GitHub網站上的文章 進行整理和翻譯。
現在,只要你利用X server, CCSM, Compiz和其他元件,與Bash On Ubuntu On Windows相互配合,你現在可以在Windows 10上直接執行Linux桌面環境.
除非你是Linux發燒友,不建議使用此Linux桌面環境。
Unity桌面環境
-
在 Bash On Windows執行以下程式碼:
1
2echo "export DISPLAY=:0.0" >> ~/.bashrc
sudo sed -i 's$<listen>.*</listen>$<listen>tcp:host=localhost,port=0</listen>$' /etc/dbus-1/session.conf -
安裝VcXsrv並開啟XLaunch。 選擇 “One large window” 並在display number 輸入0,如圖:
一路next下去就行,直到他完成配置 -
開啟Bash On Windows並安裝 ubuntu-desktop,unity 和 ccsm:
1
sudo apt-get install ubuntu-desktop unity compizconfig-settings-manager
輸出顯示:
1
export DISPLAY=localhost:0
並開啟ccsm。
-
ccsm中可能顯示不出滑鼠指針,因為沒有載入玩所有內容。如圖選擇外掛。
-
現在關閉ccsm並開啟 compiz.
Compiz會花些時間載入,稍稍等待下桌面環境就會出現
-
關閉桌面環境的方法只能是關閉bash視窗,或者殺Compiz程序。
XFCE桌面環境
- 使用與Unity同樣的方法配置VcXsrv。(1-4步)
- 安裝xfce4-session:並執行xfce4-session.
1
sudo apt-get install xfce4-session