Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 21 Jul 2002 10:50:28 +0100
From:      Matthew Seaman <m.seaman@infracaninophile.co.uk>
To:        Peter Leftwich <Hostmaster@Video2Video.Com>
Cc:        FreeBSD LIST <FreeBSD-Questions@FreeBSD.ORG>
Subject:   Re: X vs xdm vs startkde
Message-ID:  <20020721095028.GA26827@happy-idiot-talk.infracaninophi>
In-Reply-To: <20020720205236.G30024-100000@earl-grey.cloud9.net>
References:  <20020720205236.G30024-100000@earl-grey.cloud9.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, Jul 20, 2002 at 08:57:05PM -0400, Peter Leftwich wrote:
> I'm on a new install of FreeBSD 4.6-RELEASE (on a different HD since
> boot0cfg killed the MBR of my newer HD).
> 
> For some reason, now running "X -xf86config ~/XFree86.config" works now,
> but all it does is run the X server on /dev/ttyv8 -- as from /etc/ttys:
> 
> ttyv8   "/usr/X11R6/bin/xdm -nodaemon"  xterm   off secure

Sure.  You know that you can edit the /usr/X11R6/lib/X11/xdm/Xservers
file in order to pass some extra flags to the X server xdm starts up.
Personally, I wouldn't do that to tell X where to find the config
file.  Rather I would take your XFree86.config file and move it to
/etc/X11/XF86Config or /usr/X11R6/lib/X11/XF86Config --- make sure
that there aren't any extra XF86Config files floating about, as X has
a long and tortuous search path to find that file, and you can easily
end up running from the wrong one:

(from the XF86Config(5) man page)

       When the X server is started by the "root" user, the  con-
       fig file search locations are as follows:

           <cmdline>
           /etc/X11/<cmdline>
           /usr/X11R6/etc/X11/<cmdline>
           $XF86CONFIG
           /etc/X11/$XF86CONFIG
           /usr/X11R6/etc/X11/$XF86CONFIG
           $HOME/XF86Config
           /etc/X11/XF86Config-4
           /etc/X11/XF86Config
           /etc/XF86Config
           /usr/X11R6/etc/X11/XF86Config.<hostname>
           /usr/X11R6/etc/X11/XF86Config-4
           /usr/X11R6/etc/X11/XF86Config
           /usr/X11R6/lib/X11/XF86Config.<hostname>
           /usr/X11R6/lib/X11/XF86Config-4
           /usr/X11R6/lib/X11/XF86Config


> My question is: Once I have the grey background and letter X for a cursor,
> how can I either xlogin or have my ~/.xinitrc or ~/.xsession files get
> sourced (they both contain just one line saying "startkde")?

> That is... is there a keystroke or mouse click to run xterms and such?!

What you've got to is the default screen provided by the X server --
you apparently have no X clients working.  You can start X clients by
switching to an alternate console:

    <Ctrl>-<Alt>-<F1>        (To switch from X to the console)
    {login as usual}
    setenv DISPLAY :0.0      (or export DISPLAY=:0.0 if you're a bash user)
    xterm & 
    <Ctrl>-<Alt>-<F9>        (switch back to the X display)

Once you've got a window open on your X display you can do pretty much
everything from there, but don't forget to switch back to the console
and log out when you're done.

I'm assuming you're using xdm(1).  Since you're not seeing the default
desktop that xdm gives you if you haven't got a ~/.xsession at all,
your ~/.xsession is being run but something must not be working right.
Check for error messages in the ~/.xsession-errors file.  It's quite
possible that the ~/.xsession script isn't being run with the correct
$PATH settings --- generally X sessions don't pick up on your .profile
or .login settings (ie. the stuff that gets set once per login
session) so you should make other arrangements to do that sort of
setup.  Easiest is just to put it into ~/.xsession

eg. I have:

PATH="/sbin:/bin:/usr/sbin:/usr/bin:/usr/games:/usr/local/sbin:/usr/local/bin:/usr/X11R6/bin:${HOME}/bin" ; export PATH
FTP_PASSIVE_MODE=YES ; export FTP_PASSIVE_MODE

at the top on my .xsession

	Cheers,

	Matthew

-- 
Dr Matthew J Seaman MA, D.Phil.                       26 The Paddocks
                                                      Savill Way
Tel: +44 1628 476614                                  Marlow
Fax: +44 0870 0522645                                 Bucks., SL7 1TH UK

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?20020721095028.GA26827>