简体   繁体   English

产生一个新的xterm窗口

[英]spawn a new xterm window

When I am using Bitvise Tunnelier and I spawn a new xterm window connecting to our sun station everything works nicely. 当我使用Bitvise Tunnelier时,我产生了一个新的xterm窗口,该窗口连接到我们的Sun Station,一切正常。 We have visual slick edit installed on the sun station and I have been instructed to open it using the command vs&. 我们在sun station上安装了直观的编辑,并指示我使用vs&命令打开它。 When I do this I get the following: 当我这样做时,我得到以下信息:

fbm240-1:/home/users/ajahn 1 % vs&
[1] 4716
fbm240-1:/home/users/ajahn 2 % Visual SlickEdit: Can't open connection to X. DIS
PLAY='<Default Display>'

I would rather not go jumping through hoops ftping my material back and forth to the server. 我宁愿不跳篮球将我的资料来回传送到服务器。 Advice? 忠告?

You're going to need an Xwindows server on your Windows box in order to run graphical Unix apps remotely on the Sun server and have it display on your Windows box. 您将需要Windows框上的Xwindows服务器,以便在Sun服务器上远程运行图形化Unix应用程序并将其显示在Windows框上。 I don't think Tunnelier supports Xwindows tunneling. 我不认为Tunnelier支持Xwindows隧道。 Take a look at Xming, an Xwindows server for Windows that comes with Putty, an ssh client: 看一下Xming,这是SSH客户端Putty随附的Windows的Xwindows服务器:

http://sourceforge.net/projects/xming http://sourceforge.net/projects/xming

edit: Glad to see this worked for you. 编辑:很高兴看到这为您工作。 Here's some more explanation on what's happening. 这是关于发生的事情的更多解释。 X-Windows, the Unix graphical environment is client-server based. 在X-Windows中,Unix图形环境基于客户端-服务器。 IE: it's able to display individual graphical windows on remote systems without full-screen software like VNC or remote desktop. IE:无需使用VNC或远程桌面等全屏软件,即可在远程系统上显示单个图形窗口。 A graphical program in Unix is called the X-Windows client, and the thing that actually does the displaying is called an X-Windows server. Unix中的图形程序称为X-Windows客户端,而实际显示的内容称为X-Windows服务器。

Now, Bitvise Tunnelier is just an ssh client. 现在,Bitvise Tunnelier只是一个ssh客户端。 IE: it only deals with command-line terminal connections. IE:它仅处理命令行终端连接。 However, the ssh protocol is actually able to tunnel X-Windows over ssh, but you need two things: 1) an X-Windows server running on your desktop (to actually display the app), and 2) an ssh client that supports X-Windows tunneling. 但是,ssh协议实际上能够通过ssh隧道传输X-Windows,但是您需要做两件事:1)在桌面上运行的X-Windows服务器(以实际显示应用程序),以及2)支持X的ssh客户端Windows隧道。 Enter Xming, a lightweight X server for windows, and Putty, the ssh client. 输入用于Windows的轻型X服务器Xming和ssh客户端Putty。

So, you were fine ssh-ing in to your Sun box, and typing terminal commands, but Visual SlickEdit is an X-Windows client app. 因此,您可以将其插入Sun框并键入终端命令,但是Visual SlickEdit是X-Windows客户端应用程序。 To run that, you needed an X-Windows server. 要运行该程序,您需要一个X-Windows服务器。 When an X-Windows server is available, it sets the DISPLAY variable on the terminal to tell graphical apps where to display stuff. 当X-Windows服务器可用时,它将在终端上设置DISPLAY变量,以告知图形应用程序在何处显示内容。

One more note: Some of the answers below recommended that you set the DISPLAY variable to the hostname of your Sun box. 另一个注意事项:以下某些答案建议您将DISPLAY变量设置为Sun box的主机名。 That might have worked, but it would have displayed the VS windows on the Sun's screen, not your Windows box. 那可能行得通,但是它会在Sun屏幕上而不是Windows框上显示VS窗口。

What is your DISPLAY environment variable in the shell where you run vs? 在您运行vs的shell中,您的DISPLAY环境变量是什么? Is it really "<Default Display>"? 真的是“ <默认显示>”吗? If yes, try setting it up to ":0" or " yourhostname :0" and then running vs again (you might need to use xhost + on your host). 如果是,请尝试将其设置为“:0”或“ yourhostname :0”,然后再次运行vs(您可能需要在主机上使用xhost + )。

That's only a fraction of the clarifications needed to help you with this. 这只是为您提供帮助所需的澄清说明的一小部分。

On the system with the display (the one you start the tunneler on): 在带显示屏的系统上(在其上启动隧道器的系统):

xhost +fbm240-1 xhost + fbm240-1

Replace fbm240-1 with the name of the system if that's not it. 如果不是,请用系统名称替换fbm240-1。 I guessed. 我猜的。

You also need to make sure your DISPLAY is set properly; 您还需要确保正确设置了DISPLAY。 if you're using ssh tunneling then it should be already (if openssh, use -Y; if putty then select "Enable X11 forwarding" under Connection->SSH->X11; if other, then read the docs). 如果您正在使用ssh隧道,则它应该已经存在(如果使用openssh,请使用-Y;如果使用腻子,请在Connection-> SSH-> X11下选择“启用X11转发”;如果使用其他,则请阅读文档)。 Most likely if you have X tunneling setup properly then you won't have to mess around with xhost at all. 最有可能的是,如果您正确地设置了X隧道,那么您根本不必弄乱xhost。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM