AWK is a powerful tool, a language really, that every administrator needs to know. I recommend everyone read about awk and learn how to use it. It can really make your day when you need to do something, quick and dirty. You will definitely win some friends with your awk skills, but probably not too
Got an interesting report of an error on one of our servers. I was told crons for a user account on our server weren’t running. I tailed the cron log (/var/log/cron) and came to find these errors:
So lets say you have a text file called list.txt with entries like: What if you wanted to pick a random entry? The easiest solution is to use the ‘shuf’ tool, which is standard on CentOS as part of coreutils. The output would be a random line from our file!
Found yum broken on a legacy CentOS 5.x server while installing updates. The error was: root # yum update There was a problem importing one of the Python modules required to run yum. The error leading to this problem was: No module named cElementTree Please install a package which provides this module, or verify that
Updated February 22nd, 2015 I recently had a project that required data storage with deduplication, data integrity assurance, and hardware fault tolerance. Instead of going with a traditional hardware RAID solution I opted to test out ZFS. My configuration utilized a single 120GB SSD drive and four 1TB SATA drives. My solution was to run
I wrote this guide to show you how to do a proper KVM setup on your CentOS dedicated server. We will be using VNC and connecting to the dedicated server remotely from your workstation. I realize there are a lot of other guides for utilizing Kernel-based Virtual Machine (KVM) hardware virtualization. What sets this guide
So you may want to see who else is accessing the switch or router that you’re on. Sometimes this is because you get a write error when trying to save the running config. The error would be something like: This is because another user is utilizing the running config. It could even be a timed
Today we will show you how to install PHP 5.3.8 on a CentOS 5.6 server from source code. At the time of writing this article 5.8.3 is the newest stable release of PHP 5. First you will need to make sure you do not have PHP installed from your CentOS package manager. You can run:
We will be installing Pure-FTPd 1.0.32 on CentOS 5.6 in this tutorial. These are the latest versions at the time of writing this tutorial. Pure-FTPd offers a comprehensive FTP server solution that is easy to implement on CentOS. Let’s start: Now we will need to make a configuration for Pure-FTPd. We recommend using our configuration
The Exim MTA is used by many LAMP setups for mailing needs. cPanel, DirectAdmin and many other panels use it by default. This guide will contain useful Exim tools, configurations and general knowledge. General Commands Show mail queue volume (count): Show Exim IDs that are in the queue: Force a delivery of a specific message