Linux配置VNC报错Could not init font path element built-ins, removing from list!

现象如下:

[root@lkdb ~]# vncserver :1

WARNING: The first attempt to start Xvnc failed, possibly because the font
catalog is not properly configured.  Attempting to determine an appropriate
font path for this system and restart Xvnc using that font path ...
Could not start Xvnc.

Xvnc TigerVNC 1.1.0 - built Apr 25 2013 11:09:00
Copyright (C) 1999-2011 TigerVNC Team and many others (see README.txt)
See http://www.tigervnc.org for information on TigerVNC.
Underlying X server release 11300000, The X.Org Foundation

Initializing built-in extension Generic Event Extension
Initializing built-in extension SHAPE
Initializing built-in extension MIT-SHM
Initializing built-in extension XInputExtension
Initializing built-in extension XTEST
Initializing built-in extension BIG-REQUESTS
Initializing built-in extension SYNC
Initializing built-in extension XKEYBOARD
Initializing built-in extension XC-MISC
Initializing built-in extension XFIXES
Initializing built-in extension RENDER
Initializing built-in extension RANDR
Initializing built-in extension DAMAGE
Initializing built-in extension MIT-SCREEN-SAVER
Initializing built-in extension DOUBLE-BUFFER
Initializing built-in extension RECORD
Initializing built-in extension DPMS
Initializing built-in extension X-Resource
Initializing built-in extension XVideo
Initializing built-in extension XVideo-MotionCompensation
Initializing built-in extension VNC
Initializing built-in extension GLX

Fri Jan 29 15:09:55 2016
 vncext:      VNC extension running!
 vncext:      Listening for VNC connections on all interface(s), port 5901
 vncext:      created VNC server for screen 0
[dix] Could not init font path element /usr/share/X11/fonts/misc, removing from list!
[dix] Could not init font path element /usr/share/X11/fonts/75dpi, removing from list!
[dix] Could not init font path element /usr/share/X11/fonts/100dpi, removing from list!
[dix] Could not init font path element /usr/share/X11/fonts/Type1, removing from list!
[dix] Could not init font path element built-ins, removing from list!

Fatal server error:
could not open default font 'fixed'

原因是缺少rpm包,安装如下:
[root@lkdb ~]# yum install libXfont xorg-x11-xinit xorg-x11-fonts-Type1
Loaded plugins: aliases, changelog, downloadonly, kabi, presto, product-id,
              : refresh-packagekit, security, subscription-manager, tmprepo,
              : verify, versionlock
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
Loading support for Red Hat kernel ABI
Setting up Install Process
Package xorg-x11-xinit-1.0.9-14.el6.x86_64 already installed and latest version
Package xorg-x11-fonts-Type1-7.2-9.1.el6.noarch already installed and latest version
Resolving Dependencies
--> Running transaction check
---> Package libXfont.x86_64 0:1.4.1-2.el6_1 will be updated
---> Package libXfont.x86_64 0:1.4.5-2.el6 will be an update
--> Finished Dependency Resolution
Dependencies Resolved

================================================================================
 Package           Arch            Version                Repository       Size
================================================================================
Updating:
 libXfont          x86_64          1.4.5-2.el6            Server          136 k

Transaction Summary
================================================================================
Upgrade       1 Package(s)

Total download size: 136 k
Is this ok [y/N]: y
Downloading Packages:
Setting up and reading Presto delta metadata
Processing delta metadata
Package(s) data still to download: 136 k
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
  Updating   : libXfont-1.4.5-2.el6.x86_64                                  1/2 
  Cleanup    : libXfont-1.4.1-2.el6_1.x86_64                                2/2 
  Verifying  : libXfont-1.4.5-2.el6.x86_64                                  1/2 
  Verifying  : libXfont-1.4.1-2.el6_1.x86_64                                2/2 
Updated:
  libXfont.x86_64 0:1.4.5-2.el6                                                 
Complete!

再次执行vncserver :1正常:
[root@lkdb ~]# vncserver :1
New 'lkdb:1 (root)' desktop is lkdb:1

Creating default startup script /root/.vnc/xstartup
Starting applications specified in /root/.vnc/xstartup
Log file is /root/.vnc/lkdb:1.log

你可能感兴趣的:(Linux)