索拉里斯。 xterm显示问题

发布于 2024-07-16 04:13:12 字数 265 浏览 14 评论 0原文

我通过 SSH 从我的 Linux 计算机连接到 Solaris (10) 服务器。

但是,当我尝试使用“ xterm”打开另一个终端时,它不起作用。

我将 DISPLAY 环境变量设置为 127.0.0.1:0.0,但它给出以下错误:xterm Xt

错误:无法打开显示:127.0.0.1:0.0

请提出解决方案来纠正此问题。

谢谢

-迈克

I connect to a solaris (10) server through SSH from my linux machine.

However, when I attempt to open another terminal using " xterm" , then it does not work.

I set the DISPLAY env variable to 127.0.0.1:0.0, but it gives the following error:xterm Xt

error: Can't open display: 127.0.0.1:0.0

Please suggest a solution to rectify this.

Thanks

-Mike

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

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

发布评论

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

评论(3

迷离° 2024-07-23 04:13:12

这是目标机器上 X 服务器的地址。 您需要对您正在使用的客户端计算机上的 X 服务器进行寻址。 最简单的方法是使用 ssh -X 或 -Y(参见 man ssh(1))

客户端:ssh -Y Solaris

<块引用>

为了连接到远程计算机; 您也需要登录信息

这只是建立一个 X 连接,通过 ssh 建立隧道。

否则,您可以手动完成

客户
$回显$DISPLAY
客户端:3:4

<块引用>

记住它并不*总是*0.0

$ xhost +solaris

<块引用>

您必须允许来自远程计算机的连接

$ ssh Solaris

<块引用>

设置远程 shell,您仍然需要 ssh 登录信息

Solaris
$ 导出显示客户端:3.4

<块引用>

确保它是您正在使用的“客户端”上的服务器

$xterm

<块引用>

现在应该会在“客户端”上为您提供一个“solaris”xterm 窗口

That's the address of the X server on the target machine. You need to address the X server on the client machine on which you're working. The easiest way is to just use ssh -X or -Y, (see man ssh(1)) as

client: ssh -Y solaris

in order to connect to the remote machine; you need login info too

This just sets up an X connection, tunneled through ssh.

Otherwise, you can do it by hand as

client:
$ echo $DISPLAY
client:3:4

remember it's not *always* 0.0

$ xhost +solaris

You have to allow connections from the remote machine

$ ssh solaris

sets up a remote shell, you still need ssh login info

solaris:
$ export DISPLAY client:3.4

make sure its the server on 'client' you're using

$ xterm

This should now give you a 'solaris' xterm window on 'client'

明月夜 2024-07-23 04:13:12

正如 Charlie 提到的,连接时使用ssh -X 主机名

如果所有其他方法均失败,请在远程计算机上输入xhost +。 希望有帮助。

As Charlie mentioned, use ssh -X hostname when connecting.

If all else fails enter xhost + on your remote machine. Hope that helps.

盛装女皇 2024-07-23 04:13:12

将显示设置为您的 Linux IP 地址,而不是 localhost。

127.0.0.1 是 localhost :因此在 Solaris 服务器上,它是服务器本身。

Set the display to your linux IP address, not localhost.

127.0.0.1 is localhost : therefore on the Solaris server, it's the server itself.

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