赛迪网 > IT技术 桌面应用 > 文章
  IT资讯搜索
 
IT产品搜索
[程序开发][网管世界][网络安全][数据库技术]
[操作系统][嘉宾聊天·在线访谈][活动集锦]
[精彩专题][Symantec专区][订阅IT技术周刊]
[开发论坛][网管论坛][安全论坛][数据库论坛]
[操作系统论坛][Sybase专区][IBM dW技术专区]
[病毒求助][病毒与漏洞播报][文档·源码下载]

关于XWindows桌面不能登录问题解决办法

发布时间:2008.02.26 09:02     来源:赛迪网    作者:lanterns

错误提示:

[root@gw ~]# startx
xauth: error while loading shared libraries: libXmuu.so.1: cannot open shared ob ject file: No such file or directory
xauth: error while loading shared libraries: libXmuu.so.1: cannot open shared ob ject file: No such file or directory
xauth: error while loading shared libraries: libXmuu.so.1: cannot open shared ob ject file: No such file or directory
xauth: error while loading shared libraries: libXmuu.so.1: cannot open shared ob ject file: No such file or directory
xinit: error while loading shared libraries: libX11.so.6: cannot open shared obj ect file: No such file or directory
xauth: error while loading shared libraries: libXmuu.so.1: cannot open shared ob ject file: No such file or directory

问题解决办法如下:

讲以下两目录路径写入到/etc/ld.so.conf 文件中

/usr/kerberos/lib

/usr/X11R6/lib

然后运行命令

[root@gw ~]# ldconfig

[root@gw ~]# startx

到这却又发生了问题,如下:

Could not init font path element unix/:7100, removing from list!

Fatal server error:
could not open default font 'fixed'

Please consult the The X.Org Foundation support
at http://wiki.X.Org
for help.
Please also check the log file at "/var/log/Xorg.0.log" for additional informati on.

XIO: fatal IO error 104 (Connection reset by peer) on X server ":0.0"
after 0 requests (0 known processed) with 0 events remaining.

经查发现解决办法如下:

一、注释掉FontPath unix/:7100可以启动,但中文字体有问题

二、在startx命令前运行xfs & 也可,但有点啰嗦

实际上,之所以不能启动是因为用户清空 /tmp 目录造成,这里面有一个隐含的文件/tmp/.font-unix/fs7100,该文件属性为 srwxrwxrwx 长度为0,这是一个字体链接文件。这个文件删除就导致上面所说的问题,只要产生出这个文件即可真正的“修好”不能启动的问题。实际上,运行xfs &就是立即生成这个文件。系统中已经运行了xfs服务却不能自动生成这个文件(没有权限)。

另外需要说明的是生成这个文件在重起一次电脑后就丢失了,原因在于生成这个文件的程序xfs &是以当前用户身份运行的,一旦系统退出即自动清理掉生成的临时文件,因此需要将这个文件的所有者和用户组改成系统默认的xfs即可。

总体来说,解决这个问题就这么几步:

1. 在登录后提示符下输入 xfs &

2. 运行 chown /tmp/.font-unix

3. 运行 chown /tmp/.font-unix/fs7100

4. 运行 chgrp /tmp/.font-unix

5. 运行 chgrp /tmp/.font-unix/fs7100

6. 重起一次即可(或者杀掉当前 xfs 重起系统的 xfs)

(责任编辑:云子)


[ 发表评论 ] 字体[  ] [ 打印 ] [ 进入博客 ] [ 进入论坛 ]  [ 推荐给朋友 ]
  相关文章
· Linux下使用Mplayer播放各种格式的电影 (02-25) · 应用实例:Linux系统下挂载移动存储设备 (02-25)
· 如何在Linux的操作系统中查看光盘的内容 (02-25) · Linux系统下的文件自动备份到Windows下 (02-25)
· 关于Linux系统下用户管理的一些命令介绍 (02-25) · Linux FSCK数据出错的灾难应急方案介绍 (02-25)
· 微软公司公开承诺不再起诉开源软件作者 (02-25) · Fedora 8 Linux系统的内核配置注意事项 (02-22)
· RedHat Linux 5系统下使用远程桌面环境 (02-22) · Ubuntu Linux系统下文件编码转换的技巧 (02-22)
  客户需求反馈表
* 姓  名:
更多资料  了解方案  认识厂商
* 单位名称:
* 联系电话:
* 电子邮件:
  赛迪推荐  
  手机·资费 ·新品·导购·评测·手机资费·宽带
手机搜索  诺基亚 N73 MOTO Z6
  IT产品 ·笔记本·台式机·服务器·打印·投影
IT产品搜索 
  IT技术 ·开发·网管·安全·数据库·操作系统
  信息化 ·热点·专题·访谈·周刊·方案案例
· 信息化市场百家争鸣 SaaS深陷争议“泥潭”
· 提高管理水平 "两栖"CIO应具备的六大能力
· 国产ITIL运维先行者 四大厂商角力BI市场
· 金融行业GSN专题解决方案 企业网解决方案
  IT博客 ·曾剑秋·项立刚·Java学习·网管
  IT技术论坛 ·开发·网管·安全·数据库·系统