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

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, Aug 03, 2001 at 12:14:33PM -0500, Mike Meyer wrote:
> 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.


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




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