Linux 服务器上的 Haxe 应用程序和 Gtk-WARNING

发布于 2024-08-03 12:51:20 字数 408 浏览 5 评论 0原文

我正在尝试由 Edwin Van Rijkom 创建的名为 FAR (Flash Archiver) 的 Haxe 编译解决方案 ( http://code.google.com/p/vanrijkom-flashlibs/),它使用命令行工具来创建压缩档案。

在我的 ubuntu 笔记本电脑上本地运行 FAR 工具时,一切正常。 在我的 Ubuntu 和 Debian 服务器上远程运行(终端作为 root)时,出现以下错误: Gtk-警告 **:无法打开显示:

我已尝试联系 Edvin 解决此问题,但到目前为止没有回复。 也许与服务器上的安装或用户权限有关?

有什么线索吗?

I'm trying a Haxe-compiled solution called FAR (Flash Archiver) created by Edwin Van Rijkom (http://code.google.com/p/vanrijkom-flashlibs/) wich uses a command-line tool for creating compressed archives.

When running the FAR tool locally on my ubuntu laptop, everything works fine.
When running remotely (terminal as Root) on my Ubuntu and Debian servers, it gives the following error:
Gtk-WARNING **: cannot open display:

I've tried to reach Edvin about this, but no response so far.
Maybe it has something to do with installation or user rights on the server?

Any clue?

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

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

发布评论

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

评论(1

夜血缘 2024-08-10 12:51:20

远程登录时,请使用 ssh 的 -X 参数,以便 X 应用程序可以访问您的 X 显示。您还需要在 /etc/ssh/sshd_config 中启用 X11Forwarding,默认情况下可能是这样。此外,以 root 身份运行 ssh 会导致攻击者尝试破坏您的 root 帐户;特别是如果您使用密码身份验证而不是公钥。

When logging in remotely, use the -X argument to ssh so X applications can reach your X display. You will need X11Forwarding enabled in /etc/ssh/sshd_config also, which by default it probably is. Also, running ssh as root allows attackers to attempt to compromise your root account; Especially if you are using password authentication instead of pub-key.

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