Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1037281
  • 博文数量: 836
  • 博客积分: 43880
  • 博客等级: 大将
  • 技术积分: 5485
  • 用 户 组: 普通用户
  • 注册时间: 2008-08-20 17:36
文章分类

全部博文(836)

文章存档

2011年(1)

2008年(835)

我的朋友

分类: LINUX

2008-08-20 18:18:52


错误提示:
[root@gw~]#startx
xauth:errorwhileloadingsharedlibraries:libXmuu.so.1:cannotopensharedobjectfile:Nosuchfileordirectory
xauth:errorwhileloadingsharedlibraries:libXmuu.so.1:cannotopensharedobjectfile:Nosuchfileordirectory
xauth:errorwhileloadingsharedlibraries:libXmuu.so.1:cannotopensharedobjectfile:Nosuchfileordirectory
xauth:errorwhileloadingsharedlibraries:libXmuu.so.1:cannotopensharedobjectfile:Nosuchfileordirectory
xinit:errorwhileloadingsharedlibraries:libX11.so.6:cannotopensharedobjectfile:Nosuchfileordirectory
xauth:errorwhileloadingsharedlibraries:libXmuu.so.1:cannotopensharedobjectfile:Nosuchfileordirectory
问题解决办法如下: 讲以下两目录路径写入到/etc/ld.so.conf文件中 /usr/kerberos/lib /usr/X11R6/lib 然后运行命令 [root@gw~]#ldconfig [root@gw~]#startx 到这却又发生了问题,如下:
Couldnotinitfontpathelementunix/:7100,removingfromlist!

Fatalservererror:
couldnotopendefaultfont''fixed''

PleaseconsulttheTheX.OrgFoundationsupport
at
forhelp.
Pleasealsocheckthelogfileat"/var/log/Xorg.0.log"foradditionalinformation.

XIO:fatalIOerror104(Connectionresetbypeer)onXserver":0.0"
after0requests(0knownprocessed)with0eventsremaining.
经查发现解决办法如下: 一、注释掉FontPathunix/: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) (责任编辑:云子)


下载本文示例代码
阅读(433) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~