LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 10-26-2006, 04:50 PM   #1
zener
Member
 
Registered: Jul 2005
Location: Greece
Distribution: Mandrake 10.1 , Ubuntu 5.1
Posts: 59

Rep: Reputation: 15
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?
 
Old 10-26-2006, 05:13 PM   #2
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,123

Rep: Reputation: 162Reputation: 162
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
 
Old 11-10-2006, 09:42 AM   #3
soggycornflake
Member
 
Registered: May 2006
Location: England
Distribution: Slackware 10.2, Slamd64
Posts: 249

Rep: Reputation: 31
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem Making ATM work dc740 Linux - Networking 0 04-04-2006 11:58 AM
tightvnc problem wasafiri Linux - Networking 1 08-26-2005 10:53 AM
help me get tightvnc server to work jbeedham Linux - Software 2 07-10-2005 04:33 PM
TightVNC Won't Work chris319 Linux - Networking 4 12-29-2004 04:33 PM
Another TightVNC Problem tboneuls Linux - General 6 06-23-2003 08:09 PM


All times are GMT -5. The time now is 11:20 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration