How to Enable EPEL Repository for RHEL/CentOS

EPEL (Extra Packages for Enterprise Linux) is a Fedora Special Interest Group that creates, maintains and manages a high quality set of additional packages for Enterprise Linux, including but not limited to Red Hat Enterprise Linux (RHEL), CentOS and Scietific Linux (SL), Oracle Enterprise Linux(OEL).”
Fedora EPEL wiki page

Why use EPEL repository?

  • Easily install lots of open source packages via Yum
  • Maintained by Fedora

Enabling EPEL Repository in RHEL/Centos
Read More

Reliably copy files from a folder

A simple bash script that uses rsync to copy files from a folder. The advantage of this script is when you have a brief network timeout or connection issue, it will still resume until MAX_RESTARTS is exhausted.

Log viewer

A simple log viewer which will be used in conjuction with sudo command to allow users with limited priviledges to view/read log files.

Adding SWAP Memory in Linux

Linux divides its physical RAM (random access memory) into chucks of memory called pages. Swapping is the process whereby a page of memory is copied to the pre-configured space on the hard disk, called swap space, to free up that page of memory. The combined sizes of the physical memory and the swap space is the amount of virtual memory available.

The following is what you can do to add new swap space to your system:

To list swap partitions and swap files use:

more /proc/swaps

Follow the steps to configure swap space:

Read More

Building a LAMP system using Puppet

I have always been interested in sysadmin, however the thing that annoyed me was trying to remember the config file contents. Back in the day when I used to work for Boss Pacific Information Systems, I would find the idea of setting up servers very interesting. In the mean time, the tedious task of remembering which config file to change and what to change was a bit daunting.

Recently, I have been introduced to Puppet script which has been used in my work environment has proven its importance.

“Puppet manages your servers: you describe machine configurations in an easy-to-read declarative language, and Puppet will bring your systems into the desired state and keep them there.”

This tutorial will show you how to create a simple puppet script to build a LAMP system which is the base for any web system. The components required for a web system such as apache, mysql etc are all available as modules from Puppet Forge
Read More