Files
oldlinux-files/docs/Install-Guide/install-guide-2.2.2/node203.html
2024-02-19 00:23:35 -05:00

88 lines
4.8 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3O//DTD W3 HTML 2.0//EN">
<!Converted with LaTeX2HTML 95.1 (Fri Jan 20 1995) by Nikos Drakos (nikos@cbl.leeds.ac.uk), CBLU, University of Leeds >
<HEAD>
<TITLE>5.1.5 Running XFree86</TITLE>
</HEAD>
<BODY>
<meta name="description" value="5.1.5 Running XFree86">
<meta name="keywords" value="gs">
<meta name="resource-type" value="document">
<meta name="distribution" value="global">
<P>
<BR> <HR><A NAME=tex2html4368 HREF="node204.html"><IMG ALIGN=BOTTOM ALT="next" SRC="next_motif.gif"></A> <A NAME=tex2html4366 HREF="node198.html"><IMG ALIGN=BOTTOM ALT="up" SRC="up_motif.gif"></A> <A NAME=tex2html4360 HREF="node202.html"><IMG ALIGN=BOTTOM ALT="previous" SRC="previous_motif.gif"></A> <A NAME=tex2html4370 HREF="node1.html"><IMG ALIGN=BOTTOM ALT="contents" SRC="contents_motif.gif"></A> <A NAME=tex2html4371 HREF="node250.html"><IMG ALIGN=BOTTOM ALT="index" SRC="index_motif.gif"></A> <BR>
<B> Next:</B> <A NAME=tex2html4369 HREF="node204.html">5.1.6 Running into trouble</A>
<B>Up:</B> <A NAME=tex2html4367 HREF="node198.html">5.1 The X Window </A>
<B> Previous:</B> <A NAME=tex2html4361 HREF="node202.html">5.1.4 Filling in video </A>
<BR> <HR> <P>
<H2><A NAME=SECTION00715000000000000000>5.1.5 Running XFree86</A></H2>
<P>
With your <tt>XF86Config</tt> file configured, you're ready to fire up the
X server and give it a spin. First, be sure that <tt>/usr/X11R6/bin</tt>
is on your path.
<P>
The command to start up XFree86 is
<P><TT> startx
<P></TT>
This is a front-end to <tt>xinit</tt> (in case you're used to using <tt>xinit</tt>
on other UNIX systems).
<P>
This command will start the X server and run the commands found in the
file <tt>.xinitrc</tt> in your home directory. <tt>.xinitrc</tt> is just a
shell script containing X clients to run. If this file does not exist,
the system default <tt>/usr/X11R6/lib/X11/xinit/xinitrc</tt> will be used.
<P>
A standard <tt>.xinitrc</tt> file looks like this:
<P><TT> <PRE>#!/bin/sh
xterm -fn 7x13bold -geometry 80x32+10+50 &amp;
xterm -fn 9x15bold -geometry 80x34+30-10 &amp;
oclock -geometry 70x70-7+7 &amp;
xsetroot -solid midnightblue &amp;
exec twm
</PRE> <P></TT>
This script will start up two <tt>xterm</tt> clients, an <tt>oclock</tt>,
and set the root window (background) color to <tt>midnightblue</tt>.
It will then start up <tt>twm</tt>, the window manager. Note that <tt>twm</tt>
is executed with the shell's <tt>exec</tt> statement; this causes the
<tt>xinit</tt> process to be replaced with <tt>twm</tt>. Once the <tt>twm</tt>
process exits, the X server will shut down. You can cause <tt>twm</tt>
to exit by using the root menus: depress mouse button 1 on the desktop
background---this will display a pop up menu which will allow you to
<tt>Exit Twm</tt>.
<P>
Be sure that the last command in <tt>.xinitrc</tt> is started with <tt>exec</tt>,
and that it is not placed into the background (no ampersand on the end of
the line). Otherwise the X server will shut down as soon as it has
started the clients in the <tt>.xinitrc</tt> file.
<P>
Alternately, you can exit X by pressing <IMG BORDER=0 ALIGN=BOTTOM ALT="" SRC="img289.gif">-<IMG BORDER=0 ALIGN=BOTTOM ALT="" SRC="img290.gif">-<IMG BORDER=0 ALIGN=BOTTOM ALT="" SRC="img291.gif">
in combination. This will kill the X server directly, exiting the window
system.
<P>
The above is a very, very simple desktop configuration. Many wonderful
programs and configurations are available with a bit of work on your
<tt>.xinitrc</tt> file. For example, the <tt>fvwm</tt> window manager will
provide a virtual desktop, and you can customize colors, fonts,
window sizes and positions, and so forth to your heart's content.
Although the X Window System might appear to be simplistic at first,
it is extremely powerful once you customize it for yourself.
<P>
If you are new to the X Window System environment, we strongly suggest
picking up a book such as <em>The X Window System: A User's Guide</em>.
Using and configuring X is far too in-depth
to cover here. See the man pages for <tt>xterm</tt>, <tt>oclock</tt>, and
<tt>twm</tt> for clues on getting started.
<P>
<BR> <HR><A NAME=tex2html4368 HREF="node204.html"><IMG ALIGN=BOTTOM ALT="next" SRC="next_motif.gif"></A> <A NAME=tex2html4366 HREF="node198.html"><IMG ALIGN=BOTTOM ALT="up" SRC="up_motif.gif"></A> <A NAME=tex2html4360 HREF="node202.html"><IMG ALIGN=BOTTOM ALT="previous" SRC="previous_motif.gif"></A> <A NAME=tex2html4370 HREF="node1.html"><IMG ALIGN=BOTTOM ALT="contents" SRC="contents_motif.gif"></A> <A NAME=tex2html4371 HREF="node250.html"><IMG ALIGN=BOTTOM ALT="index" SRC="index_motif.gif"></A> <BR>
<B> Next:</B> <A NAME=tex2html4369 HREF="node204.html">5.1.6 Running into trouble</A>
<B>Up:</B> <A NAME=tex2html4367 HREF="node198.html">5.1 The X Window </A>
<B> Previous:</B> <A NAME=tex2html4361 HREF="node202.html">5.1.4 Filling in video </A>
<BR> <HR> <P>
<BR> <HR>
<P><ADDRESS>
<I>Matt Welsh <BR>
mdw@sunsite.unc.edu</I>
</ADDRESS>
</BODY>