I want to install a minimal OpenBSD 6.5 (x86_64) server to run a Tor
relay. On Debian I would select ssh-server
and usually standard system utilities
in tasksel for a basic server install. What is the closest equivalent to such a configuration in OpenBSD?
The documentation is not clear about this merely stating: "New users are recommended to install all of them." As generally it is not advisable to install unneeded packages on a server, I am looking for a more specific 'best practices' recommendation for OpenBSD.
The available selections are: [with my questions/comments in square brackets]
General file sets
- bsd - The kernel (required) [do I need this, if I install bsd.mp?]
- bsd.mp - The multi-processor kernel [required for multi-core CPUs?]
- bsd.rd - The ramdisk kernel [required for upgrades?]
- baseXX.tgz - The base system (required)
- compXX.tgz - The compiler collection, headers and libraries [not needed on a server, right?]
- manXX.tgz - Manual pages [not needed, as they're available online]
- gameXX.tgz - Text-based games [definitely not needed ;-) ]
X11 related file sets
- xbaseXX.tgz - Base libraries and utilities for X11 (requires xshareXX.tgz)
- xshareXX.tgz - X11's man pages, locale settings and includes
- xfontXX.tgz - Fonts used by X11
- xservXX.tgz - X11's X servers (xservXX.tgz set is rarely needed)
My inclination would be to not install compilers or any of the X11 related packages on a server, but the FAQ mentions, that some (non-X11) applications require fonts and fontconfig, which would require xbase
, xshare
and xfont
file sets. Would many applications break, when not installing these? I doubt that a Tor relay would have any need for font manipulation.
What are the generally accepted best practices when setting up an OpenBSD server?