Using X server in Windows Linux Subsystem

1. Turn on “Developer Mode” in Control panel.
developer-mode
sss

2. Run “bash”
bash

3. Install Xming(Xserver for Windows)
Download

4. Launch your app

# export DISPLAY=:0
# firefox

launch

5. You can create a link on your desktop like this
aaa

and ~/.bashrc

alias home='cd /mnt/c/Users/rex/Desktop'
home
export DISPLAY=:0

Tips:

Use “powershell bash” instead of “bash”, you can access your service in this way.

发表评论

您的电子邮箱地址不会被公开。