Our first steps in FreeBSD 11

When the server has booted into FreeBSD, we can remote to it from our regular computer using the command ssh username@server_ip. We will take a look at the necessary DNS settings later, but for now let’s connect directly to its address.

After logging in, let’s make sure we have the proper rights by entering su and passing our root credentials when the system asks for them. If we did it right, the prompt should switch from the usual $ to the much more fancy #.

Setting up the package manager and installing our first packages

Installing binary (pre-compiled) packages in FreeBSD is a breeze nowadays, with the pkg tool. Since this is a new installation of the system we can start using pkg immediately without bothering with legacy cruft.

We will be asked whether we wish to fetch and install the package management tool, and the answer is yes.

Next we’ll set up automatic fetching of updates. Add the following line to the bottom of /etc/crontab

We will still need to apply the updates, but at least we’ll be notified that updates are available.

OPTIONAL: I prefer vim to the built-in editors, so we’ll install that before we start editing a lot of config files.

Now we should be ready to prepare our server to go headless.