設為首頁收藏本站

 取回密碼
 註冊
搜尋
熱搜: Redump discuz
檢視: 181|回覆: 3

【分享】 Windows WSL2 ubuntu with GUI

[複製連結]
發表於 2022年9月26日 13:25:51 | 顯示全部內容 |閱讀模式


(WSL commands: )
dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart
dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart
wsl --set-default-version 2

(download ubuntu from Microsoft store)
(Ubuntu GUI commands: )
sudo apt update && sudo apt -y upgrade
sudo apt-get purge xrdp
sudo apt install -y xrdp
sudo apt install -y xfce4
sudo apt install -y xfce4-goodies

sudo cp /etc/xrdp/xrdp.ini /etc/xrdp/xrdp.ini.bak
sudo sed -i 's/3389/3390/g' /etc/xrdp/xrdp.ini
sudo sed -i 's/max_bpp=32/#max_bpp=32\nmax_bpp=128/g' /etc/xrdp/xrdp.ini
sudo sed -i 's/xserverbpp=24/#xserverbpp=24\nxserverbpp=128/g' /etc/xrdp/xrdp.ini
echo xfce4-session > ~/.xsession

sudo nano /etc/xrdp/startwm.sh
(comment these lines to: )
#test -x /etc/X11/Xsession && exec /etc/X11/Xsession
#exec /bin/sh /etc/X11/Xsession

(add these: )
# xfce
startxfce4

sudo /etc/init.d/xrdp start

(in Windows, use Remote Desktop Connection)
localhost or ip addr
作者文章推薦
發表於 2022年10月1日 00:57:57 | 顯示全部內容
好像看片子都沒廣告耶?這是怎麼做到的
我要回覆(1)
我要回覆 開啟1條回覆
發表於 2022年10月1日 23:39:12 | 顯示全部內容
學習一下影片很棒
我要回覆
懶得打字嗎?讓本助手協助你 【使用進階編輯器請點選右方進階模式】
您需要登入後才可以回覆 登入 | 註冊

本版積分規則

手機版|Archiver|漁家小舖

GMT+8, 2024年4月25日 15:15 , Processed in 0.404740 second(s), 26 queries , Gzip On, Redis On.

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

快速回覆 返回頂端 返回清單