分页: 1 / 1

求助:超级用户无法使用EMACS

发表于 : 2012-04-21 19:26
VIP用户
在普通用户使用EMACS 正常,但是在超级用户运行EMACS,就存在问题。
具体如下:
[ryan@localhost ~]$ emacs prac
[ryan@localhost ~]$ emacs
[ryan@localhost ~]$ su
密码:
[root@localhost ryan]# emacs
GConf 错误:联系配置服务器失败,可能的原因是没有或不当配置的 D-Bus 会话总线守护进程。请访问 http://projects.gnome.org/gconf/ 了解详细信息。(详细信息 - 1: 获取到会话的连接失败:连接已关闭)
g_dbus_connection_real_closed: Remote peer vanished with error: Underlying GIOStream returned 0 bytes on an async read (g-io-error-quark, 0). Exiting.
已终止
[root@localhost ryan]#
具体的就是这样,在ryan的用户就可以正常使用,在root的用户就不可以使用,具体怎么解决,请高手大神解决,小弟在此谢过。

Re: 求助:超级用户无法使用EMACS

发表于 : 2012-04-21 20:05
lilydjwg
换 vim :em04

代码: 全选

su -

Re: 求助:超级用户无法使用EMACS

发表于 : 2012-04-21 20:48
xvii
VIP用户 写了:在普通用户使用EMACS 正常,但是在超级用户运行EMACS,就存在问题。
具体如下:
[ryan@localhost ~]$ emacs prac
[ryan@localhost ~]$ emacs
[ryan@localhost ~]$ su
密码:
[root@localhost ryan]# emacs
GConf 错误:联系配置服务器失败,可能的原因是没有或不当配置的 D-Bus 会话总线守护进程。请访问 http://projects.gnome.org/gconf/ 了解详细信息。(详细信息 - 1: 获取到会话的连接失败:连接已关闭)
g_dbus_connection_real_closed: Remote peer vanished with error: Underlying GIOStream returned 0 bytes on an async read (g-io-error-quark, 0). Exiting.
已终止
[root@localhost ryan]#
具体的就是这样,在ryan的用户就可以正常使用,在root的用户就不可以使用,具体怎么解决,请高手大神解决,小弟在此谢过。
我喜欢直接用root用户编译安装和运行emacs,没有出现过问题。

Re: 求助:超级用户无法使用EMACS

发表于 : 2012-04-22 1:23
Fermat618
VIP 用户 写了:在普通用户使用 EMACS 正常,但是在超级用户运行 EMACS,就存在问题。
具体如下:
[ryan@localhost ~]$ emacs prac
[ryan@localhost ~]$ emacs
[ryan@localhost ~]$ su
密码:
[root@localhost ryan]# emacs
GConf 错误:联系配置服务器失败,可能的原因是没有或不当配置的 D-Bus 会话总线守护进程。请访问 http://projects.gnome.org/gconf/ 了解详细信息。(详细信息 - 1: 获取到会话的连接失败:连接已关闭)
g_dbus_connection_real_closed: Remote peer vanished with error: Underlying GIOStream returned 0 bytes on an async read (g-io-error-quark, 0). Exiting.
已终止
[root@localhost ryan]#
具体的就是这样,在 ryan 的用户就可以正常使用,在 root 的用户就不可以使用,具体怎么解决,请高手大神解决,小弟在此谢过。
你现在的桌面的会话是由 ryan 用户开始的,su 的时候变成了 root 用户,它连不上你现在桌面环境了。我遇到过这种问题,不多。 emacs -nw 试试看,直接在终端下开 emacs.

Re: 求助:超级用户无法使用EMACS

发表于 : 2012-04-22 22:18
VIP用户
lilydjwg 写了:换 vim :em04

代码: 全选

su -
个人比较喜欢EMACS的组合键,多帅啊,不喜欢vim的各种模式切换

Re: 求助:超级用户无法使用EMACS

发表于 : 2012-04-22 22:21
VIP用户
xvii 写了:
VIP用户 写了:在普通用户使用EMACS 正常,但是在超级用户运行EMACS,就存在问题。
具体如下:
[ryan@localhost ~]$ emacs prac
[ryan@localhost ~]$ emacs
[ryan@localhost ~]$ su
密码:
[root@localhost ryan]# emacs
GConf 错误:联系配置服务器失败,可能的原因是没有或不当配置的 D-Bus 会话总线守护进程。请访问 http://projects.gnome.org/gconf/ 了解详细信息。(详细信息 - 1: 获取到会话的连接失败:连接已关闭)
g_dbus_connection_real_closed: Remote peer vanished with error: Underlying GIOStream returned 0 bytes on an async read (g-io-error-quark, 0). Exiting.
已终止
[root@localhost ryan]#
具体的就是这样,在ryan的用户就可以正常使用,在root的用户就不可以使用,具体怎么解决,请高手大神解决,小弟在此谢过。
我喜欢直接用root用户编译安装和运行emacs,没有出现过问题。
我安装的时候就是用root用户安装和编译的,用其他用户也没有权限安装啊

Re: 求助:超级用户无法使用EMACS

发表于 : 2012-04-22 22:28
lilydjwg
VIP用户 写了:
lilydjwg 写了:换 vim :em04

代码: 全选

su -
个人比较喜欢EMACS的组合键,多帅啊,不喜欢vim的各种模式切换
你没看明白我的意思,重点在第二行。