为远程 UNIX 系统设置显示环境变量
试图从我大学的 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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
只需这样做:
当从 Xterm、gnome-terminal 等终端仿真器运行时,这应该启动启用 X 转发的 ssh。当然,
username
应该是您在远程计算机上的帐户名。Just do:
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.在 PuTTY 中启用 X 转发。选项位于连接/SSH/隧道中。
Enable X forwarding in PuTTY. Option is in Connection/SSH/Tunnels.