运行 Ubuntu 13.10,当我通过 ssh 连接到我的机器时,我无法运行 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。
答案1
如果您正在运行显示的命令,则不会导出 X 显示详细信息。您有两个选择:
命令行 emacs:
emacs -nw
从
man emacs
:-nw, --no-window-system Tell Emacs not to create a graphical frame. If you use this switch when invoking Emacs from an xterm(1) window, display is done in that window.
转发您的 X 服务器,这将允许您在服务器上运行本地显示器上显示的程序。您可以使用
-X
,或者假设这是本地的受信任网络,使用-Y
:ssh -Y username@someipaddress
从
man ssh
:-X Enables X11 forwarding. This can also be specified on a per-host basis in a configuration file. -Y Enables trusted X11 forwarding. Trusted X11 forwardings are not subjected to the X11 SECURITY extension controls.