作者:丶希_ | 来源:互联网 | 2024-10-21 16:41
从windowsstore安装DebianWSL安装dbussudoaptinstalldbus-x11对于ubuntu18.04增加了更多安全机制补充sudoapt-getins
从windows store 安装 Debian WSL

安装dbus
sudo apt install dbus-x11
对于ubuntu18.04增加了更多安全机制
补充
sudo apt-get install -y libx11-xcb1 libxrandr2 libasound2 libpangocairo-1.0-0 libatk1.0-0 libatk-bridge2.0-0 libgtk-3-0 libnss3 libxss1
然后给wsl安装 desktop 组件
sudo apt install xfce4
大概需要1G的存储
安装 VcXsrv



开启后使用很关键的命令来开启
export display=localhost:0
xfce4-session

然后就可以使用了

祝顺利