A Tour of the System
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.
The file system
/
The root file system: the kernel
(/netbsd), the boot loader and the base
userland.
/etc
The configuration of this machine:
rc.conf, fstab,
master.passwd, the network configuration and
the rc.d scripts. Files here belong to the
administrator, not to a package.
/usr
The base system's programs, libraries, headers,
manual pages and shared files. /usr/src
holds the whole source tree when the source set is installed: the
NetBSD sources under
/usr/src/src, X under
/usr/src/xsrc and pkgsrc under
/usr/src/pkgsrc.
/usr/pkg
Everything pkgsrc installs. The programs are in
/usr/pkg/bin and
/usr/pkg/sbin; the MCDE desktop is in
/usr/pkg/dt. The package database is
/usr/pkg/pkgdb.
/home
One directory per user. A new account gets
/home/name and the
files from /etc/skel.
/var
Data that changes: logs in
/var/log, mail spools, databases, the package
cache and the print spool.
Where MCDE lives
MCDE is installed as a package under
/usr/pkg/dt. The programs are in
/usr/pkg/dt/bin; the shared data, the palettes and
the colors are in /usr/pkg/dt/share; the session
configuration is in /usr/pkg/dt/config. A user's
own desktop settings live in ~/.dt.
The system-wide CDE configuration directory is
/etc/dt. It is the place for settings that apply
to every user, and it is where the Makronix Guide's information library
is installed (see ).
The files you will edit
/etc/rc.conf — which
services start at boot. The variables are documented in
rc.conf5.
/etc/fstab — which file
systems are mounted where.
/etc/hosts,
/etc/resolv.conf and
/etc/mygate — the network, as in NetBSD.
/etc/npf.conf — the
firewall. Makronix installs a rule set that lets in SSH and the
replies to outgoing traffic.
/etc/makronix/update — the
first line names the source of software updates.
/etc/dt/config/Xsession.d/ —
scripts that every MCDE session runs.
What runs
After boot, init8
starts the services named in /etc/rc.conf. On a
Makronix desktop the important ones are:
dtlogin1
— the graphical login screen. It starts the X server and the
user's session.
dtwm1
— the window manager: window frames, the front panel and the
workspaces.
dtsession1
— the session manager behind the desktop.
dhcpcd8
— the DHCP client, when the network is configured by DHCP.
ntpd8
— the time synchronisation the installer enables.
ps1
shows them; top1
shows what they use. A process that fails at boot leaves its reason in
/var/log/messages and, for a service, in the
console output of rc.d.
Documentation on the machine
The manual pages are installed in the usual sections. Start with
afterboot8,
then read the page for the program you are using. The Makronix Guide
itself is makronix-guide7;
each chapter has its own page, and the guide is also installed as a PDF
and as HTML under /usr/share/doc/makronix.
When a page does not answer the question, the source is the last
word. The source set puts the whole tree in
/usr/src: the NetBSD
sources under /usr/src/src, X under
/usr/src/xsrc, pkgsrc under
/usr/src/pkgsrc, and Makronix's own tools and
documentation at the top of the tree.