Windows10 子系統 Ubuntu安裝


Windows 10 開始微軟開始加入了一項新技術,就是允許在Windows系統上運行Linux子系統,據我研究該系統並不是獨立的系統,而是通過了某種方式讓Windows可以直接運行ELF格式的文件,該方法的優勢非常的明顯,就是可以節約非常多的系統資源,比我們使用的虛擬機要節約得多,而且啟動速度非常快,接下來就開始安裝。

請確保您的系統在以下版本以上,默認是17763以上才會有這項技術。

主機名:           DELL
OS 名稱:          Microsoft Windows 10 企業版 LTSC
OS 版本:          10.0.17763 暫缺 Build 17763

1.直接在控制面板上,找到程序,程序和功能,然后點擊啟動或關閉windows功能。

  1. 確保你已經安裝好了 適用於Linux的windows子系統,打勾並確定,然后需要重啟一下的。

3.去微軟官方下載你喜歡的鏡像,這里我建議使用ubuntu 18.04 其他版本各種問題。

官方地址: https://docs.microsoft.com/en-us/windows/wsl/install-manual

4.然后將壓縮包解壓到你喜歡的任意路徑下,點擊ubuntu.exe運行過程中需要輸入用戶名密碼,等待一會即可,如果出現沖突,可能是前期安裝過,可以使用命令清理記錄,並重新安裝。

5.安裝好以后打開是這樣的,窗口圖案時自己加的.

6.官方源下載慢,可以配置阿里雲下載源地址,vim /etc/apt/sources.list 寫入記錄,保存並執行命令生成緩存 sudo apt update

deb http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-proposed main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-proposed main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ bionic-backports main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-backports main restricted universe multiverse

7.安裝圖形界面,依次執行以下命令。

安裝 xorg
sudo apt-get install xorg

安裝xfce4
sudo apt install xfce4-terminal
sudo apt-get install xfce4

安裝xrdp
sudo apt-get install xrdp

8.寫入配置文件,並啟動遠程桌面。

配置xrdp
sudo sed -i 's/port=3389/port=3390/g' /etc/xrdp/xrdp.ini

向xsession中寫入xfce4-session
sudo echo xfce4-session >~/.xsession

重啟xrdp服務 sudo service xrdp restart

9.直接使用系統自帶的遠程工具鏈接即可。登陸成功,顯示Ubuntu的圖形界面。

10.這個系統實在是太小了,占內存小得很,而且進程信息都可以在本機任務管理器中看到,不想玩了直接結束掉init進程,全部都會釋放,方便穩定干凈。


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM