Monthly Archives: June 2015

Understanding logrotate utility

What is logrotate? It may surprise you to learn that logrotate is a program used to rotate logs. It’s true! The system usually runs logrotate once a day, and when it runs it checks rules that can be customized on a per-directory or per-log basis. “Log rotation” refers to the practice of archiving an application’s… Read More »

How To Set Up a Private Docker Registry on Ubuntu 14.04

Introduction Docker is a great tool for deploying your servers. While docker.io lets you upload your Docker creations to their registry for free, anything you upload is also public. This probably isn’t what you want for a non-open source-project. This guide will show you how to set up and secure your own private Docker registry.… Read More »

Generating SSH keys

SSH keys are a way to identify trusted computers, without involving passwords. The steps below will walk you through generating an SSH key and adding the public key to your GitHub account. We recommend that you regularly review your SSH keys list and revoke any that haven’t been used in a while. Step 1: Check… Read More »

Converting a Subversion repository to Git

  A complete guide to git-svn conversions Our goal is to do a complete conversion of our Subversion repository and end up with a bare Git repository acceptable for sharing with others (privately or publicly). Bare repositories are ones without a local working checkout of the files available for modifications. They are the recommended format… Read More »

How To Install the Munin Monitoring Tool on Ubuntu 14.04

Introduction Munin is a system, network, and infrastructure monitoring application that provides information in graphs through a web browser. It is designed around a client-server architecture and can be configured to monitor the machine it’s installed on (the Munin master) and any number of client machines, which in Munin parlance, are called Munin nodes. In… Read More »

How To Install And Configure Mod_deflate On Ubuntu 14.04

Introduction Mod_deflate is an Apache module which allows output from your web server to be compressed before being sent to the client. Once the size of your site content is compressed, its size is smaller, and clients are able to download it faster. This is valuable not only for clients with lower bandwidth, but it… Read More »

Getting AWS CLI working on EC2 Instances Launched with “IAM Roles”

Using IAM Role Policies, you must specify the Access Key ID, the Secret Access Key, and the Security token.  You can’t enter the token into the command line configuration.  So to make it work: 1.  Get the info you need from curl http://169.254.169.254/latest/meta-data/iam/security-credentials/Your_IAM_Role_Name 2.  Put them into $ export AWS_ACCESS_KEY_ID= $ export AWS_SECRET_ACCESS_KEY= $ export… Read More »

Mongodb Convert a Secondary to an Arbiter

Convert a Secondary to an Arbiter If you have a secondary in a replica set that no longer needs to hold data but that needs to remain in the set to ensure that the set can elect a primary, you may convert the secondary to an arbiter using either procedure in this tutorial. Both procedures… Read More »