X session in Git Bash on Windows?

后端 未结 6 2009
爱一瞬间的悲伤
爱一瞬间的悲伤 2021-02-19 13:20

I\'m using Git Bash on Windows. I have used Git Bash to SSH into a UNIX machine and tried to run a program with a GUI. I got the message: LINUX/UNIX system detected, but unable

6条回答
  •  执念已碎
    2021-02-19 13:52

    An alternative to Xming is VcXsrv built using Visual Studio C++. The latest version of Xming now requires a donation.

    Point your mouse to the X icon in the status bar, and find out what port it runs on. If it is :0.0 (or :25.0), then in Git Bash: export DISPLAY=localhost:0.0 (or export DISPLAY=localhost:25.0). You may also need to use -Y instead of -X to your ssh command.

提交回复
热议问题