Quick Start

Enabling DHCP / Automatic IP assignment

Most of the time, DHCP is used to configure IP addresses automatically, to enable:

# ln -s /etc/sv/udhcpc /var/service/

Resizing the root filesystem

The base image small, and when writing to any disk, you will need to resize the root filesystem to make full use of it:

Use fdsik to delete the 3rd partition, then re-create it at the same start point, be careful to preserve the filesystem signatures. After:

# partprobe
# ln -s /dev/vda3 /dev/root
# xfs_growfs /dev/vda3

Enabling a firewall

# ln -s /etc/sv/firewall /var/service

Configuration file is /etc/firewall.conf the service will not auto reload. Use either nft -f /etc/firewall.conf or sv restart firewall to load your changes.

Example configs provided by upstream can be found in /usr/share/nftables

Enable OpenSSH / sshd

# ln -s /etc/sv/sshd /var/service/

The service will copy the example config to /etc/ssh/sshd_config before startup if it does not exist.

It's strongly recommended that you change at a minimum:

PermitRootLogin no
PasswordAuthentication no

And then use SSH keys exclusively.

Changing root password

Like any other distro:

# passwd

It's of note that the hash is stored in /etc/passwd, not /etc/shadow and there's no PAM on the system.

Regular users are not able to call su, they must be part of wheel by default so risk of exposed root password is partially mitigated.

Enabling the min2 public package repository

# echo PKG_REPO=https://min2.riedstra.dev/repo/x86_64 >> /etc/pkg.conf

From there you can list available packages:

# pkg available

As well as install new ones, for instance:

# pkg install fastfetch