From: bl8n8r on
Just in case anyone else runs into it -- xorg on Centos 5 and RealVNC
4.1.2 have conflicting font paths configured. The solution when
running across the error below is to symlink /usr/share/X11 to /usr/
X11R6/lib so RealVNC server (specifically Xvnc) can find fonts under
the correct directory.

# strings /usr/bin/Xvnc | grep X11R6
/usr/X11R6/lib/X11/fonts/misc/,/usr/X11R6/lib/X11/fonts/Speedo/,/usr/
X11R6/lib/X11/fonts/Type1/,/usr/X11R6/lib/X11/fonts/CID/,/usr/X11R6/
lib/X11/fonts/75dpi/,/usr/X11R6/lib/X11/fonts/100dpi/
/usr/X11R6/lib/X11/rgb
/usr/X11R6/lib/X11/xserver/SecurityPolicy
/usr/X11R6/lib/X11/xkb
/usr/X11R6/lib/X11/fonts/encodings/encodings.dir


-----------

Couldn't open RGB_DB '/usr/X11R6/lib/X11/rgb'

Xvnc Free Edition 4.1.2 - built May 12 2006 17:42:24
Copyright (C) 2002-2005 RealVNC Ltd.
See http://www.realvnc.com for information on VNC.
Underlying X server release 40201000, The XFree86 Project, Inc


Thu Jun 12 10:26:36 2008
vncext: VNC extension running!
vncext: Listening for VNC connections on port 5901
vncext: Listening for HTTP connections on port 5801
vncext: created VNC server for screen 0
error opening security policy file /usr/X11R6/lib/X11/xserver/
SecurityPolicy
Could not init font path element /usr/X11R6/lib/X11/fonts/misc/,
removing from list!
Could not init font path element /usr/X11R6/lib/X11/fonts/Speedo/,
removing from list!
Could not init font path element /usr/X11R6/lib/X11/fonts/Type1/,
removing from list!
Could not init font path element /usr/X11R6/lib/X11/fonts/CID/,
removing from list!
Could not init font path element /usr/X11R6/lib/X11/fonts/75dpi/,
removing from list!
Could not init font path element /usr/X11R6/lib/X11/fonts/100dpi/,
removing from list!

Fatal server error:
could not open default font 'fixed'
xrdb: Connection refused
xrdb: Can't open display 'corp-as1.localdomain:1'
xsetroot: unable to open display 'corp-as1.localdomain:1'

From: George Peter Staplin on
bl8n8r wrote:
> Just in case anyone else runs into it -- xorg on Centos 5 and RealVNC
> 4.1.2 have conflicting font paths configured. The solution when
> running across the error below is to symlink /usr/share/X11 to /usr/
> X11R6/lib so RealVNC server (specifically Xvnc) can find fonts under
> the correct directory.
>
> # strings /usr/bin/Xvnc | grep X11R6
> /usr/X11R6/lib/X11/fonts/misc/,/usr/X11R6/lib/X11/fonts/Speedo/,/usr/
> X11R6/lib/X11/fonts/Type1/,/usr/X11R6/lib/X11/fonts/CID/,/usr/X11R6/
> lib/X11/fonts/75dpi/,/usr/X11R6/lib/X11/fonts/100dpi/
> /usr/X11R6/lib/X11/rgb
> /usr/X11R6/lib/X11/xserver/SecurityPolicy
> /usr/X11R6/lib/X11/xkb
> /usr/X11R6/lib/X11/fonts/encodings/encodings.dir


There's an alternative I think for most VNC X servers (if not all). You
can pass a , separated list to -fp.

Like so:
../Xvnc :1 -fp /usr/share/fonts/X11/100dpi,/usr/share/fonts/X11/misc


My full script for XF4VNC looks like this:
../Xvnc :1 -fp /usr/share/fonts/X11/100dpi,/usr/share/fonts/X11/misc \
-httpd /usr/local/vnc/classes -httpport $httpport \
-alwaysshared -desktop "Magic Desktop" \
-rfbauth /path/to/vnc/passwd \
-rfbport $rfbport -rfbwait 120000 -geometry 800x600 -depth 24


George