WSL安装xfce4

时间:2023-03-09 09:10:07
WSL安装xfce4
参考:https://github.com/Microsoft/WSL/issues/637

安装组件

1. win10 上安装 Xming
https://sourceforge.net/projects/xming/
https://jaist.dl.sourceforge.net/project/xming/Xming/6.9.0.31/Xming-6-9-0-31-setup.exe 2. Bash 安装 Xfce 4
$ sudo apt-get update
$ sudo apt install xfce4
$ vim ~/.bashrc
在开始位置加入:
export DISPLAY=localhost:0
保存退出后,退出bash 启动步骤 1. 启动Xming
选择 One large window
Display number 默认是0
其他默认即可。会出现一个空窗口。
2. 启动bash
$ startxfce4
3. 退出xfce4时候,注销,bash即可返回提示符。