![当我通过 SSH 连接到我的 Ubuntu Box (13.10) 时,Emacs 挂起了,](https://linux22.com/image/1045398/%E5%BD%93%E6%88%91%E9%80%9A%E8%BF%87%20SSH%20%E8%BF%9E%E6%8E%A5%E5%88%B0%E6%88%91%E7%9A%84%20Ubuntu%20Box%20(13.10)%20%E6%97%B6%EF%BC%8CEmacs%20%E6%8C%82%E8%B5%B7%E4%BA%86%EF%BC%8C.png)
运行 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.