运行 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/