Thursday, February 21, 2008

can't start vncserver

root@svr5:/usr/ports/net/tightvnc# vncserver
Couldn't start Xvnc; trying default font path.
Please set correct fontPath in the vncserver script.
Couldn't start Xvnc process.

Couldn't open RGB_DB '/usr/local/lib/X11/rgb'
21/02/08 18:32:09 Xvnc version TightVNC-1.3.8
21/02/08 18:32:09 Copyright (C) 2000-2006 Constantin Kaplinsky
21/02/08 18:32:09 Copyright (C) 1999 AT&T Laboratories Cambridge
21/02/08 18:32:09 All Rights Reserved.
21/02/08 18:32:09 See http://www.tightvnc.com/ for information on TightVNC
21/02/08 18:32:09 Desktop name 'X' (svr5.at.mikorn.com:1)
21/02/08 18:32:09 Protocol versions supported: 3.7t, 3.7, 3.3
21/02/08 18:32:09 Listening for VNC connections on TCP port 5901
21/02/08 18:32:09 Listening for HTTP connections on TCP port 5801
21/02/08 18:32:09 URL http://svr5.at.mikorn.com:5801
_FontTransSocketUNIXConnect: Can't connect: errno = 2
failed to set default font path 'unix/:7100'
Fatal server error:
could not open default font 'fixed'
Couldn't open RGB_DB '/usr/local/lib/X11/rgb'
21/02/08 18:32:10 Xvnc version TightVNC-1.3.8
21/02/08 18:32:10 Copyright (C) 2000-2006 Constantin Kaplinsky
21/02/08 18:32:10 Copyright (C) 1999 AT&T Laboratories Cambridge
21/02/08 18:32:10 All Rights Reserved.
21/02/08 18:32:10 See http://www.tightvnc.com/ for information on TightVNC
21/02/08 18:32:10 Desktop name 'X' (svr5.at.mikorn.com:1)
21/02/08 18:32:10 Protocol versions supported: 3.7t, 3.7, 3.3
21/02/08 18:32:10 Listening for VNC connections on TCP port 5901
21/02/08 18:32:10 Listening for HTTP connections on TCP port 5801
21/02/08 18:32:10 URL http://svr5.at.mikorn.com:5801

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

Solution: Modify
root@svr5:/usr/ports/net/tightvnc# vi /usr/local/bin/vncserver
...
# Here is another example of setting the font path:
$fontPath = "/usr/lib/X11/fonts/misc/,/usr/lib/X11/fonts/75dpi/";
...
to
# Here is another example of setting the font path:
$fontPath = "/usr/X11R6/lib/X11/fonts/misc/,/usr/X11R6/lib/X11/fonts/75dpi/";

No comments: