位置: 编程技术 - 正文

startx启动图形界面失败的几个解决方法(启动图形界面)

编辑:rootadmin

推荐整理分享startx启动图形界面失败的几个解决方法(启动图形界面),希望有所帮助,仅作参考,欢迎阅读内容。

文章相关热门搜索词:startingcmain怎么解决,startlaunch,启动图形界面,start启动程序,启动图形界面命令,启动图形界面,fedora图形启动,启动图形界面命令,内容如对您有帮助,希望把文章链接给更多的朋友!

startx启动图形界面失败的几个解决方法(启动图形界面)

很多linux用户有如此一个惨痛经历。当你和平常一样登陆和输入这可爱的startx时,你只是接收到错误信息。Many of us gnu/linux users have had such a terrible experience. When you很多linux用户有如此一个惨痛经历。当你login and type the sweet startx as usual, you only receive scrolling lines和平常一样登陆和输入这可爱的startx时,你只是接收到of error messages. One copy of the error message is usually stored in错误信息。错误通常存储在/var/log/XFree.0.log. If you can access the log file, you will notice/var/log/XFree.0.log。如果你读取这个日志文件,你将会注意到the last lines of the file may look like this:文件的最后一行通常如这样:Could not init font path element unix/:, removing from list!Fatal server error:could not open default font 'fixed'I have to admit that I was in panic when I saw this message in the first我不得不承认我感到恐慌当我最初几次看到这些信息。several times. As an intermediate user of linux system, I was not so作为一个中级的linux系统用户,我感到用命令控制台拨号和用lynx冲浪不comfortable using text console for modem dialup and surfing with lynx. So舒服冲浪。所以I had to spend a lot of time on another box and use Google to search for我不得不花费很多时间在另一台电脑的使用Google在网上搜索帮助。help on web. It was amazing that so many people like me have this exact另人感到意外的是如此多人像我一样拥有如此terrible experience and those replies in web forums and mailing lists恐怖的经历和那些网上论坛和邮件列表的答复generally offer more sympathy than real help. Using our common sense and一般提供更多的同情心而不是真正的帮助。用我们一般的理解和some research, most of us can figure out this failure has something to do研究,我们大部分可以判断这是X字体服务的失败。with X font server.After having done a little more research, now I believe that this failure做完进一步的研究之后,我现在相信这may not be so serious as it looks. Please follow me by doing the steps不像人们想象中的那么严重。请跟着我做下面的这些步骤,below, in most of the cases you will get your X windows starting up again.在大部分的案例中你将可以重新进入X windows。Note: The following examples run on my Red Hat box. But I believe they are注意:这些例子在我的Red Hat系统上。但我相信他们 general enough to be used for other distributions.通常足够应用在其它发行版上。1. Check if the X font server is running.1、检查X字体服务是否正在运行。Some people like me tend to suspect it is caused by bugs in the X font一些人像我一样趋向于怀疑这是由X字体服务的bugs引起的,server, but it turned out that X font server is quite robust. We can run但它证明这X字体服务是良好的。我们可以运行the xfs script under /etc/init.d to see if the font server is running.这xfs格本文件夹在/etc/init.d去看是否字体服务正在运行。[root@localhost /root]# /etc/init.d/xfs statusxfs (pid ) is running...In some cases, the only reason for the failure is that the font server is在一些案例,唯一失败的原因是字体服务停止dead. So, you need to restart font server like this:所以,你需要重新启动字体服务象这样:[root@localhost /root]# /etc/init.d/xfs startStarting xfs: [ OK ]Well, my learned lesson is don't take this '[OK]' for granted. You have to好,我的学习课程不承认OK是真的。你必须check the status again to see if it is running. If it does run, you can再次检查状况去看看是否正在运行。如果它不运行,你可以尝试try startx to see if you can start X windows. If you still cannot start Xstartx去看看是否可以开始X windows。当字体服务运行时,如果你仍然不可以运行Xserver when the font server runs, it means you are having more serious服务,它意味着你拥有更严重的错误。trouble. You need to waste a little more time reading on the following你需要花费更多的一点时间阅读以下的步骤。steps.Note: In a weird case, my root partition was fully filled by two huge log注意:在一个古怪的案例,我的根目录是被两个大于2GB的信息文件所占据满的。files occupying more than 2 GB. The font server dies when it cannot write当它不可能写进/tmp字体服务停止。to /tmp. So the simple solution was finding the huge files and deleting因此一些例子的解决办法是寻找巨大文件的删除掉他们。them.2. Check if the font 'fixed' is accessible.检查是否字体“fixed”可以理解的。Now it is time to ensure that the font 'fixed' is accessible. First, we现在是时侯确保字体“fixed”是受影响的。首先can use command fslsfonts to see if font 'fixed' exists in the search我们可以运行命令fslsfonts去看是否字体存在在所寻找的路径:path:[root@localhost alex]# fslsfonts -server unix/: -ll -fn fixedDIR MIN MAX EXIST DFLT ASC DESC NAME--> 0 some 0 2 fixedFONTNAME_REGISTRY FOUNDRY MiscFAMILY_NAME FixedWEIGHT_NAME MediumSLANT RSETWIDTH_NAME SemiCondensedADD_STYLE_NAME PIXEL_SIZE POINT_SIZE RESOLUTION_X RESOLUTION_Y SPACING CAVERAGE_WIDTH CHARSET_REGISTRY ISOCHARSET_ENCODING 1COPYRIGHT Public domain font. Share and enjoy.CAP_HEIGHT 9X_HEIGHT 6FONT -Misc-Fixed-Medium-R-SemiCondensed------C--ISO-1WEIGHT RESOLUTION QUAD_WIDTH 6This is the normal output when 'fixed' is available. Here, we can see that当“fixed”是可用的,这是通常输出的情况,我们可以看到'fixed' is actually an alias for the font“fixed”实际上是字体的别名。'-Misc-Fixed-Medium-R-SemiCondensed------C--ISO-1'. Ifthere is no font 'fixed', we first need to gain knowledge of the search如果不是字体“fixed”,我们首先需要获得更多的信息在字体的所在路径。path for fonts. We can use command chkfontpath to look at those paths:我们可以运用命令chkfontpath去看那些路径:[root@localhost alex]# /usr/sbin/chkfontpathCurrent directories in font path:1: /usr/XR6/lib/X/fonts/misc:unscaled2: /usr/XR6/lib/X/fonts/dpi:unscaled3: /usr/XR6/lib/X/fonts/dpi:unscaled4: /usr/XR6/lib/X/fonts/misc5: /usr/XR6/lib/X/fonts/Type: /usr/XR6/lib/X/fonts/Speedo7: /usr/XR6/lib/X/fonts/CID8: /usr/XR6/lib/X/fonts/dpi9: /usr/XR6/lib/X/fonts/dpi: /usr/share/fonts/default/Type: /usr/share/fonts/default/TrueType: /usr/share/fonts/ja/TrueType: /usr/XR6/lib/X/fonts/latin2/dpi:unscaled: /usr/XR6/lib/X/fonts/latin2/dpi: /usr/share/fonts/ISO-7/misc:unscaled: /usr/share/fonts/ISO-7/dpi:unscaled: /usr/share/fonts/ISO-7/dpi:unscaled: /usr/share/fonts/ISO-7/misc: /usr/share/fonts/ISO-7/Type: /usr/share/fonts/ISO-7/dpi: /usr/share/fonts/ISO-7/dpi: /usr/share/fonts/ISO-9/misc:unscaled: /usr/share/fonts/ISO-9/dpi:unscaled: /usr/share/fonts/ISO-9/misc: /usr/share/fonts/ISO-9/dpi: /usr/share/fonts/KOI8-R/dpi:unscaled: /usr/share/fonts/KOI8-R/dpi: /usr/share/fonts/zh_CN/TrueType: /usr/share/fonts/zh_TW/TrueType: /usr/share/AbiSuite/fontsThese are the font paths on my box. It shows that xfs looks into these这些字体路径在我的电脑上。它显示当它被修复的时候xfs观察这些路径寻找一个特殊的字体。paths seeking a specific font when it is required. There are two types of有两种类型的重要文件:important files: fonts.dir in each of these paths, and fonts.alias in somefonts.dir在每一个路径中,和fonts.alias在一些路径中。of the paths. For example, let's go to /usr/XR6/lib/X/fonts/dpi,例如,让我们进入/usr/XR6/lib/X/fonts/dpi,and open the files. The files look like this:和打开文件。文件象这样:[fonts.dir]UTI___.pcf.gz -adobe-utopia-regular-i-normal------p--iso-1UTBI__.pcf.gz -adobe-utopia-bold-i-normal------p--iso-1UTI___.pcf.gz -adobe-utopia-regular-i-normal------p--iso-1UTI___.pcf.gz -adobe-utopia-regular-i-normal------p--iso-1courO.pcf.gz -adobe-courier-medium-o-normal------m--iso-1UTBI__.pcf.gz -adobe-utopia-bold-i-normal------p--iso-1...The first line specifies the number of fonts under current directory.这第一行详细说明字体的数量在当前目录。Following lines map file names to font names.以下几行是字体文件的名字。[fonts.alias]lucidasans-bolditalic-8 -b&h-lucida-bold-i-normal-sans-----p--iso-1lucidasans-bolditalic- -b&h-lucida-bold-i-normal-sans-----p--iso-1lucidasans-bolditalic- -b&h-lucida-bold-i-normal-sans-----p--iso-1lucidasans-bolditalic- -b&h-lucida-bold-i-normal-sans-----p--iso-1lucidasans-bolditalic- -b&h-lucida-bold-i-normal-sans-----p--iso-1lucidasans-bolditalic- -b&h-lucida-bold-i-normal-sans-----p--iso-1...This file maps font alias to font names. So it is clear that once font这个文件显示字体文件的别名与原名。因此清楚知道从前字体的“fixed”是需要的,'fixed' is needed, the font server search fonts.alias in each font path字体服务在比赛中寻找字体别名在每一字体路径中。for a match. If the match exists, the corresponding font file is specified如果比赛是存在,那相应的字体文件是指定在fonts.dir。in fonts.dir. If no match exists, which is a rare situation, the X server如果比赛不存在,那是非常罕见的情形,字体服务不可以运行我们需要重建字体列表。cannot start and we need to rebuild the font lists. The rebuilding process这重建的过程will generate new fonts.dir and fonts.alias files.将会产生新的fonts.dir和fonts.alias文件。3. Rebuild font list.重建字体列表。Font list can be rebuilt using the script file xfs under /etc/init.d.运用格本文件xfs在/etc/init.d下,字体列表可以被重建Following is an excerpt of the script:以下是格本文件的摘录:...buildfontlist() {pushd . &> /dev/nullfor d in $(/usr/sbin/chkfontpath --list | cut -f 2 -d ':') ;doif [ -d "$d" ]; thencd $d# Check if we need to rerun mkfontdirNEEDED=noif ! [ -e fonts.dir ]; thenNEEDED=yeselif [ "$(find . -type f -cnewer fonts.dir 2>/dev/null)" != "" ];thenNEEDED=yesfiif [ "$NEEDED" = "yes" ]; then...}...start() {if [ -L /usr/XR6/bin/X ]; thenecho -n $"Starting $prog: "[ -x /usr/sbin/chkfontpath ] && buildfontlistrm -fr /tmp/.font-unixdaemon xfs -droppriv -daemonret=$?[ $ret -eq 0 ] && touch /var/lock/subsys/xfsechoreturn $retfi} ...For readers not familiar with shell programming, this excerpt means that因为读者不熟悉运行命令程序,这格本文件的意思是每次xfs格本在运行,each time xfs script is run, it will check whether there is a fonts.dir它将会检查是否有fonts.dir在列表中的每一个字本路径中。file in each listed font path. If fonts.dir is missing in a path, font当fonts.dir在路径中消失,字体列表需要重建。list needs to be rebuilt. If a fonts.dir does exist for each path, it will如果fonts.dir不存在于每一路径中,它将会check if the status of any file in the font directory is changed after the检查是否所有文件在字体目录是被改变在fonts.dir最后一次改变。last change of fonts.dir. If this is true, the font list also needs to be如果这是真实的,字体列表也需要被重建。rebuilt.For newbies not interested in learning shell programming, we play a small作为网络新手是对学习命令不感兴趣的,我们玩一个小窍门在子程序buildfontlist()。trick in the subroutine buildfontlist(). We can set "NEEDED=yes" in the我们可以设置"NEEDED=yes" 在第一情况下强制重建字体列表。first instance to force the rebuilding of font list.4. Fonts really missing?字体确实不见了?If all steps above fail. My last suggestion is to check if the font file如果以上所有的步骤都失败了。我的最后一个意见书是检查是否字体文件is really removed by some processes. Then you need to reinstall the font.真正地被一些程序删去。然后你们需要重新设置字体.'

Raid的学习和基础知识 1.什么是Raid;RAID(RedundantArrayofInexpensiveDisks)称为廉价磁盘冗余阵列。RAID的基本想法是把多个便宜的小磁盘组合到一起,成为一个磁盘组,使性能达到或

Linux 下如何配置 PHP 支援 GD GD安?第一部需要做的是先要安?GD到系??龋??惭bGD前需要安?jpeg-6b,libpng,zlib,freetype。以下是下??址:GD2.0.jpeg-6blibpng1.2.8zlib1.2.3freetype-2.1..tar.gz建立安?套件

查看linux 下已经安装的软件包信息 RPM使用详解在Linux操作系统中,有一个系统软件包,它的功能类似于Windows里面的添加/删除程序,但是功能又比添加/删除程序强很多,它就是RedHatPackageMa

标签: 启动图形界面

本文链接地址:https://www.jiuchutong.com/biancheng/359181.html 转载请保留说明!

上一篇:Linux系统下使用wine运行迅雷5的方法(linux w)

下一篇:Raid的学习和基础知识(raid主要使用三种技术)

  • 第一次开电子普票怎么开
  • 新会计准则中资产减值论文
  • 工商年报的应交税费包含哪些
  • 企业间贴现手续怎么办理
  • 旅游费开票内容
  • 个人经营所得核定征收超过多少要交税
  • 营业执照里承办什么业务
  • 280服务费抵税分录
  • 上期留抵税额计算
  • 专票的有效期是什么意思
  • 企业以现金形式支付货款
  • 固定资产折旧税务处理
  • 租房时,怎么替房东缴税?
  • 公司买结构性存款算投资吗
  • 支付境外咨询费代扣代缴增值税
  • 实木地板增值税怎么算
  • 电动车固定资产报废年限是多少年
  • 一般企业财务报表格式2019选是还是否
  • 暂估在建工程会计科目
  • macqq截图快捷键 保存
  • 如何预防电脑症候群的发生
  • 冲账备用金的记账凭证怎么填
  • 开增值税发票折扣额怎么开出来的?
  • 累进税率的特点是课税对象的数额越大,税率越
  • 脑部病毒感染什么症状
  • 认定科技型中小企业简单吗
  • win11打开软件出现????????
  • Win10无法访问局域网计算机
  • win10远程连接win7密码正确,无法登陆
  • 如何在WIN10系统安装IE浏览器
  • php symlink
  • 工程项目科目如何设置
  • 发票未认证丢失怎么补办
  • 现金折扣税务处理shi
  • laravel 分层
  • 变动成本产品成本包括哪些
  • 可视化思考
  • 进口付汇操作
  • vue解决跨域的几种办法
  • 消耗性生物资产的账务处理
  • 固定资产多少可以一次摊销
  • 厂区道路不应该使用哪种材料
  • 从财务报表中能看出什么
  • 退诉讼费计入什么科目
  • mongodb官方文档中文
  • 费用发票可以抵扣进项税吗
  • 费用的分摊要注意什么
  • 企业所得税业务招待费怎么调整
  • 进口货物的会计分录
  • 企业缴纳车船税吗
  • 旅游服务住宿费可以抵扣吗
  • 营改增适用范围
  • 客户要赔偿怎么回复
  • 固定资产领用原因
  • 哪些商业保险可以抵扣个税
  • 企业入库申报什么意思
  • 仓库费用计入什么科目
  • 其他应付款是否能大于收入
  • 项目完工后员工工作总结
  • 建账有几种方法
  • 通过注册表删除脱机打印机
  • centos怎么设置密码
  • 如何查看电脑端口号
  • windows7粘滞键怎么关
  • linux用户添加
  • win7开机屏幕狂闪不停怎么解决
  • OpenGL Tutorial: (1) Setting up OpenGL with Visual Studio
  • uiview和calayer关系
  • 批处理命令教程 pdf
  • python 500行
  • python怎么输出日志
  • Unity3D游戏开发毕业论文
  • opengl1
  • python中urllib.unquote乱码的原因与解决方法
  • shell去掉\r
  • javascript 编译原理
  • ca锁使用
  • 百旺数据恢复
  • 宿迁市国家税务局徐友谅
  • 中牟地税局电话
  • 免责声明:网站部分图片文字素材来源于网络,如有侵权,请及时告知,我们会第一时间删除,谢谢! 邮箱:opceo@qq.com

    鄂ICP备2023003026号

    网站地图: 企业信息 工商信息 财税知识 网络常识 编程技术

    友情链接: 武汉网站建设