Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 13 May 2000 12:56:50 -0400
From:      "Crist J. Clark" <cjc@cc942873-a.ewndsr1.nj.home.com>
To:        Kevin <kweiss@jump.net>
Cc:        cjclark@home.com, freebsd-questions@freebsd.org
Subject:   Re: having problems with .xsession for FreeBSD 4.0
Message-ID:  <20000513125649.A47176@cc942873-a.ewndsr1.nj.home.com>
In-Reply-To: <00036761bdcd6d18_mailit@smtp.jump.net>; from kweiss@jump.net on Fri, May 12, 2000 at 01:20:23AM %2B0000
References:  <000367531020275f_mailit@smtp.jump.net> <0003675c5c84c2b6_mailit@smtp.jump.net> <20000512215235.A39310@cc942873-a.ewndsr1.nj.home.com> <00036761bdcd6d18_mailit@smtp.jump.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, May 12, 2000 at 01:20:23AM +0000, Kevin wrote:
> Here is what showed up in the .xsession-errors file:
> ############
> Xlib: connection to ":0.0" refused by server
> Xlib: Client is not authorized to connect to Server
> BaseDisplay::BaseDisplay: connection to X server failed.
> ############

There's your problem. The server does not think you have the
authorization to connect to the server. My first guess would be that
you built X with PAM support. However, I seem to recall that error
being worded slightly differently, and from what you said, I assume
you installed X from the 4.0 CD? I've been snooping in the X sources
and found parts of the error, but it's rather complicated in
there. Have you done any other customizations to the setup?

> The TMPDIR info that you mentioned never showed up in the
> /tmp directory.

That is where errors end up if for some reason, xdm cannot write
to .xsession-errors. 

> I also tried copying Xsession (/usr/X11R6/lib/X11/xdm/
> Xsession) to .xsession, adding the window manager statements on the root 
> directory.  That didn't work either.

I would not expect it to. What you should do to try the most basic
setup is not copy Xsession to .xsession, but rather just go with no
.xsession at all.

> PS - Blackbox is just another window manager.

OK. Does not look like it is the issue.

> >On Thu, May 11, 2000 at 06:55:16PM +0000, Kevin wrote:
> >> Let me rephrase this.  Can someone tell me what I can do to
> >> correct the problem with my .xsession file?
> >> 
> >> Kevin Weiss
> >> kweiss@jump.net
> >> 
> >> >Hello all,
> >> >
> >> >I just received FreeBSD 4.0, and I am trying to get X Window (in 
> >particular, 
> >> >xdm) to read my .xsession file.  
> >> >
> >> >First, here is my .xsession file.  This one is from another machine
> >> >I have running FreeBSD 3.4:
> >> >
> >> >#!/bin/sh
> >> ># $XConsortium: xinitrc.cpp,v 1.4 91/08/22 11:41:34 rws Exp $
> >> >
> >> >userresources=$HOME/.Xresources
> >> >usermodmap=$HOME/.Xmodmap
> >> >sysresources=/usr/X11R6/lib/X11/xinit/.Xresources
> >> >sysmodmap=/usr/X11R6/lib/X11/xinit/.Xmodmap
> >> >
> >> ># merge in defaults and keymaps
> >> >
> >> >if [ -f $sysresources ]; then
> >> >    xrdb -merge $sysresources
> >> >fi
> >> >
> >> >if [ -f $sysmodmap ]; then
> >> >    xmodmap $sysmodmap
> >> >fi
> >> >
> >> >if [ -f $userresources ]; then
> >> >    xrdb -merge $userresources
> >> >fi
> >> >
> >> >if [ -f $usermodmap ]; then
> >> >    xmodmap $usermodmap
> >> >fi
> >> >
> >> ># start some nice programs
> >> >
> >> >xterm -geometry 80x24-240+180 &
> >> >blackbox
> >> >
> >> >
> >> >It is not reading my .xsession file, so everytime I try to login,
> >> >xdm just returns me back to the login screen.  I checked to make sure my 
> >> >.xsession file was executable (it was-- chmod 544), and even tried 
> linking 
> >> >.xsession to .xinitrc (didn't work).  Startx runs fine with
> >> >any of my installed window managers, so I at least know that X Window
> >> >is working.  Could this be a problem with my path (or lack thereof)?
> >> >
> >> >Thank you in advance!
> >
> >Is there anything in .xsession-errors? (Or $TMPDIR/xses-$USER or
> >/tmp/xses-$USER?)
> >
> >Excuse me if I should know this, but what is "blackbox?" Is this
> >command present on your system? What does it do?
> >-- 
> >Crist J. Clark                           cjclark@home.com
> >
> >
> >To Unsubscribe: send mail to majordomo@FreeBSD.org
> >with "unsubscribe freebsd-questions" in the body of the message
> >

-- 
Crist J. Clark                           cjclark@home.com


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?20000513125649.A47176>