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

2020-01-30 12:12:37于丽

fi
if [ "$NEEDED" = "yes" ]; then
...
}
...
start() {
if [ -L /usr/X11R6/bin/X ]; then
echo -n $"Starting $prog: "
[ -x /usr/sbin/chkfontpath ] && buildfontlist
rm -fr /tmp/.font-unix
daemon xfs -droppriv -daemon
ret=$?
[ $ret -eq 0 ] && touch /var/lock/subsys/xfs
echo
return $ret
fi
}
...

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.
真正地被一些程序删去。然后你们需要重新设置字体.'