DragonFly BSD

handbook-x-install

Installing X11

X.org or XFree86™ may be installed on DragonFly. DragonFly doesn't force a default implementation, but recommends X.org . X.org is the X server of the open source X Window System implementation released by the X.Org Foundation and is based on the code of XFree86 4.4RC2 and !X11R6.6. X.org is currently available in the DragonFly pkgsrc framework.

To build and install X.org from the pkgsrc framework:

# echo "X11_TYPE=modular" >> /etc/mk.conf

Now 5 different packages need to be built and installed:

# cd /usr/pkgsrc/x11/modular-xorg-server
# bmake install clean
# cd /usr/pkgsrc/meta-pkgs/modular-xorg-drivers
# bmake install clean
# cd /usr/pkgsrc/meta-pkgs/modular-xorg-fonts
# bmake install clean
# cd /usr/pkgsrc/meta-pkgs/modular-xorg-libs
# bmake install clean
# cd /usr/pkgsrc/meta-pkgs/modular-xorg-apps
# bmake install clean

Alternatively, X11 can be installed directly from packages. Binary packages to use with pkg_add(1) tool are also available for X11. The following example assumes PKG_PATH has been set to the URL of an existing online binary pkgsrc archive. A complete URL for a given package will also work as an argument. So to fetch and install the package of X.org , assuming PKG_PATH is set as above, type:

# pkg_add modular-xorg-server
# pkg_add modular-xorg-drivers
# pkg_add modular-xorg-libs
# pkg_add modular-xorg-apps
# pkg_add modular-xorg-fonts

Note: The examples above will install the complete X11 distribution including the server, drivers, fonts etc. Separate packages and ports of X11 are also available.