索拉里斯。 xterm显示问题
我通过 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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
这是目标机器上 X 服务器的地址。 您需要对您正在使用的客户端计算机上的 X 服务器进行寻址。 最简单的方法是使用 ssh -X 或 -Y(参见 man ssh(1))
这只是建立一个 X 连接,通过 ssh 建立隧道。
否则,您可以手动完成
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
This just sets up an X connection, tunneled through ssh.
Otherwise, you can do it by hand as
正如 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.
将显示设置为您的 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.