tightvnc - Syntax error: Unterminated quoted string

Does anyone know how to fix the following error? I've been searching for days without any solid clues for FreeBSD, though I've found many instances of the error on Linux systems. This error is received on only one out of two 10.3 systems built at the same time, the other for whatever reason, works perfectly without any changes to the vncserver script.
Code:
$ vncserver
Syntax error: Unterminated quoted string
Syntax error: Unterminated quoted string
Syntax error: Unterminated quoted string
Syntax error: Unterminated quoted string
Couldn't start Xvnc; trying default font path.
Please set correct fontPath in the vncserver script.
Syntax error: Unterminated quoted string
Syntax error: Unterminated quoted string
Couldn't start Xvnc process.
the default, relevant portions of /usr/local/bin/vncserver;
Code:
# Default configuration of the TightVNC Server:

$geometry = "1024x768";
$depth = 24;
$desktopName = "X";
$vncClasses = "/usr/local/share/tightvnc/classes";   
$vncUserDir = "$ENV{HOME}/.vnc";
#$fontPath = "unix/:7100";
$authType = "-rfbauth $vncUserDir/passwd";

  my @configurableVariables =
  qw(geometry
  depth
  desktopName
  vncClasses
  vncUserDir
  fontPath
  authType
  colorPath
  );
I tried setting fontpath to /usr/local/share/fonts/ as well as /usr/local/share/fonts/75dpi and some of the other font directories found in that folder as some of the Linux forums that my searches directed, but I still get that same error. Any advice from someone who has dealt with this issue before would be greatly appreciated.
 
Last edited by a moderator:
Thanks, I installed x11-fonts/xfs and looked at the config page, added an enable line to rc.conf, and started it manually. Still got an identical error, checked my other build to see if it had been installed as a dependency and it had not. Is there not some other explanation as to why it would not work on only one of two almost identical builds?
 
Not 100% sure what that means but nothing looks out of the ordinary when I run that command, and the results from both builds are identical. The env line from running that looks like;

ENV=/home/***/.shrc

and this is the only section in that file that is uncommented;

# some useful aliases
alias h='fc -l'
alias j=jobs
alias m=$PAGER
alias ll='ls -laFo'
alias l='ls -l'
alias g='egrep -i'
 
Back
Top