X server

The X.Org server, part of the X.Org releases, is desktop environments or window managers, and their applications.]]

Installation
This page will provide you with useful information but the Xorg guide details the installation of Xorg in a more convenient manner.

USE flags
Portage knows the  USE flag for enabling support for X in other packages (default in all desktop profiles). Make sure this USE flag is added to the USE flag list to ensure X compatibility system wide:

xorg-drivers
is a meta package to pull in the wanted drivers:


 * Graphics adapters, see VIDEO_CARDS
 * Input devices and INPUT_DEVICES

Follow the links for information how to set up these devices.

mesa
(see Wikipedia) is a graphic library that provides a generic OpenGL implementation.

xorg-server
Now install.

Alternatively you can install the meta package, which installs the full X.Org release with additional fonts and utilities. They're not necessary for a working desktop.

xorg.conf
The X server is designed to work out-of-the-box, with no need to manually edit Xorg's configuration files. It should detect and configure devices such as displays, keyboards, and mice.

However, the main configuration file of the X server is the xorg.conf.

Boot service
Usually the X server is started by starting a display manager automatically on boot.

x11 ebuild repository
The Gentoo X11 team maintains the x11 ebuild repository. It contains X.Org versions in preparation to be moved to the portage tree, pre versions of the next main version and live versions for trunk. Use layman to setup the repository.