Converting Port Management from Ports to Pkg

Convert Ports Management from Ports to Packages on FreeBSD

The FreeBSD Ports system is very effective but costly in time to upgrade applications especially if managing a large number of servers.  With the advent of FreeBSD’s new package system – pkg and Poudriere, package management can be customized similarly to ports with the ease of upgrading via pkg.  This post demonstrates the steps require to convert a machine from utilizing ports to pkg.  If Poudriere is not desired, this guide is still applicable minus the Poudriere setups.

Continue reading “Converting Port Management from Ports to Pkg”

How to Recover from “Recovering vi editor sessions”

Recently, a ssh session terminated while editing a text file.  Unfortunately, tmux was not utilized and the session ended abruptly.  Not giving it much thought, the server was rebooted and during the dmesg output, the following message was produced: “recovering vi editor session”.

After searching the internet, I discovered vi saves its session by default in “/var/tmp/vi.recover”.  Since the saved sessions were not need, the contents of the directory were deleted and the resulting error message on boot up disappeared as well.

Manually adjust date and time in FreeBSD

Just the other day, the following message appeared on my FreeBSD 10 virtual machine when first booted up:

root@bsd:~ # sMay  5 07:47:24 bsd ntpd[743]: time correction of 18001 seconds exceeds sanity limit (1000); set clock manually to the correct UTC time. Continue reading “Manually adjust date and time in FreeBSD”

To src or not to src, docs and ports are the question!

Just as in Shakespeare’s Hamlet, “To be or not to be, that is the question – Whether ’tis Nobler in the mind to suffer, do you suffer whether or not to include src, docs, and ports when performing a fresh install of FreeBSD 10? Continue reading “To src or not to src, docs and ports are the question!”

Manually Create Partitions on FreeBSD

When installing FreeBSD there are several items to configure manually during the install process.  One of the first items to manually configure is the disk partition layout in FreeBSD.  Since this configurations will be utilized on production servers, the partition scheme is laid out in a specific fashion. Continue reading “Manually Create Partitions on FreeBSD”