It is possible to run X clients on a system without any graphical support. For example, one could have an application (the X client) running on an ARM system, displaying its output on an amd64's graphical display (the X server). Since X is a well-defined, cross-platform protocol, it is even possible to have an X application running on (for example) a Linux machine use an OpenBSD machine for its display. The client and server can also be running on the same machine, and for most of this section, that will be the assumption.
The details of manual X configuration vary considerably from platform
In all cases, there will be instructions and other platform-specific
/usr/X11R6/README on the installed system.
If you didn't enable xenodm at install time, you can do so like any other system daemon:
# rcctl enable xenodmOn some platforms, you will need to disable the console getty(8) to use xenodm. This is not needed on amd64, i386 or macppc.
$HOME/.xinitrcscript. If this script doesn't exist, the system's
/etc/X11/xinit/xinitrcfile is used instead.
/etc/X11/xenodm/Xsessionscript checks whether there is a
.xsessionscript contains only one line specifying your preferred window manager:
cwmOr you can get a little more fancy:
export ENV=$HOME/.kshrc xconsole -geometry -0+0 -fn 5x7 & oclock -geometry 75x75-0-0 & xsetroot -solid grey & cwmNote that the window manager cwm(1) is not being run in the background. This means that X will stay running until it exits.