在远程机器上执行 gnome-terminal

发布于 2025-01-17 12:46:27 字数 245 浏览 3 评论 0原文

我在远程计算机上部署了 Ubuntu 16 服务器。我通过 ssh 连接,我想要完成的是使用 gnome-terminal 命令打开一个新终端。我想这样做是因为我有一个执行此命令的 python 脚本,并且需要第二个终端来执行它生成的进程。我收到的错误消息是

无法连接到 Mir:无法连接到服务器套接字:没有这样的文件或目录无法初始化服务器:无法连接:连接被拒绝无法解析参数:无法打开显示:

有什么办法可以解决这个问题吗?

I have an Ubuntu 16 server deployed on a remote machine. I am connecting via ssh and what I want to accomplish is to open a new terminal using the gnome-terminal command. I want to to do this because I have a python script that executes this command and needs a second terminal for a process it spawns. The error message I get is

Failed to connect to Mir: Failed to connect to server socket: No such file or directory Unable to init server: Could not connect: Connection refused Failed to parse arguments: Cannot open display:

Is there any way around this?

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

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

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文