Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 3 Aug 2001 12:14:33 -0500
From:      Mike Meyer <mwm@mired.org>
To:        Morsal Roudbay <morsal@swipnet.se>
Cc:        questions@freebsd.org
Subject:   Re: VNC server problems
Message-ID:  <15210.56313.110990.447055@guru.mired.org>
In-Reply-To: <20010803184445.A27417@zigman.2y.net>
References:  <27189267@toto.iv> <15210.53310.100081.883985@guru.mired.org> <20010803184445.A27417@zigman.2y.net>

next in thread | previous in thread | raw e-mail | index | archive | help
Morsal Roudbay <morsal@swipnet.se> types:
> On Fri, Aug 03, 2001 at 11:24:30AM -0500, Mike Meyer wrote:
> > Morsal Roudbay <morsal@swipnet.se> types:
> > > Hi,
> > > When I run vncserver all looks fine but when I connect to the server I get a
> > > blank screen.. I checked the logs and I got the following:
> > 
> > What does "looked fine" mean? And where are you connecting to the
> > server from?
> I dont get any error in the console, the server runs... but once I check the
> log I see errors. (sorry for not being clear)
> I'm connecting from another computer on my local LAN. (a windows machine)
> > > ----------------------------log
> > > 01/08/01 20:23:24 Xvnc version 3.3.3r2
> > > 01/08/01 20:23:24 Copyright (C) AT&T Laboratories Cambridge.
> > > 01/08/01 20:23:24 All Rights Reserved.
> > > 01/08/01 20:23:24 See http://www.uk.research.att.com/vnc for information on
> > > VNC
> > > 01/08/01 20:23:24 Desktop name 'X' (zigman.2y.net:1)
> > > 01/08/01 20:23:24 Protocol version supported 3.3
> > > 01/08/01 20:23:24 Listening for VNC connections on TCP port 5901
> > > 01/08/01 20:23:24 Listening for HTTP connections on TCP port 5801
> > > 01/08/01 20:23:24   URL http://zigman.2y.net:5801
> > > AUDIT: Wed Aug  1 20:23:27 2001: 38585 Xvnc: client 1 rejected from local
> > > host
> > > Xlib: connection to ":1.0" refused by serverM
> > > Xlib: Client is not authorized to connect to ServerM
> > > xrdb: Can't open display ':1'
> > 
> > This looks like an auth problem. What are you using for auth on your
> > regular X desktop, and could that be interfering?
> 
> I dont have a regular X desktop on the VNC server.. I just run telnet
> through ssh and when I want to access a X desktop, I start VNC and then
> connect to it through my windows box. 

Ah, that brings up a possibility. Make sure the X tools are in your
path before you start the X server. If it can't find those, things
die. If that fixes it, you can stop reading now.

That also clears up one question I had. Do those error messages show
up before you try connecting to vnc from the windows box? Try going
into ~/.vnc on the VNC server and removing the *.log and *.pid files
before you start VNC, then check the .log file after you start it
before you try to connect to it.

> I have no idea what type of auth I'm using..


Ok, let's check the auth hypothesis. Check ~/.vnc/xstartup on the VNC
server machine. If it's there, just add the line "xhost +" to it. If
it's not there, you'll need to create one. Something like:

	xhost +
	xterm &
	twm

possibly with the appropriate paths plugged in.

Note that xhost + is a security risk. If this works, you should take
it out, and read the xauth man page and set that up properly for the
VNC server.

	<mike
--
Mike Meyer <mwm@mired.org>			http://www.mired.org/home/mwm/
Independent WWW/Perforce/FreeBSD/Unix consultant, email for more information.

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?15210.56313.110990.447055>