Chinaunix首页 | 论坛 | 博客
  • 博客访问: 137343
  • 博文数量: 27
  • 博客积分: 2010
  • 博客等级: 大尉
  • 技术积分: 270
  • 用 户 组: 普通用户
  • 注册时间: 2008-10-23 13:28
文章分类

全部博文(27)

文章存档

2011年(1)

2009年(15)

2008年(11)

我的朋友

分类: LINUX

2008-11-04 01:16:35

从windows下的VMWare虚拟机进入Redhat9时,居然出现莫名地出现一个异常。系统在字符界面和图形界面之间不断的切换,最后出现一个关于错误解释的对话框。内容大致是这样:
I cannot start the x server (your graphical interface) 。It is likely that it is no set up correctly。 would you like to view the x sever output to diagnose the problem?
 
选择Yes之后出现界面
OS   Kernel:   Linux   Verion   2.6.11-1.1369_FC4   (bhcompile@decompose.build.reMarkers:
                      (--)probed,(**)from   config   file,(==)default   setting,   (++)fom   command   line,
                      (!!)notice,(II)   informational,(WW)warning,(EE)error,(NI)   not   implemented,(??)unknown.
(==)Log   file:   "/var/log/Xorg.0.log ",Time:   Tue   Mar   20   14:25:54   2007
(==)Using   config   file:   "/etc/X11/xorg.conf "
(==)ServerLayout   "syingle   head   configuration "
(**)   |--> Screen   "Screen0 "(0)
(**)   |       |--> Monitor   "vmware "
(**)   |       |--> Device   "VMware   SVGA "
(**)   |--> Input   Device   "Mouse0 "
(**)   |--> Input   Device   "Keyboard0 "
(**)   FontPath   set   to   "unix/:7100 "
(**)   RgbPath   set   to   "/usr/X11R6/lib/X11/rgb "
(==)ModulePath   set   to   "/usr/X11R6/lib/modules "
还有很多行,只粘了这些,以供参考。
 
在网上看到两个解决办法
首先进入文本模式。然后,
办法1:将 #vi /etc/X11/xorg.conf 中的“FontPath "Unix/:7100" ”行注释掉。
办法2:将 #vi /etc/X11/xorg.conf 中的“FontPath "Unix/:7100" ”行改为
        FontPath "/usr/X11R6/lib/X11/fonts/misc"  
可是我的/etc/X11的目录下居然没有xorg.conf文件。
 
另外一个方法。
编辑/etc/X11/XF86Config,在“Section ‘Files’”里的“FontPath”段加入以下字体路径定义:
FontPath "/usr/X11R6/lib/X11/fonts/misc" 。保存后,重新启动X-Window(startx)即可。
 
总结一下,当X-Window遇见问题时,能仔细查看/var/log/XFree86.0.log这个日志文件,一般都能找到原因。
 
阅读(2237) | 评论(0) | 转发(0) |
0

上一篇:没有了

下一篇:读写串口程序

给主人留下些什么吧!~~