From owner-freebsd-questions Fri Aug 3 10:14:39 2001 Delivered-To: freebsd-questions@freebsd.org Received: from guru.mired.org (okc-27-141-144.mmcable.com [24.27.141.144]) by hub.freebsd.org (Postfix) with SMTP id E78F337B401 for ; Fri, 3 Aug 2001 10:14:33 -0700 (PDT) (envelope-from mwm@mired.org) Received: (qmail 50500 invoked by uid 100); 3 Aug 2001 17:14:33 -0000 From: Mike Meyer MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15210.56313.110990.447055@guru.mired.org> Date: Fri, 3 Aug 2001 12:14:33 -0500 To: Morsal Roudbay Cc: questions@freebsd.org Subject: Re: VNC server problems In-Reply-To: <20010803184445.A27417@zigman.2y.net> References: <27189267@toto.iv> <15210.53310.100081.883985@guru.mired.org> <20010803184445.A27417@zigman.2y.net> X-Mailer: VM 6.90 under 21.1 (patch 14) "Cuyahoga Valley" XEmacs Lucid X-face: "5Mnwy%?j>IIV\)A=):rjWL~NB2aH[}Yq8Z=u~vJ`"(,&SiLvbbz2W`;h9L,Yg`+vb1>RG% *h+%X^n0EZd>TM8_IB;a8F?(Fb"lw'IgCoyM.[Lg#r\ Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Morsal Roudbay types: > On Fri, Aug 03, 2001 at 11:24:30AM -0500, Mike Meyer wrote: > > Morsal Roudbay 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. 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