The source set is one tree since 2026-11-15 (tasksd t0071): /usr/src/src, /usr/src/xsrc, /usr/src/pkgsrc, with the tools and the documentation at the top. The chapters still sent the reader to /usr/msrc and /usr/xsrc (building, tour, cross, help, updating, dtinfo and the glossary's "msrc" entry); they now name /usr/src and its subdirectories. Rebuilt with docs/guide/build.sh all, check and install: 27 manual pages, 61 PDF pages (build/logs/guide-2026-11-16.log). A grep for usr/msrc and usr/xsrc over src/share/doc/makronix, src/share/man/man7 and www/guide.html finds nothing.
146 lines
7.2 KiB
XML
146 lines
7.2 KiB
XML
<!-- License: CNCL 1.0 (Could Not Care Less), see LICENSE at the top of the tree. -->
|
|
<chapter id="tour">
|
|
<title>A Tour of the System</title>
|
|
|
|
<para>Before you change anything, know where things are. Makronix uses
|
|
NetBSD's layout; the Makronix parts sit in the places CDE and pkgsrc
|
|
already use.</para>
|
|
|
|
<sect1 id="tour-filesystem">
|
|
<title>The file system</title>
|
|
|
|
<variablelist>
|
|
<varlistentry>
|
|
<term><filename>/</filename></term>
|
|
<listitem><para>The root file system: the kernel
|
|
(<filename>/netbsd</filename>), the boot loader and the base
|
|
userland.</para></listitem>
|
|
</varlistentry>
|
|
<varlistentry>
|
|
<term><filename>/etc</filename></term>
|
|
<listitem><para>The configuration of this machine:
|
|
<filename>rc.conf</filename>, <filename>fstab</filename>,
|
|
<filename>master.passwd</filename>, the network configuration and
|
|
the <filename>rc.d</filename> scripts. Files here belong to the
|
|
administrator, not to a package.</para></listitem>
|
|
</varlistentry>
|
|
<varlistentry>
|
|
<term><filename>/usr</filename></term>
|
|
<listitem><para>The base system's programs, libraries, headers,
|
|
manual pages and shared files. <filename>/usr/src</filename>
|
|
holds the whole source tree when the source set is installed: the
|
|
<application>NetBSD</application> sources under
|
|
<filename>/usr/src/src</filename>, X under
|
|
<filename>/usr/src/xsrc</filename> and pkgsrc under
|
|
<filename>/usr/src/pkgsrc</filename>.</para></listitem>
|
|
</varlistentry>
|
|
<varlistentry>
|
|
<term><filename>/usr/pkg</filename></term>
|
|
<listitem><para>Everything pkgsrc installs. The programs are in
|
|
<filename>/usr/pkg/bin</filename> and
|
|
<filename>/usr/pkg/sbin</filename>; the MCDE desktop is in
|
|
<filename>/usr/pkg/dt</filename>. The package database is
|
|
<filename>/usr/pkg/pkgdb</filename>.</para></listitem>
|
|
</varlistentry>
|
|
<varlistentry>
|
|
<term><filename>/home</filename></term>
|
|
<listitem><para>One directory per user. A new account gets
|
|
<filename>/home/</filename><replaceable>name</replaceable> and the
|
|
files from <filename>/etc/skel</filename>.</para></listitem>
|
|
</varlistentry>
|
|
<varlistentry>
|
|
<term><filename>/var</filename></term>
|
|
<listitem><para>Data that changes: logs in
|
|
<filename>/var/log</filename>, mail spools, databases, the package
|
|
cache and the print spool.</para></listitem>
|
|
</varlistentry>
|
|
</variablelist>
|
|
</sect1>
|
|
|
|
<sect1 id="tour-mcde">
|
|
<title>Where MCDE lives</title>
|
|
|
|
<para>MCDE is installed as a package under
|
|
<filename>/usr/pkg/dt</filename>. The programs are in
|
|
<filename>/usr/pkg/dt/bin</filename>; the shared data, the palettes and
|
|
the colors are in <filename>/usr/pkg/dt/share</filename>; the session
|
|
configuration is in <filename>/usr/pkg/dt/config</filename>. A user's
|
|
own desktop settings live in <filename>~/.dt</filename>.</para>
|
|
|
|
<para>The system-wide CDE configuration directory is
|
|
<filename>/etc/dt</filename>. It is the place for settings that apply
|
|
to every user, and it is where the Makronix Guide's information library
|
|
is installed (see <xref linkend="dtinfo"/>).</para>
|
|
</sect1>
|
|
|
|
<sect1 id="tour-config">
|
|
<title>The files you will edit</title>
|
|
|
|
<itemizedlist>
|
|
<listitem><para><filename>/etc/rc.conf</filename> — which
|
|
services start at boot. The variables are documented in
|
|
<citerefentry><refentrytitle>rc.conf</refentrytitle><manvolnum>5</manvolnum></citerefentry>.</para></listitem>
|
|
<listitem><para><filename>/etc/fstab</filename> — which file
|
|
systems are mounted where.</para></listitem>
|
|
<listitem><para><filename>/etc/hosts</filename>,
|
|
<filename>/etc/resolv.conf</filename> and
|
|
<filename>/etc/mygate</filename> — the network, as in NetBSD.</para></listitem>
|
|
<listitem><para><filename>/etc/npf.conf</filename> — the
|
|
firewall. Makronix installs a rule set that lets in SSH and the
|
|
replies to outgoing traffic.</para></listitem>
|
|
<listitem><para><filename>/etc/makronix/update</filename> — the
|
|
first line names the source of software updates.</para></listitem>
|
|
<listitem><para><filename>/etc/dt/config/Xsession.d/</filename> —
|
|
scripts that every MCDE session runs.</para></listitem>
|
|
</itemizedlist>
|
|
</sect1>
|
|
|
|
<sect1 id="tour-processes">
|
|
<title>What runs</title>
|
|
|
|
<para>After boot, <citerefentry><refentrytitle>init</refentrytitle><manvolnum>8</manvolnum></citerefentry>
|
|
starts the services named in <filename>/etc/rc.conf</filename>. On a
|
|
Makronix desktop the important ones are:</para>
|
|
|
|
<itemizedlist>
|
|
<listitem><para><citerefentry><refentrytitle>dtlogin</refentrytitle><manvolnum>1</manvolnum></citerefentry>
|
|
— the graphical login screen. It starts the X server and the
|
|
user's session.</para></listitem>
|
|
<listitem><para><citerefentry><refentrytitle>dtwm</refentrytitle><manvolnum>1</manvolnum></citerefentry>
|
|
— the window manager: window frames, the front panel and the
|
|
workspaces.</para></listitem>
|
|
<listitem><para><citerefentry><refentrytitle>dtsession</refentrytitle><manvolnum>1</manvolnum></citerefentry>
|
|
— the session manager behind the desktop.</para></listitem>
|
|
<listitem><para><citerefentry><refentrytitle>dhcpcd</refentrytitle><manvolnum>8</manvolnum></citerefentry>
|
|
— the DHCP client, when the network is configured by DHCP.</para></listitem>
|
|
<listitem><para><citerefentry><refentrytitle>ntpd</refentrytitle><manvolnum>8</manvolnum></citerefentry>
|
|
— the time synchronisation the installer enables.</para></listitem>
|
|
</itemizedlist>
|
|
|
|
<para><citerefentry><refentrytitle>ps</refentrytitle><manvolnum>1</manvolnum></citerefentry>
|
|
shows them; <citerefentry><refentrytitle>top</refentrytitle><manvolnum>1</manvolnum></citerefentry>
|
|
shows what they use. A process that fails at boot leaves its reason in
|
|
<filename>/var/log/messages</filename> and, for a service, in the
|
|
console output of <command>rc.d</command>.</para>
|
|
</sect1>
|
|
|
|
<sect1 id="tour-documentation">
|
|
<title>Documentation on the machine</title>
|
|
|
|
<para>The manual pages are installed in the usual sections. Start with
|
|
<citerefentry><refentrytitle>afterboot</refentrytitle><manvolnum>8</manvolnum></citerefentry>,
|
|
then read the page for the program you are using. The Makronix Guide
|
|
itself is <citerefentry><refentrytitle>makronix-guide</refentrytitle><manvolnum>7</manvolnum></citerefentry>;
|
|
each chapter has its own page, and the guide is also installed as a PDF
|
|
and as HTML under <filename>/usr/share/doc/makronix</filename>.</para>
|
|
|
|
<para>When a page does not answer the question, the source is the last
|
|
word. The source set puts the whole tree in
|
|
<filename>/usr/src</filename>: the <application>NetBSD</application>
|
|
sources under <filename>/usr/src/src</filename>, X under
|
|
<filename>/usr/src/xsrc</filename>, pkgsrc under
|
|
<filename>/usr/src/pkgsrc</filename>, and Makronix's own tools and
|
|
documentation at the top of the tree.</para>
|
|
</sect1>
|
|
</chapter>
|