参考: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即可返回提示符。

 

相关文章:

  • 2021-05-11
  • 2021-12-17
  • 2022-12-23
  • 2021-11-19
  • 2022-01-21
  • 2021-11-16
  • 2021-11-12
猜你喜欢
  • 2021-07-11
  • 2022-12-23
  • 2022-12-23
  • 2021-10-21
  • 2021-04-18
  • 2022-12-23
  • 2022-01-29
相关资源
相似解决方案