I believe this message is a bug:
Couldn't start Xtightvnc; trying default font path.
Please set correct fontPath in the vncserver script.
I believe the fontPath is actually set correctly. I have no problems connecting and using the vncserver. I am running Debian Etch with tightvncserver version 3.3.tight1.2.9.
There may be 2 bugs here, first is that when I initially set the fontPath it ignored it (notice i set it to the /etc/X11/fonts/) but set it itself later to /usr/share/... fonts, but then I get the warning, but the path is set correctly (sorta), and the server still starts... any way around its odd behavior.
I added to /usr/bin/vncserver the following lines (including the previous and next lines to show placement):
#$fontPath = "unix/:7100";
$fontPath = "/etc/X11/fonts/75dpi/";
# Here is another example of setting the font path:
and modified this:
if (!$fontPath) {
# $fontPath = "/usr/X11R6/lib/X11/fonts/Type1/,".
# "/usr/X11R6/lib/X11/fonts/Speedo/,".
# "/usr/X11R6/lib/X11/fonts/misc/,".
# "/usr/X11R6/lib/X11/fonts/75dpi/,".
# "/usr/X11R6/lib/X11/fonts/100dpi/,".
$fontPath = "/usr/share/fonts/X11/misc/,".
"/usr/share/fonts/X11/Type1/,".
"/usr/share/fonts/X11/75dpi/,".
"/usr/share/fonts/X11/100dpi/"
}
and added this:
unless (kill 0, `cat $pidFile`) {
warn "Couldn't start Xtightvnc; trying default font path.\n";
warn "Please set correct fontPath in the $prog script.\n";
if ($fontPath) {
warn "Font path is currently set to $fontPath.\n";
} else {
warn "I don't think fontPath is set at all.\n";
}
$cmd =~ s@-fp [^ ]+@@;
system("$cmd & echo \$! >$pidFile");
sleep(1);
}
Here is the result:
# make sure my font path is actually correct #
fserver1:/usr/bin# find / -name 75dpi
/etc/X11/fonts/75dpi
/usr/share/fonts/X11/75dpi
fserver1:/usr/bin#
# make sure no server running on display :1 #
fserver1:/usr/bin# ps aux | grep vnc
root 5861 0.0 0.0 2852 708 pts/0 S+ 02:19 0:00 grep vnc
# start it up #
fserver1:/usr/bin# vncserver
Couldn't start Xtightvnc; trying default font path.
Please set correct fontPath in the vncserver script.
Font path is currently set to /usr/share/fonts/X11/75dpi/.
New 'X' desktop is fserver1.XeditedX.com:1
Starting applications specified in /root/.vnc/xstartup
Log file is /root/.vnc/fserver1.XeditedX.com:1.log
fserver1:/usr/bin#
Logged In: YES
user_id=722489
Originator: YES
I forgot to add, if i start it with:
vncserver -fp /usr/share/X11/fonts/75dpi/
it doesn't generate message, so it seems it is reversing the path a bit and ignoring where i set the path