DRI Compilation Guide : Normal Installation and Configuration
Previous: Compiling the XFree86/DRI tree
Next: Testing the Server Without Installing It

## 9. Normal Installation and Configuration

Most users will want to install the new X server and use it in place of their old X server. This section explains how to do that.

Developers, on the other hand, may just want to test the X server without actually installing it as their default server. If you want to do that, skip to the next section.

### 9.1. Installation

Here are the installation commands:

    	      su
    	      cd ~/DRI-CVS/build/xc
    	      make install

### 9.2. Update the XF86Config File

You may need to edit your XF86Config file to enable the DRI. The config file is usually installed as `/etc/X11/XF86Config-4`. See the DRI User Guide for details, but basically, you need to load the "glx" and "dri" modules and add a "DRI" section.

On the DRI web site, in the resources section, you'll find example XF86Config files for a number of graphics cards. These configuration files also setup DRI options so it's highly recommended that you look at these examples.

The XFree86 4.x server can generate a basic configuration file itself. Simply do this:

                 cd /usr/X11R6/bin
                 ./XFree86 -configure

A file named `/root/XF86Config.new` will be created. It should allow you to try your X server but you'll almost certainly have to edit it. For example, you should add `HorizSync` and `VertRefresh` options to the `Monitor` section and `Modes` options to the `Screen` section. Also, the `ModulePath` option in the `Files` section should be set to `/usr/X11R6/lib/modules`.

### 9.3. Start the New X Server

The new X server should be ready to use now. Start your X server in your usual manner. Often times the `startx` command is used:

                 startx

DRI Compilation Guide : Normal Installation and Configuration
Previous: Compiling the XFree86/DRI tree
Next: Testing the Server Without Installing It