我想在通用/干净的 Centos 或 RH 类型的 Linux 上设置 vncserver。我在 AWS EC2 基础设施中工作,但我相信这无关紧要。
为了使这项工作成功,我们需要一些先决条件来帮助我们运行 vnc 会话,即 X Windows。
在 yum 的帮助下,我已经安装了所有常用的软件包,并遵循了我在互联网上可以找到的每一个建议
# Start by installing the X Windows System (-y to auto accept)
yum groupinstall -y "X Window System"
然后
# Install the VNC stuff
yum install -y tigervnc-server tigervnc-server-module
但是当我尝试启动 vnc
service vncserver start
我收到这样的错误文本(在您运行 vncpasswd 并修改 /etc/sysconfig/vncservers 之后)
bash-4.1# service vncserver start
Starting VNC server: 2:root xauth: creating new authority file /root/.Xauthority
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 Feb 22 2013 22:28:37
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
Mon Apr 1 01:09:13 2013
vncext: VNC extension running!
vncext: Listening for VNC connections on all interface(s), port 5902
vncext: created VNC server for screen 0
[dix] Could not init font path element catalogue:/etc/X11/fontpath.d, removing from list!
[dix] Could not init font path element built-ins, removing from list!
Fatal server error:
could not open default font 'fixed'
我已经尝试了互联网上有关安装字体、创建链接、重命名 x、y 和 z 的所有建议和技巧,但均无济于事。我怎样才能让它工作?