*BSD News Article 92807


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!news.rmit.EDU.AU!not-for-mail
From: Phillip Musumeci <phillip@mirriwinni.cse.rmit.edu.au>
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: Repost: XFree86 problem on FreeBSD 2.2.1
Date: 05 Apr 1997 07:48:56 +1000
Organization: Computer Systems Engineering Department, RMIT Australia
Lines: 44
Message-ID: <87iv2231dj.fsf@mirriwinni.cse.rmit.edu.au>
References: <33404fd2.106602@news.fu-berlin.de>
	<3344ee67.101407@news.fu-berlin.de>
NNTP-Posting-Host: pm.cse.rmit.edu.au
X-Newsreader: Gnus v5.3/Emacs 19.34
Xref: euryale.cc.adfa.oz.au comp.unix.bsd.freebsd.misc:38456

thimm@physik.fu-berlin.de (Axel Thimm) writes:

> I have already downloaded XFree twice and done lots of installs, but I
> cannot find where the problem is:
> 
> startx and initx work well. Also if there exists a .xsession file with a
> call to twm X works. But when I start xdm from root and log into an
> account without a .xsession file, then xsm (called from xdm by default)
> gets a Segment Violation and drops a core dump.

I don't understand what is going wrong here, but the following .xsession
sample file might solve your setup problem (since you say that the startx
command works just fine).  This .xsession sets up a few environment
variables for a bash shell user, executes the commands in .xinitrc, and
then uses kill at the end to kill any lingering tasks.  You could write an
equivalent scheme using #!/bin/csh.



#!/bin/sh

if [ -f /usr/local/etc/bash-env ] ; then
  echo Reading /usr/local/etc/bash-env
  . /usr/local/etc/bash-env
fi

if [ -f $HOME/.bash-env-personal ] ; then
  echo Reading $HOME/.bash-env-personal
  . $HOME/.bash-env-personal
fi

date

. $HOME/.xinitrc

kill -9 0



Good luck,
phillip

UNIX _IS_ user friendly.  It's just selective about who its friends are.
                                                                  --unknown