通过 SSH 和 Xming 获取 gnome-terminal [英] Getting gnome-terminal via SSH and Xming

查看:92
本文介绍了通过 SSH 和 Xming 获取 gnome-terminal的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在带有托管网络适配器的 VirtualBox 中运行 Ubuntu 16.04,Windows 上的所有内容.我已经在 Ubuntu 上设置了 openssh 监听端口 3220.我可以使用 PuTTY 成功登录,我可以运行 nautilus、gedit 等,并且通过 Xming 获取 GUI 没有问题.现在,当我运行 gnome-terminal 时出现错误

I'm running Ubuntu 16.04 in VirtualBox with a hosted network adapter, everything on Windows. I have set up openssh on Ubuntu listening to port 3220. I can log on successfully with PuTTY, I can run nautilus, gedit, etc. and get the GUI by Xming with no problem. Now when I run gnome-terminal I get an error

为 org.gnome.Terminal 构建代理时出错:/org/gnome/Terminal/Factory0:无法连接:连接被拒绝

Error constructing proxy for org.gnome.Terminal:/org/gnome/Terminal/Factory0: Could not connect: Connection refused

我将 DISPLAY 更改为几个不同的可能值,但没有一个可以工作.一些 SO 答案建议 :0:1.其他人建议将IP地址放在列符号前面,我尝试了所有.我的系统中的默认值是 localhost:10.0.

I changed DISPLAY to several different possible values but none could work. Some SO answers suggest either :0 or :1. Someone else suggested putting IP address in front of the column symbol, and I tried all. The default value in my system is localhost:10.0.

我的问题是:我的设置中有 3 个显示数字".Xming 声称其服务器位于 0.0,PuTTY 在配置中有一个值(未设置时的默认值为 :0),而 Ubuntu(通过 SSH)有一个变量 DISPLAY.这些数字之间有什么关系,我应该如何协调它们以使事情发挥作用?

My question is: There are 3 display "numbers" present in my setting. Xming claims its server at 0.0, PuTTY has a value in configuration (default when unset is :0), and Ubuntu (via SSH) has a variable DISPLAY. What are the relations between these numbers, and how should I coordinate them to get things work?

推荐答案

已有讨论 在这个问题上.以下应该解决这个问题.

There has been a discussion in this issue. The following should work around the problem.

dbus-launch gnome-terminal

这篇关于通过 SSH 和 Xming 获取 gnome-terminal的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆