ubuntu - 通过 SSH 连接到我的 Ubuntu Box (13.10) 时,Emacs 挂起

标签 ubuntu emacs ssh ubuntu-13.10

运行 Ubuntu 13.10,我无法在 sshing 到我的盒子时运行 emacs

ssh -l username someipaddress

当我运行 emacs 时,它只是挂起。

我最近也安装了 dbus-x11 。在安装 dbus-x11 之前,我在尝试运行 emacs 时会崩溃。
(emacs:3306): GConf-WARNING **: Client failed to connect to the D-BUS daemon:
//bin/dbus-launch terminated abnormally without any error message

(emacs:3306): GConf-WARNING **: Client failed to connect to the D-BUS daemon:
//bin/dbus-launch terminated abnormally without any error message

(emacs:3306): GConf-WARNING **: Client failed to connect to the D-BUS daemon:
//bin/dbus-launch terminated abnormally without any error message

(emacs:3306): GConf-WARNING **: Client failed to connect to the D-BUS daemon:
//bin/dbus-launch terminated abnormally without any error message

(emacs:3306): GConf-WARNING **: Client failed to connect to the D-BUS daemon:
//bin/dbus-launch terminated abnormally without any error message

(emacs:3306): GConf-WARNING **: Client failed to connect to the D-BUS daemon:
//bin/dbus-launch terminated abnormally without any error message

我有另一个 ubuntu 盒子(12.10)(虽然是 vm)从不同的提供商运行。但是我运行 emacs 没有问题。在这两种情况下,我都使用 apt-get 来安装 emacs。

最佳答案

听起来它正在尝试在 X 中运行 Emacs;而且您没有转发 X 显示。试试 emacs -nw在终端中运行它。或者,如果您从其 SSH 的机器正在运行 X,您可以添加 -X-Y在 SSH 命令行上转发 X - 这样您在远程运行的任何 X 程序都将在本地显示器上显示它们的窗口。

( -X-Y 不同之处在于 -Y 告诉 SSH 将远程 X 客户端视为受信任的;请参阅 What is the difference between ssh -Y (trusted X11 forwarding) and ssh -X (untrusted X11 forwarding)? 了解更多信息。我发现如果您使用 -X 并且有长时间运行的 X 转发SSH 连接,SSH 最终会关闭转发;我的理解是 -Y 直到关闭 SSH 连接才会发生。)

关于ubuntu - 通过 SSH 连接到我的 Ubuntu Box (13.10) 时,Emacs 挂起,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22415126/

相关文章:

Oracle SQL Developer 初始化欢迎页面时出现问题

C - 在 Ubuntu v12.10 上编译 OpenSSL 头文件的问题

c - 在 ubuntu 中使用数组与 popen 不起作用

r - Emacs ESS 模式 - 注释区域的 Tab 键切换

ruby - 从 Vagrant 启动时,Passenger 停留在前台

c - 如何在Linux中查找执行文件?

regex - 如何跳过 elisp 中的符号?

emacs - 按键绑定(bind)不起作用?如何配置

ssh - 从Ansible执行后台进程

ssh - Amazon EC2 ssh 登录失败