QEMU/KVM: KVM/CPU host, 2-4 GiB, 32 GiB disk, BIOS and UEFI (OVMF with a writable variable store), AHCI for UEFI because OVMF's IDE is slow, the serial console (com0) and the device names the installer shows (ld0, sd0, wd0). Proxmox VE: q35/OVMF or i440fx/SeaBIOS, VirtIO SCSI, the qm create example, boot order, serial socket and the noVNC focus note. The installation chapter points to it. Rebuilt 28 manual pages and the 73-page PDF with page numbers and the chapter outline; www/guide.html updated. The print stylesheet wraps long commands instead of clipping them.
168 lines
7.8 KiB
XML
168 lines
7.8 KiB
XML
<!-- License: CNCL 1.0 (Could Not Care Less), see LICENSE at the top of the tree. -->
|
|
<chapter id="install">
|
|
<title>Installing Makronix</title>
|
|
|
|
<para>The installer is <citerefentry><refentrytitle>sysinst</refentrytitle><manvolnum>8</manvolnum></citerefentry>,
|
|
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.</para>
|
|
|
|
<para>If the machine is a virtual one, <xref linkend="vm"/> has the
|
|
QEMU/KVM and Proxmox VE settings.</para>
|
|
|
|
<sect1 id="install-boot">
|
|
<title>Starting the installer</title>
|
|
|
|
<para>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
|
|
<literal>Option</literal> 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.</para>
|
|
|
|
<para>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.</para>
|
|
</sect1>
|
|
|
|
<sect1 id="install-simple">
|
|
<title>The simple way</title>
|
|
|
|
<orderedlist>
|
|
<listitem>
|
|
<para><emphasis>Choose the installation type.</emphasis> The simple
|
|
way is the first choice. The full way is
|
|
<quote>Install NetBSD</quote> and is described in
|
|
<xref linkend="install-full"/>.</para>
|
|
</listitem>
|
|
<listitem>
|
|
<para><emphasis>Choose the disk.</emphasis> 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.</para>
|
|
</listitem>
|
|
<listitem>
|
|
<para><emphasis>Decide about encryption.</emphasis> If you say yes,
|
|
the installer encrypts the root file system with
|
|
<citerefentry><refentrytitle>cgd</refentrytitle><manvolnum>4</manvolnum></citerefentry>
|
|
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.</para>
|
|
</listitem>
|
|
<listitem>
|
|
<para><emphasis>The installer partitions the disk and unpacks the
|
|
sets.</emphasis> It installs the base system, the
|
|
<quote>makronix</quote> 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.</para>
|
|
</listitem>
|
|
<listitem>
|
|
<para><emphasis>Answer the configuration forms.</emphasis> 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 <xref linkend="before-answers"/>.</para>
|
|
</listitem>
|
|
<listitem>
|
|
<para><emphasis>Reboot.</emphasis> Remove the medium. The machine
|
|
starts into <citerefentry><refentrytitle>dtlogin</refentrytitle><manvolnum>1</manvolnum></citerefentry>,
|
|
the MCDE login screen.</para>
|
|
</listitem>
|
|
</orderedlist>
|
|
|
|
<para>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
|
|
<replaceable>name</replaceable><filename>.local</filename> on the local
|
|
network.</para>
|
|
|
|
<para><emphasis>Note:</emphasis> 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.</para>
|
|
</sect1>
|
|
|
|
<sect1 id="install-full">
|
|
<title>The full way</title>
|
|
|
|
<para>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 <citetitle>The NetBSD Guide</citetitle>, chapter
|
|
<quote>Example installation</quote>; the questions and their meanings
|
|
are NetBSD's, and the installer's manual page is
|
|
<citerefentry><refentrytitle>sysinst</refentrytitle><manvolnum>8</manvolnum></citerefentry>.</para>
|
|
|
|
<para>Two Makronix details matter in the full way:</para>
|
|
|
|
<itemizedlist>
|
|
<listitem><para>Choose the <quote>makronix</quote> set as well as the
|
|
base sets. Without it there is no desktop, no
|
|
<command>dtlogin</command> and no MCDE programs.</para></listitem>
|
|
<listitem><para>The <quote>Next CD</quote> 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.</para></listitem>
|
|
</itemizedlist>
|
|
</sect1>
|
|
|
|
<sect1 id="install-encrypted">
|
|
<title>An encrypted system</title>
|
|
|
|
<para>With encryption, the disk holds one <command>cgd</command>
|
|
partition with the root file system, and a small unencrypted partition
|
|
that the boot loader can read: the kernel, <filename>cgdroot.kmod</filename>
|
|
and <filename>cgd.conf</filename>. The loader asks for the passphrase,
|
|
unlocks the disk and starts the kernel from the encrypted root.</para>
|
|
|
|
<para>The unencrypted partition is mounted as <filename>/cgdboot</filename>
|
|
(with <quote>noauto</quote> in <filename>/etc/fstab</filename>). A
|
|
kernel update on an encrypted system is not complete until the new
|
|
kernel and the matching <filename>cgdroot.kmod</filename> are copied to
|
|
it; <xref linkend="upgrade-encrypted"/> gives the commands.</para>
|
|
</sect1>
|
|
|
|
<sect1 id="install-first-boot">
|
|
<title>The first boot</title>
|
|
|
|
<para>The login screen is MCDE's <command>dtlogin</command>. Log in with
|
|
the account you created; the desktop starts with the front panel, the
|
|
bar at the top and the workspace controls. <xref linkend="mcde"/>
|
|
explains what you are looking at.</para>
|
|
|
|
<para>Open a terminal and check the machine:</para>
|
|
|
|
<screen>$ ifconfig -a
|
|
$ netstat -rn
|
|
$ date
|
|
$ ps -ax | grep -E 'dhcpcd|ntpd|dtlogin'</screen>
|
|
|
|
<para>If the network is not up, <command>dhcpcd</command> can be started
|
|
by hand; if the clock is wrong, <command>ntpd</command> needs a reachable
|
|
server. Both are services in <filename>/etc/rc.conf</filename>; see
|
|
<xref linkend="rc"/>.</para>
|
|
|
|
<para>Change the administrator's password and your own with
|
|
<citerefentry><refentrytitle>passwd</refentrytitle><manvolnum>1</manvolnum></citerefentry>.
|
|
The account is in the wheel group, so <command>su</command> works; use
|
|
it for administrative commands, as the rest of this guide does.</para>
|
|
</sect1>
|
|
|
|
<sect1 id="install-trouble">
|
|
<title>When the installation does not start</title>
|
|
|
|
<itemizedlist>
|
|
<listitem><para><emphasis>The firmware does not offer the stick.</emphasis>
|
|
Write the image again to a different stick and compare its checksum.
|
|
On a UEFI machine, disable <quote>Secure Boot</quote> for the
|
|
installation; on a Mac, the stick must be formatted by the image, not
|
|
copied as a file.</para></listitem>
|
|
<listitem><para><emphasis>The machine starts, then stops with a mount
|
|
or unpacking error.</emphasis> The medium is bad or the disk is
|
|
failing. Check the medium's checksum and try another disk.</para></listitem>
|
|
<listitem><para><emphasis>The installed machine does not start.</emphasis>
|
|
Start from the medium again and choose the shell, then inspect the
|
|
disk with <command>disklabel</command> and mount the root partition by
|
|
hand. The boot messages are on the console; <command>dmesg</command>
|
|
repeats them.</para></listitem>
|
|
</itemizedlist>
|
|
</sect1>
|
|
</chapter>
|