3 **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.
5 To build and install **X.org** from the pkgsrc framework:
11 # echo "X11_TYPE=modular" >> /etc/mk.conf
14 Now 5 different packages need to be built and installed:
16 # cd /usr/pkgsrc/x11/modular-xorg-server
18 # cd /usr/pkgsrc/meta-pkgs/modular-xorg-drivers
20 # cd /usr/pkgsrc/meta-pkgs/modular-xorg-fonts
22 # cd /usr/pkgsrc/meta-pkgs/modular-xorg-libs
24 # cd /usr/pkgsrc/meta-pkgs/modular-xorg-apps
29 Alternatively, X11 can be installed directly from packages. Binary packages to use with [pkg_add(1)](http://leaf.dragonflybsd.org/cgi/web-man?command=pkg_add§ion=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:
35 # pkg_add modular-xorg-server
36 # pkg_add modular-xorg-drivers
37 # pkg_add modular-xorg-libs
38 # pkg_add modular-xorg-apps
39 # pkg_add modular-xorg-fonts
42 **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.