尝试让 vncserver 在 Solaris 上运行:致命服务器错误:无法打开默认字体“已修复”
我浏览了所有的网页,有一些很好的建议,但没有一个对我有用。 Solaris sparc 盒, SunOS 5.10 Generic_120011-14 sun4u sparc SUNW,UltraAX-i2
该计算机安装了 openwin,并带有来自所有常用 X11 目录的符号链接。
xfs 正在运行,所有字体目录都在那里,我运行了 mkfontdir 和 fc-cache,所有内容都正确构建了索引,但无论如何我都无法让它找到默认字体。 (如果这确实是问题所在) 我以root身份运行,没有帮助。
致命服务器错误: 无法打开默认字体“固定”
有什么建议吗?
I've looked at all the webpages and there are some good suggestions, but none has worked for me.
Solaris sparc box,
SunOS 5.10 Generic_120011-14 sun4u sparc SUNW,UltraAX-i2
The machine has openwin installed with symlinks from all of the usual X11 directories.
xfs is running and all the font directories are there, I ran mkfontdir and fc-cache and everything builds indexes all correctly, but no matter what I can't make it find the default font. (if that really is the problem)
I run as root, doesn't help.
Fatal server error:
could not open default font 'fixed'
Any suggestions?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
默认情况下,Solaris 10 4/08(Update 5)及更高版本中包含的 vncserver 应该正确设置所有字体路径。
对于其他版本的 vncserver/Xvnc:
如果您正在使用它,您将会
它将 Xvnc 字体路径设置为
类似于 tcp/localhost:7100
X 客户端,因此它们不会帮助
/usr/openwin/lib/X11/fonts 带有
/usr/X11/lib/X11/fonts 下的符号链接
默认的 X11 字体路径
Solaris 10 捆绑的 Xvnc 服务器是:
/usr/X11/lib/X11/fonts/TrueType/,/usr/X11/lib/X11/fonts/Type1/,/usr/X11/lib/X11/fonts/Type1/sun/,/usr/X11/lib /X11/fonts/F3bitmaps/、/usr/X11/lib/X11/fonts/misc/、/usr/X11/lib/X11/fonts/100dpi/、/usr/X11/lib/X11/fonts/75dpi/
对于X 服务器查找“固定”是一个多步骤的过程,其中包括
每一步都可能会中断,因此您应该检查所有这些:
/usr/openwin/lib/X11/fonts/misc/fonts.alias 列出转换短文本的别名将“fixed”命名为完整的 X11 字体名称:
修复了“-misc-fixed-medium-r-semicondensed--13-120-75-75-c-60-iso8859-1”
/usr/openwin/lib/X11/fonts/misc/fonts.dir 列出具有该全名的字体的文件名:
7x13.pcf -misc-fixed-medium-r-normal--13-120-75-75-c-70-iso8859-1
/usr/ openwin/lib/X11/fonts/misc/7x13.pcf 存在并且全世界可读
The vncserver that's included in Solaris 10 4/08 (Update 5) and later should have the font path all setup correctly by default.
For other versions of vncserver/Xvnc:
If you're using it, you would have
it set the Xvnc font path to
something like tcp/localhost:7100
X clients, so they won't help
/usr/openwin/lib/X11/fonts with a
symlink under /usr/X11/lib/X11/fonts
The default X11 font path for the
Solaris 10 bundled Xvnc server is:
/usr/X11/lib/X11/fonts/TrueType/,/usr/X11/lib/X11/fonts/Type1/,/usr/X11/lib/X11/fonts/Type1/sun/,/usr/X11/lib/X11/fonts/F3bitmaps/,/usr/X11/lib/X11/fonts/misc/,/usr/X11/lib/X11/fonts/100dpi/,/usr/X11/lib/X11/fonts/75dpi/
For the X server to find "fixed" is a multi-step process, with things that
could break at each step, so you should check all of these:
/usr/openwin/lib/X11/fonts/misc/fonts.alias lists the alias converting the short name "fixed" to the full X11 font name:
fixed "-misc-fixed-medium-r-semicondensed--13-120-75-75-c-60-iso8859-1"
/usr/openwin/lib/X11/fonts/misc/fonts.dir lists the filename for the font with that full name:
7x13.pcf -misc-fixed-medium-r-normal--13-120-75-75-c-70-iso8859-1
/usr/openwin/lib/X11/fonts/misc/7x13.pcf exists and is world readable
当我在 Linux 版本上设置 vnc 时,我自己也遇到了类似的问题。 事实证明,启动 Xwindows 服务器的脚本没有正确的字体路径。 一旦我修复它,它就工作得很好。
我不知道您使用的是哪个版本的 vnc,但您可以尝试编辑 vncserver 脚本以包含字体的显式路径,看看是否有帮助。 在我使用的版本(RHEL5 上的 TightVNC)中,脚本的一部分设置了启动 vnc Xwindows 系统 (Xvnc) 时发出的确切命令。 作为此设置的一部分,有一行(在我当前的版本中已注释掉)使用 -fp 标志设置字体路径。 有问题的代码片段如下所示:
设置字体路径的行位于末尾的注释部分中。 您可以尝试在启动脚本中找到类似的部分,并显式设置字体的路径,看看这是否至少能让您克服致命错误。
I had a similar problem to this myself once setting up vnc on a version of Linux. It turned out that the scripts that started the Xwindows servers didn't have the correct path to the fonts. Once I fixed that it worked just fine.
I don't know what version of vnc you are using but you might try editing the vncserver script to include the explicit paths to the fonts to see if that helps. In the version I use (TightVNC on RHEL5) there is a portion of the script that sets up the exact command issued to start the vnc Xwindows system (Xvnc). As part of this setup there is a line (commented out in my current version) that sets the font path with the -fp flag. The code snippet in question looks like this:
The line to set the font path is in the commented out section at the end. You might try finding the similar section in your start-up script and explicitly setting the paths to the fonts to see if that will at least get you past the fatal error.
在 Solaris 10 x86_64 update 7 (05/09) 上,我在 ESX 上作为虚拟机安装时遇到了类似的问题。 以下几行可以解决该问题:
On Solaris 10 x86_64 update 7 (05/09) I had a similar problem when installing as a VM on ESX. The following lines are able to correct the problem:
PS:同时我发现我的安装ISO已损坏(MD5和不匹配)。 安装中有些软件包已损坏。 下载另一个 ISO 后,问题就消失了。
PS: Meanwhile I found out that the installation ISO I had was corrupted (MD5 sum was not matching). There were some packages corrupt in the installation. After downloading another ISO the problems I had vanished.