在Ubuntu下刚才用su到root后,用命令gedit发现会出错: ** (gedit:2976): WARNING **: 连接已关闭 (gedit:2976): EggSMClient-WARNING **: Failed to connect to the session manager: None of the authentication protocols specified are supported ** (gedit:2976): WARNING **: Could not connect to session bus
原因是: su 只能切换到管理员用户权限,不使用管理员的登陆脚本和搜索路径
su - 不但能切换到管理员权限而且使用管理员登陆脚本和搜索路径
解决方法:使用sudo gedit 或者su -后再gedit就没错误了! Linux下恢复被误删除的syslog—/var/log/messages在64位Ubuntu上安装Android SDK相关资讯 Ubuntu使用教程
- Ubuntu使用教程:E: 无法获得锁 / (06/19/2014 17:15:12)
- Ubuntu使用教程 :让Trusty Tahr变 (05/07/2014 16:30:53)
- 怎样打开64位 Ubuntu 的32位支持功 (04/27/2014 17:15:36)
| - Ubuntu 11.04 环境指纹识别驱动的 (05/22/2014 09:57:26)
- Ubuntu 下disk清理保护 (05/01/2014 07:24:50)
- Ubuntu 14.04自动登录到桌面 (04/24/2014 14:00:53)
|
本文评论 查看全部评论 (1)