From owner-freebsd-questions Fri Aug 3 17:38:57 2001 Delivered-To: freebsd-questions@freebsd.org Received: from zigman.2y.net (korpen-86-195.ip-pluggen.com [212.181.86.195]) by hub.freebsd.org (Postfix) with ESMTP id 2831437B406 for ; Fri, 3 Aug 2001 17:38:53 -0700 (PDT) (envelope-from mr@zigman.2y.net) Received: by zigman.2y.net (Postfix, from userid 1001) id 93D271E91; Sat, 4 Aug 2001 02:39:28 +0200 (CEST) Date: Sat, 4 Aug 2001 02:39:28 +0200 From: Morsal Roudbay To: Mike Meyer Cc: freebsd-questions@freebsd.org Subject: Re: VNC server problems Message-ID: <20010804023928.A30367@zigman.2y.net> Reply-To: Morsal Roudbay References: <27189267@toto.iv> <15210.53310.100081.883985@guru.mired.org> <20010803184445.A27417@zigman.2y.net> <15210.56313.110990.447055@guru.mired.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <15210.56313.110990.447055@guru.mired.org> User-Agent: Mutt/1.3.20i X-Operating-System: FreeBSD 4.3 [up 5 days, 12:59] X-Return-Path: morsal@swipnet.se 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 On Fri, Aug 03, 2001 at 12:14:33PM -0500, Mike Meyer wrote: > 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. xauth and the other X tools are in my path. (I run the VNC server as root) taken from .bash_profile: PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/games:/usr/local/bin:/usr/local/sbin:/usr/X11R6/bin:$HOME/bin; export PATH > 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. The errors show up _before_ I connect to the server. > > 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 The xstartup script is there and I tried adding the line u told me about but still I get the same error when I start the VNC server. > possibly with the appropriate paths plugged in. Tried that too and it was unsuccesful I'm afraid. > 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. if it's of any help, here is my xstartup file: #!/usr/local/bin/bash /usr/X11R6/bin/xhost + xrdb $HOME/.Xresources xsetroot -solid grey xterm -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" & #startkde & blackbox & bbmail & bbdate & Again thanks for taking time and helping out. Morsal To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message