为远程 UNIX 系统设置显示环境变量

发布于 2024-10-14 09:39:29 字数 267 浏览 10 评论 0原文

试图从我大学的 UNIX 系统中获取一些图形网络模拟器(ns2)代码来显示。我的本地操作系统是Ubuntu 10,我通过PuTTY SSH客户端访问unix系统。当执行一些预先编写的代码时,会出现以下错误提示:

no display name and no $DISPLAY environment variable

如何才能使远程执行的代码显示在我的系统上?我是一个 UNIX 新手,我尝试重新定义 $DISPLAY 环境变量的尝试失败了。谢谢。赞赏。

Trying to get some graphical network simulator (ns2) code to display from my university's unix system. My local OS is Ubuntu 10 and I am accessing the unix system through PuTTY SSH client. When some prewritten code is executed, the following error prompt occurs:

no display name and no $DISPLAY environment variable

What can be done to get remotely executed code to display on my system? I am a total novice with unix and my attempts at redefining the $DISPLAY env var were spectacular failures. Thanks. Appreciated.

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

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

发布评论

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

评论(2

初与友歌 2024-10-21 09:39:29

只需这样做:

$ ssh -X [email protected]

当从 Xterm、gnome-terminal 等终端仿真器运行时,这应该启动启用 X 转发的 ssh。当然,username 应该是您在远程计算机上的帐户名。

Just do:

$ ssh -X [email protected]

This should launch ssh with X forwarding enabled, when run from a terminal emulator like Xterm, gnome-terminal and the like. username should be your account name on the remote computer, of course.

爱你不解释 2024-10-21 09:39:29

在 PuTTY 中启用 X 转发。选项位于连接/SSH/隧道中。

Enable X forwarding in PuTTY. Option is in Connection/SSH/Tunnels.

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