LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (http://www.linuxquestions.org/questions/linux-networking-3/)
-   -   I have a problem making TightVNC work (http://www.linuxquestions.org/questions/linux-networking-3/i-have-a-problem-making-tightvnc-work-495869/)

zener 10-26-2006 04:50 PM

I have a problem making TightVNC work
 
I have installed the rpms of TightVNC (tightvnc-1.2.9-1.i386.rpm & tightvnc-server-1.2.9-1.i386.rpm) in Ubuntu 5.1 .
The vncviewer program works, I can access another PC with TightVNC installed but I have a problem making this PC a VNC server. I have already set up a password (with vncpasswd) but I have a problem making the programs vncserver and Xvnc work.
This what I get:

Quote:

billy@ubuntu:~$ vncserver
Couldn't start Xvnc; trying default font path.
Please set correct fontPath in the vncserver script.
Couldn't start Xvnc process.

26/10/06 17:43:50 Xvnc version 3.3.tight1.2.9
26/10/06 17:43:50 Copyright (C) 1999 AT&T Laboratories Cambridge.
26/10/06 17:43:50 Copyright (C) 2000-2002 Constantin Kaplinsky.
26/10/06 17:43:50 All Rights Reserved.
26/10/06 17:43:50 See http://www.uk.research.att.com/vnc for information on VNC
26/10/06 17:43:50 See http://www.tightvnc.com for TightVNC-specific information
26/10/06 17:43:50 Desktop name 'X' (DBServer:1)
26/10/06 17:43:50 Protocol version supported 3.3
26/10/06 17:43:50 Listening for VNC connections on TCP port 5901
26/10/06 17:43:50 Listening for HTTP connections on TCP port 5801
26/10/06 17:43:50 URL http://DBServer:5801
_FontTransSocketUNIXConnect: Can't connect: errno = 2
failed to set default font path 'unix/:7100'
Fatal server error:
could not open default font 'fixed'
26/10/06 17:43:51 Xvnc version 3.3.tight1.2.9
26/10/06 17:43:51 Copyright (C) 1999 AT&T Laboratories Cambridge.
26/10/06 17:43:51 Copyright (C) 2000-2002 Constantin Kaplinsky.
26/10/06 17:43:51 All Rights Reserved.
26/10/06 17:43:51 See http://www.uk.research.att.com/vnc for information on VNC
26/10/06 17:43:51 See http://www.tightvnc.com for TightVNC-specific information
26/10/06 17:43:51 Desktop name 'X' (DBServer:1)
26/10/06 17:43:51 Protocol version supported 3.3
26/10/06 17:43:51 Listening for VNC connections on TCP port 5901
26/10/06 17:43:51 Listening for HTTP connections on TCP port 5801
26/10/06 17:43:51 URL http://DBServer:5801
Font directory '/usr/X11R6/lib/X11/fonts/misc/' not found - ignoring
Font directory '/usr/X11R6/lib/X11/fonts/Speedo/' not found - ignoring
Font directory '/usr/X11R6/lib/X11/fonts/Type1/' not found - ignoring
Font directory '/usr/X11R6/lib/X11/fonts/75dpi/' not found - ignoring
Font directory '/usr/X11R6/lib/X11/fonts/100dpi/' not found - ignoring

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

billy@ubuntu:~$ Xvnc

Fatal server error:
Server is already active for display 0
If this server is no longer running, remove /tmp/.X0-lock
and start again.
I didn't understand the man pages, what are the parameters I have to typoe along?

gilead 10-26-2006 05:13 PM

It could be that the vncserver is expecting display arguments. I use the following as my startup script for VNC:
Code:

#!/bin/bash
#
# description: Starts and stops vncserver. \
#              used to provide remote X administration services.

unset VNCSERVERARGS
VNCSERVERS="1:oracle 2:steve"
VNCSERVERARGS[1]="-geometry 1152x864"
VNCSERVERARGS[2]="-geometry 1152x864"

start() {
    echo -n $"Starting VNC server: "
    ulimit -S -c 0 >/dev/null 2>&1

    if [ ! -d /tmp/.X11-unix ]
    then
        mkdir -m 1777 /tmp/.X11-unix || :
    fi
    for display in ${VNCSERVERS}
    do
        echo -n "${display} "
        unset BASH_ENV ENV
        DISP="${display%%:*}"
        export USER="${display##*:}"
        export VNCUSERARGS="${VNCSERVERARGS[${DISP}]}"
        su - ${USER} -c "cd ~${USER} && [ -f .vnc/passwd ] && vncserver :${DISP} ${VNCUSERARGS}"
    done
}

stop() {
    echo -n $"Shutting down VNC server: "
    for display in ${VNCSERVERS}
    do
        echo -n "${display} "
        unset BASH_ENV ENV
        export USER="${display##*:}"
        su ${USER} -c "vncserver -kill :${display%%:*}" >/dev/null 2>&1
    done
}

# See how we were called.
case "$1" in
  start)
        start
        ;;
  stop)
        stop
        ;;
  *)
        echo $"Usage: $0 {start|stop}"
        exit 1
esac


soggycornflake 11-10-2006 09:42 AM

Quote:

failed to set default font path 'unix/:7100'
This your problem, since you probably don't have a font server running. Comment this out and uncomment the $fonPath entry below (that specifies files). Alternatively, leave it out altogether and let Xvnc fall back on it's defaults, which usually suffice.


All times are GMT -5. The time now is 03:18 PM.