Installing Makronix
The installer is sysinst8,
Makronix's fork of NetBSD's installer. It has two ways: the simple way,
which decides as much as it can, and the full way, which is NetBSD's
installation with every question. Both install the same system.
If the machine is a virtual one, has the
QEMU/KVM and Proxmox VE settings.
Starting the installer
Start the machine from the medium. On a machine with UEFI, choose
the stick or the DVD in the firmware's boot menu; on a Mac, hold
Option while it starts. On a BIOS machine, set the
boot order or press the firmware's boot-menu key. The installer starts
from the medium and runs in memory, so the medium can be removed once
the installation has begun.
The first questions are the language and the keyboard layout.
They apply to the installer only; the installed system gets its
keyboard layout from the desktop settings.
The simple way
Choose the installation type. The simple
way is the first choice. The full way is
Install NetBSD
and is described in
.
Choose the disk. The installer lists the
disks it found. Choosing one erases every partition on it. If the
machine has more than one disk, unplug the one you want to keep
before you start; that is safer than reading the list twice.
Decide about encryption. If you say yes,
the installer encrypts the root file system with
cgd4
and asks for the passphrase twice. The passphrase is asked for at
every boot. If you say no, the disk is installed in clear text.
The installer partitions the disk and unpacks the
sets. It installs the base system, the
makronix
set (the desktop and its programs) and, when
the medium carries them, the source sets. It asks whether to
install the games; the default is yes.
Answer the configuration forms. The
installer asks for the computer's name, the network (Ethernet with
DHCP, or Wi-Fi and its passphrase), the time zone, the
administrator's password and your account. These are the answers
from .
Reboot. Remove the medium. The machine
starts into dtlogin1,
the MCDE login screen.
The installer sets up more than the account: SSH is enabled, time
synchronisation is enabled, a firewall (npf) lets in SSH and the replies
to outgoing traffic, and the machine answers to
name.local on the local
network.
Note: the simple way uses the whole disk. It
does not preserve another operating system. If the machine must keep
one, use the full way and partition by hand.
The full way
The full way is the NetBSD installation. It asks for the
partition table (MBR or GPT), the NetBSD disklabel, the sets, the network
and the time zone, and it writes the boot blocks. The procedure is the
one in The NetBSD Guide, chapter
Example installation
; the questions and their meanings
are NetBSD's, and the installer's manual page is
sysinst8.
Two Makronix details matter in the full way:
Choose the makronix
set as well as the
base sets. Without it there is no desktop, no
dtlogin and no MCDE programs.
The Next CD
menu asks for the next
medium when a set is not on the current one. A DVD or a USB image
does not need it.
An encrypted system
With encryption, the disk holds one cgd
partition with the root file system, and a small unencrypted partition
that the boot loader can read: the kernel, cgdroot.kmod
and cgd.conf. The loader asks for the passphrase,
unlocks the disk and starts the kernel from the encrypted root.
The unencrypted partition is mounted as /cgdboot
(with noauto
in /etc/fstab). A
kernel update on an encrypted system is not complete until the new
kernel and the matching cgdroot.kmod are copied to
it; gives the commands.
The first boot
The login screen is MCDE's dtlogin. Log in with
the account you created; the desktop starts with the front panel, the
bar at the top and the workspace controls.
explains what you are looking at.
Open a terminal and check the machine:
$ ifconfig -a
$ netstat -rn
$ date
$ ps -ax | grep -E 'dhcpcd|ntpd|dtlogin'
If the network is not up, dhcpcd can be started
by hand; if the clock is wrong, ntpd needs a reachable
server. Both are services in /etc/rc.conf; see
.
Change the administrator's password and your own with
passwd1.
The account is in the wheel group, so su works; use
it for administrative commands, as the rest of this guide does.
When the installation does not start
The firmware does not offer the stick.
Write the image again to a different stick and compare its checksum.
On a UEFI machine, disable Secure Boot
for the
installation; on a Mac, the stick must be formatted by the image, not
copied as a file.
The machine starts, then stops with a mount
or unpacking error. The medium is bad or the disk is
failing. Check the medium's checksum and try another disk.
The installed machine does not start.
Start from the medium again and choose the shell, then inspect the
disk with disklabel and mount the root partition by
hand. The boot messages are on the console; dmesg
repeats them.