产生一个新的 xterm 窗口

发布于 2024-07-05 08:16:39 字数 364 浏览 13 评论 0原文

当我使用 Bitvise Tunnelier 并生成一个新的 xterm 窗口连接到我们的太阳站时,一切运行良好。 我们在 sun station 上安装了 Visual slick edit,我被指示使用命令 vs& 打开它。 当我这样做时,我得到以下信息:

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>'

我不想将我的材料来回传输到服务器。 建议?

When I am using Bitvise Tunnelier and I spawn a new xterm window connecting to our sun station everything works nicely. We have visual slick edit installed on the sun station and I have been instructed to open it using the command 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?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

森林散布 2024-07-12 08:16:40

运行 vs 的 shell 中的 DISPLAY 环境变量是什么? 真的是“<默认显示>”吗? 如果是,请尝试将其设置为“:0”或“yourhostname:0”,然后再次运行 vs(您可能需要在主机上使用 xhost +)。

这只是帮助您解决此问题所需的澄清的一小部分。

What is your DISPLAY environment variable in the shell where you run vs? 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).

That's only a fraction of the clarifications needed to help you with this.

把梦留给海 2024-07-12 08:16:40

在带有显示器的系统上(启动隧道程序的系统):

xhost +fbm240-1

如果不是系统名称,请将 fbm240-1 替换为系统名称。 我猜的。

您还需要确保您的显示设置正确; 如果您正在使用 ssh 隧道,那么它应该已经(如果是 openssh,请使用 -Y;如果是 putty,则在 Connection->SSH->X11 下选择“启用 X11 转发”;如果是其他,则阅读文档)。 如果您正确设置了 X 隧道,那么您很可能根本不必与 xhost 搞混。

On the system with the display (the one you start the tunneler on):

xhost +fbm240-1

Replace fbm240-1 with the name of the system if that's not it. I guessed.

You also need to make sure your DISPLAY is set properly; 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). Most likely if you have X tunneling setup properly then you won't have to mess around with xhost at all.

只为守护你 2024-07-12 08:16:40

您的 Windows 机器上需要有一个 Xwindows 服务器,以便在 Sun 服务器上远程运行图形 Unix 应用程序并将其显示在您的 Windows 机器上。 我认为 Tunnelier 不支持 Xwindows 隧道。 看一下 Xming,一个用于 Windows 的 Xwindows 服务器,附带 Putty(一个 ssh 客户端):

http://sourceforge。 net/projects/xming

编辑: 很高兴看到这对您有用。 这是对正在发生的事情的更多解释。 X-Windows,Unix 图形环境是基于客户端-服务器的。 IE:它能够在远程系统上显示单独的图形窗口,而无需使用 VNC 或远程桌面等全屏软件。 Unix 中的图形程序称为 X-Windows 客户端,而实际进行显示的则称为 X-Windows 服务器。

现在,Bitvise Tunnelier 只是一个 ssh 客户端。 IE:它只处理命令行终端连接。 然而,ssh 协议实际上能够通过 ssh 隧道传输 X-Windows,但您需要两件事:1)在桌面上运行的 X-Windows 服务器(用于实际显示应用程序),以及 2)支持 X 的 ssh 客户端-Windows隧道。 输入 Xming(一个用于 Windows 的轻量级 X 服务器)和 Putty(ssh 客户端)。

因此,您可以通过 ssh 登录到 Sun 盒子并输入终端命令,但 Visual SlickEdit 是一个 X-Windows 客户端应用程序。 要运行它,您需要一个 X-Windows 服务器。 当 X-Windows 服务器可用时,它会在终端上设置 DISPLAY 变量,以告诉图形应用程序在哪里显示内容。

还有一点要注意:下面的一些答案建议您将 DISPLAY 变量设置为 Sun 盒子的主机名。 这可能有效,但它会在 Sun 的屏幕上显示 VS 窗口,而不是在您的 Windows 盒子上。

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. I don't think Tunnelier supports Xwindows tunneling. Take a look at Xming, an Xwindows server for Windows that comes with Putty, an ssh client:

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. IE: it's able to display individual graphical windows on remote systems without full-screen software like VNC or remote desktop. 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.

Now, Bitvise Tunnelier is just an ssh client. IE: it only deals with command-line terminal connections. 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. Enter Xming, a lightweight X server for windows, and Putty, the ssh client.

So, you were fine ssh-ing in to your Sun box, and typing terminal commands, but Visual SlickEdit is an X-Windows client app. To run that, you needed an X-Windows server. When an X-Windows server is available, it sets the DISPLAY variable on the terminal to tell graphical apps where to display stuff.

One more note: Some of the answers below recommended that you set the DISPLAY variable to the hostname of your Sun box. That might have worked, but it would have displayed the VS windows on the Sun's screen, not your Windows box.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文