January 14, 2018 tim

In this short tutorial we will cover how to export a list of all packages and their dependences that have been install via pkgng. This is useful if you need to rebuild a system from scratch or setup a new FreeBSD server that requires the same packages as an existing system. This is how we do it. On existing system run pkg prime-list > requirements.txt make a copy of requirements.txt  so you will have it in a time of need, or if you are just building an identical system copy it to the system using scp like so scp requirements.txt…

February 21, 2017 tim

Let’s Encrypt is a free, automated, and open certificate authority (CA), run for the public’s benefit. It is a service provided by the Internet Security Research Group (ISRG). More details can be found here https://letsencrypt.org/how-it-works/ This tutorial assumes you already have an existing website hosted with FreeBSD and an nginx reverse proxy. If you are using apache read this https://www.debarbora.com/Let’s-encrypt-SSL-Certificate-with-FreeBSD-&-Apache We start by installing https://certbot.eff.org/ # pkg install -y py27-certbot Request and download an SSL certificate by running the following command. temporarily stop nginx # service nginx stop # certbot certonly Select option 2) spin up a temporary webserver (standalone)…

February 20, 2017 tim

Let’s Encrypt is a free, automated, and open certificate authority (CA), run for the public’s benefit. It is a service provided by the Internet Security Research Group (ISRG). More details can be found here https://letsencrypt.org/how-it-works/ This tutorial assumes you already have an existing website hosted with FreeBSD and apache24. I will be posting another tutorial on using Let’s encrypt for nginx shortly. We start by installing https://certbot.eff.org/ # pkg install -y py27-certbot Request and download an SSL certificate by running the following command # certbot certonly Select option 1) Place files in webroot directory (webroot) and answer the remaining questions. our…

December 20, 2016 tim

In this tutorial we will cover how to mount an NFS share on FreeBSD 11. We will only be covering the client side of things in this post, for more information on how to setup a robust NFS server, check out http://www.freenas.org/ Configure the system start up with NFS client parameters. # nano /etc/rc.conf add this nfs_client_enable=”YES” nfs_client_flags=”-n 4″ rpc_lockd_enable=”YES” rpc_statd_enable=”YES” create a folder to mount the share # mkdir /mnt/nas02 Now we can map our NFS share like so # mount_nfs SERVER_IP:/path/on/nas /mnt/nas02 NFS shares can be automatically mounted # nano /etc/fstab add this SERVER_IP:/path/on/nas /mnt/nas02 nfs rw 0…

December 19, 2016 tim

All production servers need monitoring with email alerts so you know when the server is having trouble or is under heavy load. In the IT solution industry there is no shortage of monitoring and management tools out in the wild. Monit is a small Open Source utility for managing and monitoring Unix systems. Monit conducts automatic maintenance, repair, and can execute meaningful causal actions in error situations. This tutorial will cover locally installing, configuring, and testing monit. This setup requires that your FreeBSD system is able to send emails http://debarbora.com/FreeBSD-10.1-setup-ssmtp-For-Outgoing-Mail Install Monit # pkg install -y monit Set monit to…