Windows上的Git Bash中的X会话? [英] X session in Git Bash on Windows?

查看:83
本文介绍了Windows上的Git Bash中的X会话?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Windows上使用Git Bash. 我已经使用Git Bash将SSH SSH到UNIX计算机中,并尝试使用GUI运行程序. 我收到消息: 检测到LINUX/UNIX系统,但无法访问X11显示.

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 to access X11 display.

我有X-Win 32(商业).我还使用了Xming,它类似于X-Win 32的免费版本,但是某些图形有问题.

I have X-Win 32 (commercial). I've also used Xming which is like a free version of X-Win 32 but has problems with certain graphics.

有没有办法让此远程系统通过X-Win 32或Xming或通过任何方式访问X11显示器?

Is there a way I can get this remote system to access my X11 display through X-Win 32 or Xming or through any way ?

当通过Windows上的Git Bash SSH进入该计算机时,我只想运行UNIX之类的MATLAB之类的程序.

I'd just like to run programs like MATLAB, with a GUI popping up, from UNIX machines, when SSH'ed into that machine via Git Bash on Windows.

我还安装了PuTTY和Secure Shell Client,但希望以Git Bash的形式专门工作,因为它只需按下较少的按钮即可切换到其他计算机.

I also have PuTTY and Secure Shell Client installed, but would prefer to work exclusively form Git Bash because it requires less buttons to press in order to ssh to other machines.

如果无法在Git Bash上进行此工作,我想与PuTTY一起工作(Secure Shell Client很好,但是永久停止了更新).

If it's impossible to get this working on Git Bash I'd like to get it working with PuTTY (Secure Shell Client is good but has discontinued updates permanently).

推荐答案

这个Q很旧了,但是无论如何... 我(终于...)能够使用Git for WindowsXMing中的ssh命令使此工作正常.我要做的就是将DISPLAY环境变量设置为localhost:0.0(仅设置为:0.0).

This Q is rather old, but anyway... I was (at last...) able to get this working using the ssh command from Git for Windows and XMing. All I had to do was to set the DISPLAY environment variable to localhost:0.0 (it was set to only :0.0).

这篇关于Windows上的Git Bash中的X会话?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆