Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 2 Jul 1996 08:59:34 -0600
From:      Sean Kelly <kelly@fsl.noaa.gov>
To:        ajohn@mail.bcpl.lib.md.us
Cc:        gpalmer@FreeBSD.ORG, questions@FreeBSD.ORG
Subject:   Re: Missing File - libc.s0.3.0 - help!
Message-ID:  <199607021458.OAA17090@gatekeeper.fsl.noaa.gov>
In-Reply-To: <01BB6791.5C34BEA0@ppp93.bcpl.lib.md.us> (message from Anil John on Mon, 1 Jul 1996 21:07:48 -0400)

next in thread | previous in thread | raw e-mail | index | archive | help
>>>>> "Anil" == Anil John <ajohn@mail.bcpl.lib.md.us> writes:

    Anil> Oops!! That was it...I just started xinit, then ran fvwm and
    Anil> it came up!!.  Are there any docs available on how to
    Anil> create/alter my .xinitrc file?  Also, where does one find
    Anil> this file?

.xinitrc is a program that gets executed by xinit after xinit starts
the X server.  When your .xinitrc exits, the X server shuts down.

Typically, .xinitrc is a shell script.  It can be Bourne, csh, perl,
tcl, whatever scripting language you like.  (It can be a compiled
program, if you prefer.)

People usually make it a script since it's easy to edit and to make
sure your favorite windows in your favorite locations each time you
start up.

Remember that the X server shuts down when the .xinitrc exits.  So,
what many people do is make it a script and put every program started
by the script in the background except the last one.  The last one is
usually the window manager or an xterm.  When the window manager or
that xterm exits, the you shut down X.

Here's an example:

	#!/bin/sh
	xterm -geometry +0+0 &         # Start xterm in upper left corner.
        xclock -geometry -0+0 &        # Clock in upper right corner.
        emacs -geometry +0-0 &         # Emacs in lower left corner.
        fvwm                           # And finally the window manager.

So, to answer your other question: where is the .xinitrc file usually
located.  It's usually in your home directory: $HOME/.xinitrc.  If you
don't have such a file, just make one using your favorite text editor
(for a script) or compile up a program and call it .xinitrc!

-- 
Sean Kelly                          
NOAA Forecast Systems Laboratory    kelly@fsl.noaa.gov
Boulder Colorado USA                http://www-sdd.fsl.noaa.gov/~kelly/



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