home *** CD-ROM | disk | FTP | other *** search
/ Freelog Special Edition 1: Linux / CD1.iso / doc / HOWTO / XFree86-HOWTO < prev    next >
Text File  |  1998-10-14  |  27KB  |  793 lines

  1.   The Linux XFree86 HOWTO
  2.   by Eric S. Raymond
  3.   v5.8, 16 August 1998
  4.  
  5.   This document describes how to obtain, install, and configure version
  6.   3.3 of the XFree86 version of the X Window System (X11R6) for Linux
  7.   systems. It is a step-by-step guide to configuring XFree86 on your
  8.   system.
  9.   ______________________________________________________________________
  10.  
  11.   Table of Contents
  12.  
  13.  
  14.   1. Introduction
  15.  
  16.      1.1 Other sources of information
  17.      1.2 New versions of this document
  18.      1.3 Feedback and Corrections
  19.  
  20.   2. Hardware requirements
  21.  
  22.   3. Installing XFree86
  23.  
  24.   4. Configuring XFree86
  25.  
  26.      4.1 Normal Configuration
  27.      4.2 Troubleshooting
  28.      4.3 Custom Configuration
  29.      4.4 Using 16-bit Color
  30.  
  31.   5. Running XFree86
  32.  
  33.      5.1 Terms of Use
  34.      5.2 Acknowledgements
  35.  
  36.   6. Translations
  37.  
  38.  
  39.  
  40.   ______________________________________________________________________
  41.  
  42.   1.  Introduction
  43.  
  44.   The X Window System is a large and powerful (some might say
  45.   excessively large and overly complex) graphics environment for UNIX
  46.   systems. The original X Window System code was developed at MIT;
  47.   commercial vendors have since made X the industry standard for UNIX
  48.   platforms. Virtually every UNIX workstation in the world runs some
  49.   variant of the X Window system.
  50.  
  51.   A freely redistributable port of the MIT X Window System version 11,
  52.   release 6 (X11R6) for 80386/80486/Pentium UNIX systems has been
  53.   developed by a team of programmers originally headed by David
  54.   Wexelblat <dwex@XFree86.org>. The release, known as XFree86, is
  55.   available for System V/386, 386BSD, and other x86 UNIX
  56.   implementations, including Linux. It includes all of the required
  57.   binaries, support files, libraries, and tools.
  58.  
  59.   Complete information on XFree86 is available at the XFree86 web site,
  60.   <http://www.XFree86.org>.
  61.  
  62.   In this document, we'll give a step-by-step description of how to
  63.   install and configure XFree86 for Linux, but you will have to fill in
  64.   some of the details yourself by reading the documentation released
  65.   with XFree86 itself. (This documentation is discussed below.)
  66.   However, using and customizing the X Window System is far beyond the
  67.   scope of this document---for this purpose you should obtain one of the
  68.   many good books on using the X Window System.
  69.  
  70.  
  71.   1.1.  Other sources of information
  72.  
  73.   If you have never heard of Linux before, there are several sources of
  74.   basic information about the system. The best place to find these is at
  75.   the Linux Documentation Project home page at
  76.   <http://sunsite.unc.edu/LDP>.  You can find the latest, up-to-date
  77.   version of this document there, as
  78.   <http://sunsite.unc.edu/LDP/HOWTO/XFree86-HOWTO.html>
  79.  
  80.  
  81.   1.2.  New versions of this document
  82.  
  83.   New versions of the Linux XFree86 HOWTO will be periodically posted to
  84.   comp.os.linux.help and  and news.answers <news:news.answers>.  They
  85.   will also be uploaded to various Linux WWW and FTP sites, including
  86.   the LDP home page.
  87.  
  88.   You can always view the latest version of this on the World Wide Web
  89.   via the URL  <http://sunsite.unc.edu/LDP/HOWTO/XFree86-HOWTO.html>.
  90.  
  91.  
  92.   1.3.  Feedback and Corrections
  93.  
  94.   If you have questions or comments about this document, please feel
  95.   free to mail Eric S. Raymond, at esr@thyrsus.com. I welcome any
  96.   suggestions or criticisms. If you find a mistake with this document,
  97.   please let me know so I can correct it in the next version. Thanks.
  98.  
  99.   Please do not mail me questions about how to make your video card and
  100.   monitor work with X.  This HOWTO is intended to be a rapid, painless
  101.   guide to normal installation using the new interactive configurator.
  102.   If you run into problems, browse the XFree86 Video Timings HOWTO,
  103.   <http://sunsite.unc.edu/LDP/HOWTO/XFree86-Video-Timings-HOWTO.html>.
  104.   (This is the up-to-date HTML version of XFree86's `Videomodes.doc'
  105.   file.)  That document tells everything I know about configuration
  106.   troubleshooting.  If it can't help you, I can't either.
  107.  
  108.  
  109.   2.  Hardware requirements
  110.  
  111.   As of XFree86 version 3.3 the following video chipsets are supported.
  112.   The documentation included with your video adaptor should specify the
  113.   chipset used. If you are in the market for a new video card, or are
  114.   buying a new machine that comes with a video card, have the vendor
  115.   find out exactly what the make, model, and chipset of the video card
  116.   is. This may require the vendor to call technical support on your
  117.   behalf; in general vendors will be happy to do this. Many PC hardware
  118.   vendors will state that the video card is a ``standard SVGA card''
  119.   which ``should work'' on your system. Explain that your software
  120.   (mention Linux and XFree86!)  does not support all video chipsets and
  121.   that you must have detailed information.
  122.  
  123.   You can also determine your videocard chipset by running the
  124.   SuperProbe program included with the XFree86 distribution.  This is
  125.   covered in more detail below.
  126.  
  127.   The following standard SVGA chipsets are supported:
  128.  
  129.   ╖  Tseng ET3000, ET4000AX, ET4000/W32, ET6000
  130.  
  131.   ╖  Western Digital/Paradise PVGA1
  132.  
  133.   ╖  Western Digital WD90C00, WD90C10, WD90C11, WD90C24, WD90C30,
  134.      WD90C31, WD90C33
  135.  
  136.   ╖  Genoa GVGA
  137.  
  138.   ╖  Trident TVGA8800CS, TVGA8900B, TVGA8900C, TVGA8900CL, TVGA9000,
  139.      TVGA9000i, TVGA9100B, TVGA9200CX, TVGA9320, TVGA9400CX, TVGA9420,
  140.      TGUI9420DGi, TGUI9430DGi, TGUI9440AGi, TGUI9660XGi, TGUI9680
  141.  
  142.   ╖  ATI 18800, 18800-1, 28800-2, 28800-4, 28800-5, 28800-6, 68800-3,
  143.      68800-6, 68800AX, 68800LX, 88800GX-C, 88800GX-D, 88800GX-E,
  144.      88800GX-F, 88800CX, 264CT, 264ET, 264VT, 264VT2, 264GT
  145.  
  146.   ╖  NCR 77C22, 77C22E, 77C22E+
  147.  
  148.   ╖  Cirrus Logic CLGD5420, CLGD5422, CLGD5424, CLGD5426, CLGD5428,
  149.      CLGD5429, CLGD5430, CLGD5434, CLGD5436, CLGD5440, CLGD5446,
  150.      CLGD5462, CLGD5464, CLGD6205, CLGD6215, CLGD6225, CLGD6235,
  151.      CLGD6410, CLGD6412, CLGD6420, CLGD6440
  152.  
  153.   ╖  OAK OTI067, OTI077, OTI087
  154.  
  155.   ╖  Avance Logic ALG2101, ALG2228, ALG2301, ALG2302, ALG2308, ALG2401
  156.  
  157.   ╖  Chips & Technologies 65520, 65530, 65540, 65545, 65520, 65530,
  158.      65540, 65545, 65546, 65548, 65550, 65554
  159.  
  160.   ╖  MX MX68000, MX680010
  161.  
  162.   ╖  Video 7/Headland Technologies HT216-32
  163.  
  164.   ╖  SiS 86C201, 86C202, 86C205
  165.  
  166.   ╖  ARK Logic ARK1000PV, ARK1000VL, ARK2000PV, ARK2000MT
  167.  
  168.   ╖  RealTek RTG3106
  169.  
  170.   ╖  Alliance AP6422
  171.  
  172.   ╖  Matrox MGA2064W and Mystique cards
  173.  
  174.   ╖  NVidia/SGS Thomson NV1, STG2000
  175.  
  176.   The following SVGA chipsets with accelerated features are also
  177.   supported:
  178.  
  179.   ╖  8514/A (and true clones)
  180.  
  181.   ╖  ATI Mach8, Mach32, Mach64
  182.  
  183.   ╖  Cirrus CLGD5420, CLGD5422, CLGD5424, CLGD5426, CLGD5428, CLGD5429,
  184.      CLGD5430, CLGD5434, CLGD5436, CLGD5440, CGLD5446, CLGD5462,
  185.      CLGD5464.
  186.  
  187.   ╖  S3 86C911, 86C924, 86C801, 86C805, 86C805i, 86C928, 86C864, 86C964,
  188.      86C732, 86C764, 86C765, 86C868, 86C968, 86C325, 86C988
  189.  
  190.   ╖  Western Digital WD90C31, WD90C33, WD90C24A
  191.  
  192.   ╖  Weitek P9000
  193.  
  194.   ╖  IIT AGX-014, AGX-015, AGX-016
  195.  
  196.   ╖  IBM XGA-2
  197.  
  198.  
  199.   ╖  Tseng ET4000/W32, ET4000/W32i, ET4000/W32p, ET6000
  200.  
  201.   ╖  Ark Logic ARK1000PV, ARK1000VL, ARK2000PV, ARK2000MT
  202.  
  203.   ╖  MGA2064W
  204.  
  205.   Video cards using these chipsets are supported on all bus types,
  206.   including VLB and PCI.
  207.  
  208.   All of the above are supported in both 256 color and monochrome modes,
  209.   with the exception of the Avance Logic, MX and Video 7 chipsets, which
  210.   are only supported in 256 color mode. If your video card has enough
  211.   DRAM installed, many of the above chipsets are supported in 16 and 32
  212.   bits-per-pixel mode (specifically, some Mach32, P9000, S3 and Cirrus
  213.   boards). The usual configuration is 8 bits per pixel (that is, 256
  214.   colors).
  215.  
  216.   The monochrome server also supports generic VGA cards, the Hercules
  217.   monochrome card, the Hyundai HGC1280, Sigma LaserView, and Apollo
  218.   monochrome cards. On the Compaq AVGA, only 64k of video memory is
  219.   supported for the monochrome server, and the GVGA has not been tested
  220.   with more than 64k.
  221.  
  222.   This list will undoubtedly expand as time passes. The release notes
  223.   for the current version of XFree86 should contain the complete list of
  224.   supported video chipsets.
  225.  
  226.   One problem faced by the XFree86 developers is that some video card
  227.   manufacturers use non-standard mechanisms for determining clock
  228.   frequencies used to drive the card. Some of these manufacturers either
  229.   don't release specifications describing how to program the card, or
  230.   they require developers to sign a non-disclosure statement to obtain
  231.   the information. This would obviously restrict the free distribution
  232.   of the XFree86 software, something that the XFree86 development team
  233.   is not willing to do. For a long time, this has been a problem with
  234.   certain video cards manufactured by Diamond, but as of release 3.1 of
  235.   XFree86, Diamond has started to work with the development team to
  236.   release free drivers for these cards.
  237.  
  238.   The suggested setup for XFree86 under Linux is a 486 or better with at
  239.   least 8 megabytes of RAM, and a video card with a chipset listed
  240.   above. For optimal performance, we suggest using an accelerated card,
  241.   such as an S3-chipset card. You should check the documentation for
  242.   XFree86 and verify that your particular card is supported before
  243.   taking the plunge and purchasing expensive hardware.
  244.  
  245.   As a side note, the personal Linux system of Matt Welsh (this FAQ's
  246.   originator) was a 486DX2-66, 20 megabytes of RAM, equipped with a VLB
  247.   S3-864 chipset card with 2 megabytes of DRAM.  He ran X benchmarks on
  248.   this machine as well as on Sun Sparc IPX workstations.  The Linux
  249.   system was roughly 7 times faster than the Sparc IPX (for the curious,
  250.   XFree86-3.1 under Linux, with this video card, runs at around 171,000
  251.   xstones; the Sparc IPX at around 24,000). In general, XFree86 on a
  252.   Linux system with an accelerated SVGA card will give you much greater
  253.   performance than that found on commercial UNIX workstations (which
  254.   usually employ simple framebuffers for graphics).
  255.  
  256.   Your machine will need at least 4 megabytes of physical RAM, and 16
  257.   megabytes of virtual RAM (for example, 8 megs physical and 8 megs
  258.   swap).  Remember that the more physical RAM that you have, the less
  259.   that the system will swap to and from disk when memory is low. Because
  260.   swapping is inherently slow (disks are very slow compared to memory),
  261.   having 8 megabytes of RAM or more is necessary to run XFree86
  262.   comfortably.  16 is better.  A system with 4 megabytes of physical RAM
  263.   could run much (up to 10 times) more slowly than one with 8 megs or
  264.   more.
  265.   3.  Installing XFree86
  266.  
  267.   It's quite likely that you obtained XFree86 as part of a Linux
  268.   distribution, in which case downloading the software separately is not
  269.   necessary.  In that case you can skip this section.
  270.  
  271.   The Linux binary distribution of XFree86 can be found on a number of
  272.   FTP sites.  On the XFree86 site it's at
  273.   <ftp://ftp.xfree86.org/pub/XFree86/current/binaries/Linux-ix86> (As of
  274.   the time of this writing, the current version is 3.2A; newer versions
  275.   are released periodically).
  276.  
  277.   Before doing anything else, download and run the `preinst.sh' shell
  278.   script first.  This may tell you about prerequisites you'll need to
  279.   have in place before contibuing your installation.
  280.  
  281.   If you are downloading XFree86 directly, this table lists the files in
  282.   the XFree86-3.3 distribution.
  283.  
  284.   One of the following servers is required:
  285.  
  286.      X338514.tgz
  287.         Server for 8514-based boards.
  288.  
  289.      X33AGX.tgz
  290.         Server for AGX-based boards.
  291.  
  292.      X33I128.tgz
  293.         Server for the Number Nine Imagine 128.
  294.  
  295.      X33Mach32.tgz
  296.         Server for Mach32-based boards.
  297.  
  298.      X33Mach64.tgz
  299.         Server for Mach64-based boards.
  300.  
  301.      X33Mach8.tgz
  302.         Server for Mach8-based boards.
  303.  
  304.      X33Mono.tgz
  305.         Server for monochrome video modes.
  306.  
  307.      X33P9K.tgz
  308.         Server for P9000-based boards.
  309.  
  310.      X33S3.tgz
  311.         Server for S3-based boards.
  312.  
  313.      X33S3V.tgz
  314.         Server for the S3 ViRGE and ViRGE/VX (considered beta)
  315.  
  316.      X33SVGA.tgz
  317.         Server for Super VGA-based boards.
  318.  
  319.      X33W32.tgz
  320.         Server for ET4000/W32-based boards.
  321.  
  322.   If you don't know which one to take, take the VGA16 server,
  323.   X33VGA16.tgz.  You want to download this one anyway, because you'll
  324.   need it to run the auto-configuration utility in the next step.
  325.  
  326.   All of the following files are required:
  327.  
  328.      preinst.sh
  329.         Pre-installation script
  330.  
  331.      postinst.sh
  332.         Post-installation script
  333.  
  334.      X33bin.tgz
  335.         The rest of the X11R6 binaries.
  336.  
  337.      X33cfg.tgz
  338.         Config files for xdm, xinit and fs.
  339.  
  340.      X33doc.tgz
  341.         Documentation.
  342.  
  343.      X33man.tgz
  344.         Manual pages.
  345.  
  346.      X33fnts.tgz
  347.         75dpi, misc and PEX fonts
  348.  
  349.      X33lib.tgz
  350.         Shared X libraries and support files.
  351.  
  352.      X33set.tgz
  353.         XF86Setup utility
  354.  
  355.      X33VG16.tgz
  356.         Server for VGA/EGA-based boards.
  357.  
  358.   The following files are optional:
  359.  
  360.      X33f100.tgz
  361.         100dpi fonts
  362.  
  363.      X33fcyr.tgz
  364.         Cyrillic fonts
  365.  
  366.      X33fnon.tgz
  367.         Other fonts (Chinese, Japanese, Korean, Hebrew)
  368.  
  369.      X33fscl.tgz
  370.         Scalable fonts (Speedo and Type1)
  371.  
  372.      X33fsrv.tgz
  373.         Font server and config files
  374.  
  375.      X33prog.tgz
  376.         X header files, config files and compile-time libs
  377.  
  378.      X33lkit.tgz
  379.         X server LinkKit
  380.  
  381.      X33lk98.tgz
  382.         PC98 X server LinkKit
  383.  
  384.      X33nest.tgz
  385.         Nested X server
  386.  
  387.      X33prt.tgz
  388.         X print server
  389.  
  390.      X33vfb.tgz
  391.         Virtual framebuffer X server
  392.  
  393.      X33ps.tgz
  394.         PostScript version of the documentation
  395.  
  396.  
  397.      X33html.tgz
  398.         HTML version of the documentation
  399.  
  400.   The XFree86 directory should contain release notes for the current
  401.   version in RELNOTES.  Consult those for installation details
  402.  
  403.   All that is required to install XFree86 is to obtain the above files,
  404.   create the directory /usr/X11R6 (as root), and unpack the files from
  405.   /usr/X11R6 with a command such as:
  406.  
  407.  
  408.        gzip -dc X33bin.tgz | tar xfB -
  409.  
  410.  
  411.  
  412.  
  413.   Remember that these tar files are packed relative to /usr/X11R6, so
  414.   it's important to unpack the files there.
  415.  
  416.   You need to make sure that /usr/X11R6/bin is on your path.  This can
  417.   be done by editing your system default /etc/profile or /etc/csh.login
  418.   (based on the shell that you, or other users on your system, use). Or
  419.   you can simply add the directory to your personal path by modifying
  420.   .bashrc or .cshrc, based on your shell.
  421.  
  422.   You also need to make sure that /usr/X11R6/lib can be located by
  423.   ld.so, the runtime linker. To do this, add the line
  424.  
  425.  
  426.        /usr/X11R6/lib
  427.  
  428.  
  429.  
  430.  
  431.   to the file /etc/ld.so.conf, and run /sbin/ldconfig, as root.
  432.  
  433.  
  434.   4.  Configuring XFree86
  435.  
  436.  
  437.   4.1.  Normal Configuration
  438.  
  439.   Configuring XFree86 to use your mouse, keyboard, monitor, and video
  440.   card correctly used to be something of a black art, requiring
  441.   extensive hand-hacking of a complex configuration file.  No more; the
  442.   3.2/3.3 release made the process nearly trivial.  All you do is fire
  443.   up the program XF86Setup.
  444.  
  445.   This program depends on the fact that all new PC hardware these days
  446.   ships with EGA/VGA capable monitors.  It invokes the VGA16 server and
  447.   uses it to bring up X in a lowest-common-denominator 640x480 mode.
  448.   Then it runs an interactive program that walks you through a series of
  449.   five configuration panels -- mouse, keyboard, (video) card, monitor,
  450.   and `other' (miscellaneous server options). The whole process is quite
  451.   painless.
  452.  
  453.   (If you're running Red Hat Linux, you may see a different program
  454.   called xf86config.  This works fairly similarly to XF86Setup but does
  455.   not itself use an X interface and the VGA16 server.)
  456.  
  457.   One minor point to keep in mind is that, if you're like most people
  458.   using a current PC, your keyboard is actually what XF86Setup calls
  459.   `Generic 102-key PC (intl)' rather than the default `Generic 101-key
  460.   PC'.  If you pick the default (101) the key cluster on the extreme
  461.   right of your keyboard (numeric keypad and friends) may stop working.
  462.  
  463.   If you're not sure of your monitor type, you can try the listed ones
  464.   in succession.  Work your way from top down (upper choices involve
  465.   lower dot-clock speeds and are less demanding on the hardware).  Back
  466.   off if you get hash or a seriously distorted picture. Minor
  467.   distortions (picture slightly too large, slightly too small, or
  468.   slightly off-center) are no problem; you'll get a chance to correct
  469.   those immediately by fine-tuning the mode.
  470.  
  471.   And, when the program brings up xvidtune to allow you to tweak your
  472.   video mode, don't let the initial warning box make you nervous.
  473.   Modern multisync monitors (unlike their fixed-frequency predecessors)
  474.   are not easy to damage this way.
  475.  
  476.   XF86Config may assume that your mouse device is /dev/mouse.  If you
  477.   find this doesn't work, you may need to link /dev/mouse to whatever
  478.   /dev/ca[01] the mouse is on.   If you find that XFree86 gives you a
  479.   "mouse busy" error when
  480.  
  481.   ______________________________________________________________________
  482.   gpm
  483.   ______________________________________________________________________
  484.  
  485.  
  486.   /dev/ttyS[01] instead.
  487.  
  488.   The configuration process operates by selecting a server corresponding
  489.   to to the general type of your video card (such as XF86_VGA16,
  490.   XF86_Mach64, or XF86_S3) and configuring an XF86Config that the server
  491.   will read on startup to get specific parameters for your installation.
  492.   The location of XF86Config varies depending on your OS, but one place
  493.   to look for it is /etc/X11.
  494.  
  495.   On older versions of XFree86, XF86Setup links the `X' command directly
  496.   to the chosen server.  In recent versions, `X' is instead linked to a
  497.   set-user-id wrapper program called Xwrapper.  The idea is that all the
  498.   setuid root stuff gets localized in Xwrapper so the server doesn't
  499.   have to run setuid root.
  500.  
  501.  
  502.   4.2.  Troubleshooting
  503.  
  504.  
  505.   Occasionally, something will not be quite right when you initially
  506.   fire up the X server. This is almost always caused by a problem in
  507.   your configuration file. Usually, the monitor timing values are off,
  508.   or the video card dot clocks set incorrectly. Minor problems can be
  509.   fixed with xvidtune; a really garbled screen usually means you need to
  510.   go back into XF86Setup and choose a less capable monitor type.
  511.  
  512.   If your display seems to roll, or the edges are fuzzy, this is a clear
  513.   indication that the monitor timing values or dot clocks are wrong.
  514.   Also be sure that you are correctly specifying your video card
  515.   chipset, as well as other options for the Device section of
  516.   XF86Config. Be absolutely certain that you are using the right X
  517.   server and that /usr/X11R6/bin/X is a symbolic link to this server.
  518.  
  519.   If all else fails, try to start X ``bare''; that is, use a command
  520.   such as:
  521.  
  522.  
  523.        X > /tmp/x.out 2>&1
  524.  
  525.  
  526.  
  527.  
  528.   You can then kill the X server (using the ctrl-alt-backspace key
  529.   combination) and examine the contents of /tmp/x.out. The X server will
  530.   report any warnings or errors---for example, if your video card
  531.   doesn't have a dot clock corresponding to a mode supported by your
  532.   monitor.
  533.  
  534.   Remember that you can use ctrl-alt-numeric + and ctrl-alt-numeric - to
  535.   switch between the video modes listed on the Modes line of the Screen
  536.   section of XF86Config. If the highest resolution mode doesn't look
  537.   right, try switching to lower resolutions. This will let you know, at
  538.   least, that those parts of your X configuration are working correctly.
  539.  
  540.   Also, check the vertical and horizontal size/hold knobs on your
  541.   monitor.  In many cases it is necessary to adjust these when starting
  542.   up X. For example, if the display seems to be shifted slightly to one
  543.   side, you can usually correct this using the monitor controls.
  544.  
  545.   The USENET newsgroup comp.windows.x.i386unix is devoted to discussions
  546.   about XFree86, as is comp.os.linux.x.  It might be a good idea to
  547.   watch that newsgroup for postings relating to your video
  548.   configuration---you might run across someone with the same problems as
  549.   your own.
  550.  
  551.  
  552.   4.3.  Custom Configuration
  553.  
  554.   You will need to hand-hack your X configuration to get optimal
  555.   performance if your monitor can support 1600x1200 -- the highest
  556.   canned resolution XF86Setup supports is 1280x1024.
  557.  
  558.   If you want to hand-hack your video configuration for this or any
  559.   other reason, go see the LDP's XFree86 Video Timings HOWTO,
  560.   <http://sunsite.unc.edu/LDP/HOWTO/XFree86-Video-Timings-HOWTO.html>.
  561.   (This is the up-to-date HTML version of XFree86's `Videomodes.doc'
  562.   file.)
  563.  
  564.  
  565.   4.4.  Using 16-bit Color
  566.  
  567.  
  568.   By default, X uses 8-bit color depth giving 256 colors. To circumvent
  569.   this restriction, many applications allocate their own colormaps,
  570.   resulting in sudden color jumps when the cursor moves between two
  571.   windows each having a color map of its own. The Arena WWW browser does
  572.   it this way.
  573.  
  574.   If you want to use advanced graphic applications 256 colors may be not
  575.   sufficient.  You may need to go to 16-bit color depth (65,536 colors).
  576.   But beware, not all applications will work with 16bit colors.
  577.  
  578.   You can use 16bit color depth with 65K different colors simply by
  579.   starting X with
  580.  
  581.  
  582.   ______________________________________________________________________
  583.       startx -- -bpp 16
  584.   ______________________________________________________________________
  585.  
  586.  
  587.  
  588.   or putting
  589.  
  590.  
  591.   ______________________________________________________________________
  592.       exec X :0 -bpp 16
  593.   ______________________________________________________________________
  594.  
  595.   into your .xserverrc file.  In order for this to work, however, you
  596.   need to have a
  597.  
  598.   ______________________________________________________________________
  599.   screen
  600.   ______________________________________________________________________
  601.  
  602.  
  603.  
  604.  
  605.   ______________________________________________________________________
  606.       DefaultColorDepth 16
  607.   ______________________________________________________________________
  608.  
  609.  
  610.  
  611.   If you're using xdm, you may need to change the Xservers file, which
  612.   is probably located in /etc/X11/xdm/.  A typical configuration has
  613.   just one uncommented line, looking something like
  614.  
  615.  
  616.   ______________________________________________________________________
  617.         :0 local /usr/X11R6/bin/X
  618.   ______________________________________________________________________
  619.  
  620.  
  621.  
  622.   Add
  623.  
  624.   ______________________________________________________________________
  625.   -bpp 16
  626.   ______________________________________________________________________
  627.  
  628.  
  629.  
  630.  
  631.   ______________________________________________________________________
  632.         :0 local /usr/X11R6/bin/X -bpp 16
  633.   ______________________________________________________________________
  634.  
  635.  
  636.  
  637.   Also, you'll need to add to the `screen' section of your X
  638.   configuration a Display part with a Depth value of 16.  Generally you
  639.   can just duplicate the 8-bit Display section and change the Depth
  640.   field.
  641.  
  642.   More colors makes your video card transfer more data during the same
  643.   time. If your video card cannot cope, then either the resolution has
  644.   or the refresh rate has to be reduced.  By default, XFree reduces the
  645.   resolution.  If you want to keep the resolution and reduce the refresh
  646.   rate, you must insert a new appropriate Modeline into your XF86Config
  647.   file which defines that resolution with a lower refresh rate. For
  648.   instance replace the old value
  649.  
  650.  
  651.        Modeline "1024x768"  75  1024 1048 1184 1328 768 771 777 806 -hsync -vsync
  652.  
  653.  
  654.  
  655.  
  656.   with
  657.  
  658.  
  659.        Modeline "1024x768"  65  1024 1032 1176 1344 768 771 777 806 -hsync -vsync.
  660.  
  661.   The magic numbers 75 and 65 are the respective clock rates which you
  662.   find reported by X in your .X.err file. Consult the monitors file in
  663.   the XF86 documentation for Modelines suitable to the maximum clock
  664.   rate your video card can deliver under 16bit color depth.
  665.  
  666.  
  667.   5.  Running XFree86
  668.  
  669.   With your XF86Config file configured, you're ready to fire up the X
  670.   server and give it a spin. First, be sure that /usr/X11R6/bin is on
  671.   your path.
  672.  
  673.   The command to start up XFree86 is
  674.  
  675.        startx
  676.  
  677.  
  678.   This is a front-end to xinit (in case you're used to using xinit on
  679.   other UNIX systems).
  680.  
  681.   This command will start the X server and run the commands found in the
  682.   file .xinitrc in your home directory. .xinitrc is just a shell script
  683.   containing X clients to run. If this file does not exist, the system
  684.   default /usr/X11R6/lib/X11/xinit/xinitrc will be used.
  685.  
  686.   A standard .xinitrc file looks like this:
  687.  
  688.  
  689.        #!/bin/sh
  690.  
  691.        xterm -fn 7x13bold -geometry 80x32+10+50 &
  692.        xterm -fn 9x15bold -geometry 80x34+30-10 &
  693.        oclock -geometry 70x70-7+7 &
  694.        xsetroot -solid midnightblue &
  695.  
  696.        exec fvwm2
  697.  
  698.  
  699.  
  700.  
  701.   This script will start up two xterm clients, an oclock, and set the
  702.   root window (background) color to midnightblue.  It will then start up
  703.   fvwm2, the window manager. Note that fvwm2 is executed with the
  704.   shell's exec statement; this causes the xinit process to be replaced
  705.   with fvwm2. Once the fvwm2 process exits, the X server will shut down.
  706.   You can cause fvwm2 to exit by using the root menus: depress mouse
  707.   button 1 on the desktop background---this will display a pop up menu
  708.   which will allow you to Exit Fvwm2.
  709.  
  710.   Be sure that the last command in .xinitrc is started with exec, and
  711.   that it is not placed into the background (no ampersand on the end of
  712.   the line). Otherwise the X server will shut down as soon as it has
  713.   started the clients in the .xinitrc file.
  714.  
  715.   Alternately, you can exit X by pressing ctrl-alt-backspace in
  716.   combination. This will kill the X server directly, exiting the window
  717.   system.
  718.  
  719.   The above is a very, very simple desktop configuration. Many wonderful
  720.   programs and configurations are available with a bit of work on your
  721.   .xinitrc file.
  722.  
  723.   If you are new to the X Window System environment, we strongly suggest
  724.   picking up a book such as The X Window System: A User's Guide.  Using
  725.   and configuring X is far too in-depth to cover here. See the man pages
  726.   for xterm, oclock, and fvwm2 for clues on getting started.
  727.   5.1.  Terms of Use
  728.  
  729.   This document is copyright 1996 by Eric S. Raymond. You may use,
  730.   disseminate, and reproduce it freely, provided you:
  731.  
  732.  
  733.   ╖  Do not omit or alter this copyright notice.
  734.  
  735.   ╖  Do not omit or alter the version number and date.
  736.  
  737.   ╖  Do not omit or alter the document's pointer to the current WWW
  738.      version.
  739.  
  740.   ╖  Clearly mark any condensed or altered versions as such.
  741.  
  742.   These restrictions are intended to protect potential readers from
  743.   stale or mangled versions.  If you think you have a good case for an
  744.   exception, ask me.
  745.  
  746.  
  747.   5.2.  Acknowledgements
  748.  
  749.   This document was originated by Matt Welsh in the dim and backward
  750.   abysm of time.  Thanks, Matt!
  751.  
  752.  
  753.  
  754.   6.  Translations
  755.  
  756.  
  757.   ╖  Slovenian <http://www.lugos.si/delo/slo/HOWTO-sl/XFree86-HOWTO-
  758.      sl.html>
  759.  
  760.  
  761.  
  762.  
  763.  
  764.  
  765.  
  766.  
  767.  
  768.  
  769.  
  770.  
  771.  
  772.  
  773.  
  774.  
  775.  
  776.  
  777.  
  778.  
  779.  
  780.  
  781.  
  782.  
  783.  
  784.  
  785.  
  786.  
  787.  
  788.  
  789.  
  790.  
  791.  
  792.  
  793.