<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<TITLE>Running XFree86 </TITLE>
</HEAD>
<BODY BGCOLOR="#efefef" TEXT="black" LINK="blue" VLINK="#551A8B" ALINK="red">

<A HREF="Linux.html"><EM>Information for Linux Users</EM></A>
 <b>:</b> <EM>Running XFree86 </EM><BR>
<b>Previous:</b> <A HREF="Linux3.html"><EM>Installing XFree86 </EM></A><BR>
<b>Next:</b> <A HREF="Linux5.html"><EM>Installing Xdm, the display manager</EM></A>


<HR NOSHADE>
  <H2><A NAME="4"></A>4. Running XFree86 </H2>
<p>XFree86 requires about 4mb of virtual memory to run, although
having 16mb of RAM is probably the minimum comfortable configuration. A 387
coprocessor is helpful for 386 machines, although greater gains in
interactive performance are obtained with an increase in physical memory.
Also, a faster graphics card, bus or RAM, will improve server performance.</p>
<p>After unpacking the tar files, you need to include <code>/usr/X11R6/lib</code>
in <code>/etc/ld.so.conf</code> (where it should already be by default) or in your
<code>LD_LIBRARY_PATH</code> environment variable. Also, the configuration file
<code>/etc/XF86Config</code> or <code>/usr/X11R6/lib/X11/XF86Config</code> 
<em>must</em> be properly filled out
based on the host setup. Ideally this is done using <code>XF86Setup</code> or (if
for some reason this doesn't work) using <code>xf86config</code>. If you really
insist in hand-creating your config file use <code>XF86Config.eg</code> as a 
starting point and <code>README.Config</code> as
guideline.  You may damage your hardware if you use a wrong
<code>XF86Config</code> file, so <em>read the docs</em>,
especially the man pages and the other <code>README</code> files in
<code>/usr/X11R6/lib/X11/doc</code>.</p>
<p>XFree86 has the ability to perform VT switching to and from the X
server. When first started, XFree86 will automatically locate the first
available VT (one that hasn't been opened by any process), and run on that
VT.  If there isn't one available, XFree86 will terminate with an error
message.  The server can be run on a specific VT by using the
``vt&lt;nn&gt;'' option, where
&lt;nn&gt; is the number of an available VT (starting from 1). If
you don't have a free VT XFree86 cannot run. Normally you can simply disable 
one of the <code>getty</code> programs in <code>/etc/inittab</code>, but if this is
not an option, you can increase the number of
available VTs by increasing the value of <code>NR_CONSOLES</code> in
<code>include/linux/tty.h</code> and recompiling the kernel.</p>
<p>Once running inside X, switching to another VT is accomplished by
pressing Ctrl-Alt-&lt;Fnn&gt; where nn is the number of the VT to switch to.
To return to the server, press the proper key-combination that moves you back
to the VT that XFree86 is using: by default, this is Alt-&lt;Fmm&gt;, where
mm is the number of the VT the server is running on (this number is printed
when the server is started).  Note that this is NOT the VT from which the
server was started.</p>
<p>NOTE: you can redefine the text-mode keybindings with the
`<code>loadkeys</code>' command found in the <code>kbd-0.81.tar.gz</code>
archive (or a later version thereof).
With this, you can (for example) make Ctrl-Alt-&lt;Fmm&gt; work from text mode
the same way it works under the XFree86 server.</p>
<p>When the server is exited, it will return to the original VT it was
started from, unless it dies unexpectedly, when the switch must be done
manually. There still seem to be weird combinations of graphic cards and
motherboards that have problems to restore the textfont when returning from
XFree86 to the text mode. In these cases using the <code>runx</code> script from
the <b>svgalib</b> distribution might help.</p>
<p>The XFree86 server now queries the kernel to obtain the key binding
in effect at startup. These bindings are either the default map in place
when the kernel was compiled, or reloaded using the
`<code>loadkeys</code>' utility. Not
all keys are bound: kernel-specific, multiple keysym, and dead keys are not
handled by the server. All others are translated to their X equivalents.
Note that the XFree86 server only allows for four modifier maps: unshifted,
shifted, modeswitch unshifted and modeswitch shifted.  Depending on what
the modeswitch key is (it is configurable in your <code>XF86Config</code> and defaults
to Alt),
XFree86 will read those tables into its keymaps.  This means if you use
certain keys, like left-Control, for Linux modeswitch, that will not be
mappable to X.</p>

 <HR NOSHADE>
<A HREF="Linux.html"><EM>Information for Linux Users</EM></A>
 <b>:</b> <EM>Running XFree86 </EM><BR>
<b>Previous:</b> <A HREF="Linux3.html"><EM>Installing XFree86 </EM></A><BR>
<b>Next:</b> <A HREF="Linux5.html"><EM>Installing Xdm, the display manager</EM></A>



</BODY>
</HTML>
