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
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值