Files
lotherk b654bf74a2 docs: add The Makronix Guide and its four installed forms
One DocBook source in docs/guide produces the manual pages, one HTML
file, the PDF and an MCDE information library.  The guide follows the
structure of The NetBSD Guide, describes Makronix 0.99.10
(Camouflage), and has its own chapters for MCDE, the Information
Manager and the display.

The forms are installed by the release:

  /usr/share/doc/makronix/makronix-guide.html
  /usr/share/doc/makronix/makronix-guide.pdf
  /usr/share/doc/makronix/infolib/makronix.dti/   (base-sys-share)
  /usr/share/man/man7/makronix-guide*.7           (man-reference-man)
  /etc/dt/config/Xsession.d/0000makronix          (etc-sys-etc)
  /etc/dt/infolib/en_US.UTF-8/makronix.dti        (symlink)

The information library is built with MCDE's dtdocbook2infolib from a
small Lua writer for the CDE DocBook SGML dialect; tools/test-tools.sh
runs docs/guide/check.sh on the installed copies and proves that a
missing manual page falls red.
2026-11-15 21:21:49 +00:00

88 lines
3.8 KiB
XML

<!-- License: CNCL 1.0 (Could Not Care Less), see LICENSE at the top of the tree. -->
<chapter id="x11">
<title>The Display and X11</title>
<para>MCDE draws on the X Window System, and X is part of the Makronix
base system. The server, the drivers, the fonts and the clients are in
<filename>/usr/X11R7</filename>; there is no separate X package to
install. On a normal machine the server needs no configuration at all,
and <command>dtlogin</command> starts it.</para>
<sect1 id="x11-server">
<title>The server and the session</title>
<para>The login screen starts the X server and, after a login, the MCDE
session. A text console can start a bare X session with
<citerefentry><refentrytitle>startx</refentrytitle><manvolnum>1</manvolnum></citerefentry>,
but that is not the MCDE session: it starts the user's
<filename>~/.xinitrc</filename> and nothing else. Use it to test the
server, not as the daily desktop.</para>
<screen>$ startx
$ xdpyinfo | head
$ xrandr</screen>
<para><command>xdpyinfo</command> prints the display's capabilities, and
<command>xrandr</command> lists the outputs and the modes. A second
monitor is enabled with <command>xrandr --output</command>; the setting
lasts for the session unless it is put in a session script.</para>
</sect1>
<sect1 id="x11-config">
<title>When the server needs a configuration</title>
<para>Most hardware is detected. A machine with an unusual graphics
chip, a wrong resolution or a display that stays black can be given a
configuration file:</para>
<screen># X -configure
# cp /root/xorg.conf.new /etc/X11/xorg.conf
# X -config /etc/X11/xorg.conf</screen>
<para>The file is a starting point, not a guarantee. The log is
<filename>/var/log/Xorg.0.log</filename>; the lines marked
<literal>(EE)</literal> are errors and <literal>(WW)</literal> are
warnings. A server that starts from the console but not from
<command>dtlogin</command> usually has a permission or a display-manager
problem, not a driver problem.</para>
</sect1>
<sect1 id="x11-keyboard">
<title>Keyboard and fonts</title>
<para>The text console and X have separate keyboard settings. The
console is configured with
<citerefentry><refentrytitle>wsconsctl</refentrytitle><manvolnum>8</manvolnum></citerefentry>:</para>
<screen># wsconsctl -w keyboard.encoding=de</screen>
<para>The key map is set in <filename>/etc/wscons.conf</filename>. In X,
MCDE's System Settings sets the layout for the session; the
X server's own configuration is in
<filename>/etc/X11/xorg.conf.d/</filename>. A keyboard that types the
wrong characters in a terminal but the right ones on the console (or the
other way round) is set in the other place.</para>
<para>The fonts are installed with the X sets.
<citerefentry><refentrytitle>fc-list</refentrytitle><manvolnum>1</manvolnum></citerefentry>
lists them and <command>fc-cache -f</command> refreshes the cache after
a font is added. MCDE's terminal and login screen use Hack; the rest of
the desktop uses the system font, which System Settings changes.</para>
</sect1>
<sect1 id="x11-remote">
<title>Programs from another machine</title>
<para>An X program can run on one machine and display on another. SSH
forwards the connection, which is the safe way:</para>
<screen>$ ssh -X name@studio.example xterm</screen>
<para><option>-X</option> asks for trusted forwarding;
<option>-Y</option> is the older, less restricted form. The remote
machine needs an X client and the local one needs the server, which
Makronix has. A program that refuses to start has usually failed an
authorization check; the SSH connection sets that up for you.</para>
</sect1>
</chapter>