From owner-freebsd-questions Sat Aug 4 2:14:26 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 397DC37B406 for ; Sat, 4 Aug 2001 02:14:23 -0700 (PDT) (envelope-from mr@zigman.2y.net) Received: by zigman.2y.net (Postfix, from userid 1001) id 1DC011E91; Sat, 4 Aug 2001 11:15:03 +0200 (CEST) Date: Sat, 4 Aug 2001 11:15:02 +0200 From: Morsal Roudbay To: Mike Meyer Cc: questions@freebsd.org Subject: Re: VNC server problems Message-ID: <20010804111502.C30367@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> <20010804023928.A30367@zigman.2y.net> <15211.19304.389747.54820@guru.mired.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <15211.19304.389747.54820@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 08:10:00PM -0500, Mike Meyer wrote: > Morsal Roudbay types: > > > 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's /root/.bash_profile, right? Personally, I'd rather see the > output of "which xauth". yes and here is the output of "which xauth": /usr/X11R6/bin/xauth > > > 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. > > That's not really unexpected - the clients in xstartup are failing to > connect to the server that VNC is starting. > > > > > 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: > > 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. > > Again, this is /root/.vnc/xstartup, right? yes > If so, the only other thing I can think of is setting up xauth for root. I really find it weird, things worked fine a couple of days ago (I ran VNC as root then too)... but when the server was rebooted VNC wasnt working because of this auth problem.. > BTW, I would seriously recommend running vnc as someone other than > root. That allows root logins over the network, which the default > configuration of FreeBSD doesn't allow by any service. Once I get it working properly, I'll set VNC to run as a normal user instead. Morsal To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message