Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 4 Aug 2001 11:15:02 +0200
From:      Morsal Roudbay <morsal@swipnet.se>
To:        Mike Meyer <mwm@mired.org>
Cc:        questions@freebsd.org
Subject:   Re: VNC server problems
Message-ID:  <20010804111502.C30367@zigman.2y.net>
In-Reply-To: <15211.19304.389747.54820@guru.mired.org>
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>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, Aug 03, 2001 at 08:10:00PM -0500, Mike Meyer wrote:
> Morsal Roudbay <morsal@swipnet.se> 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




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