Featured »

March 2, 2022 – 2:00 pm

Books have been written on the subject of awk and sed. Here’s a small sample of commands I put together over the years that are useful for everyday system administration tasks. Most of these tasks …

Read the full story »
Networking

Unix and Linux network configuration. Multiple network interfaces. Bridged NICs. High-availability network configurations.

Applications

Reviews of latest Unix and Linux software. Helpful tips for application support admins. Automating application support.

Data

Disk partitioning, filesystems, directories, and files. Volume management, logical volumes, HA filesystems. Backups and disaster recovery.

Monitoring

Distributed server monitoring. Server performance and capacity planning. Monitoring applications, network status and user activity.

Commands & Shells

Cool Unix shell commands and options. Command-line tools and application. Things every Unix sysadmin needs to know.

Home » Archive by Category

Articles in Applications

WordPress Remove Extra Line Breaks

December 2, 2013 – 3:09 pm
wordpress

Frequently, imported posts or posts created by auto-blogging plugins will create unnecessary tabs, newlines, and line breaks. This has a negative impact on readability and aesthetics of your site. If you cannot address the problem …

MySQL mysqlhotcopy Script

December 2, 2013 – 1:30 pm
logo_mysql

Here’s a simple script to automate mysqlhotcopy runs from cron to backup multiple MySQL databases. The script loops through the list of databases and kicks off an instance of mysqlhotcopy in the background for each one. Really, …

VMware vCenter Converter Standalone Notes

October 9, 2013 – 11:28 am
Grapevinesnail_01

The vCenter Standalone Converter is a handy app you can run on your Windows or Linux PC to to P2V a remote server. As convenient as the Converter is, there are a few gotchas that …

Watch the Log

June 18, 2013 – 8:06 pm
hacker computer

In the past few days my Postfix server has been having occasional problems talking to the mail gateway. They problem would come and go. The Postfix server would timeout trying to connect to the gateway and keep …

Install Pflogsumm PostFix Log Summarizer

March 12, 2013 – 9:58 am
postfix_logo

Pflogsumm is yet another log analyzer/summarizer for Postfix. It is written in Perl and has been around for a while. Very simple to install, so I writing this post mostly as a note to myself. I added an example cron job with some “grep” syntax to cut the Pflogsumm report down to size by dropping some things I am usually not interested in.

Installing Sendmail Analyzer on RHEL/CentOS

March 11, 2013 – 11:35 pm
redhat1

The Sendmail Analyzer can be useful for visualizing your Sendmail/Postfix log. The commands below can be copy-pasted as root on default installations of RHEL and CentOS 5/6 with default Postfix and httpd. If your configuration …

Selecting CMS Software

February 21, 2013 – 11:45 pm
wp-newspaper

If you are looking for an open-source content management system, your choices are likely to boil down to these three: Joomla!, WordPress, and Drupal. Professional CMS developers tend to disregard WordPress as a purely blogging …

SEO for Unix Geeks

February 21, 2013 – 11:45 pm
Traffic light for bikes.

So, you are finally done with your new shiny Web site and looking for ecom site integration. Congratulations. There is one small problem: the only two visitors to the site are you and Googlebot. And …

Dealing with Blank Lines in WordPress functions.php

October 17, 2012 – 1:06 am
wordpress_0003

This is an annoying little problem plaguing many WordPress themes: blank lines in the themes’ functions.php cause various random issues. The most common manifestation of this condition is the failure to save the “image” custom field. Below are a few commands to apply a quick fix. Unfortunately, these steps would need to be repeated every time you upgrade your theme, until the developers catch on. To simplify this task, I arranged the commands into a little script that will create a backup of your original functions.php and make the necessary changes.

OpenSUSE 11.4 Installation Overview

July 10, 2011 – 5:38 pm
suse1

After enjoying taking apart Microsoft’s “cloud” Office 365 for the numerous shortcomings of its installation process, having to do the same for my favorite Linux distro – openSUSE – is rather upsetting. OpenSUSE installation routine went from nearly-flawless in 11.1 to mildly annoying in 11.3, arriving to moderately obnoxious in 11.4. What happened? Same as with Microsoft, poor installation workflow is to blame. One can always feel when desktop support people take over workflow tasks from server admins.

Microsoft Launches Office 365. Fails.

June 28, 2011 – 3:47 pm
fail

To much fanfare Microsoft launched its first “cloud” version of the Office – the Office 365. Silly name, I know, but I still decided to give it a shot. Call me an optimist, but sometimes I feel there is a chance Microsoft will come out with a product more useful than Xbox 360. For the sake of brevity, let me just say that Office 365 was not that product. I can’t really tell you how good or bad it is, because I never got past the convoluted installation procedure. My many years of experience as a sysadmin did not help.

Shadowbox JS Plugin Breaks WordPress

June 2, 2011 – 12:24 am

Just a quick alert: the latest version (v. 3.0.3.3) of the popular Shadowbox JS plugin for WordPress has a serious bug that exposes your WordPress installation to a major security risk. Incorrectly coded handling of the “player” tag causes all of your NexGEN Gallery images to be displayed on any page that also has single images embedded via WordPress “Add an Image” function.

Disabling WordPress X-FRAME-OPTIONS Support

May 30, 2011 – 3:37 pm

Staring with version 3.1.3, WordPress introduced X-FRAME-OPTIONS support for the admin and login pages. This is a simple defensive measure against sneaky characters trying to encapsulate your blog within their own Web sites using iframes. So this new security was a welcome addition to WP for most users. I was not one of those users.

Useful iPhone Apps

March 16, 2011 – 1:49 am
apple_0003

Useful iPhone apps? Really? Yeah, there are a few. These may not be the best-written apps, or the easiest to use, or the most aesthetically appealing, but they perform a function that benefits your bottom line. And what else can you want from computer software if not that? So let me get started in no particular order.

Fixing Your Crappy Cell Phone Photos

February 10, 2011 – 10:11 pm
photo002

Some of today’s cell phones feature camera resolution that rivals digital SLRs from two year ago. An 8-megapixel cell phone camera is no longer a novelty. Unfortunately, high resolution is the only good thing cell phone cameras have to offer and it does not translate into better pictures. If you compare photos taken with the most advanced cell phone camera to those taken with a $200 point-and-shoot digital camera, the cell phone invariably loses.

WordPress 3.0.4 – the Return of the Custom Field Bug

January 31, 2011 – 4:20 pm

After upgrading to the latest stable WordPress version 3.0.4 I ran into an old issue I haven’t see for almost two years. Clicking “Publish” or “Save Draft” when writing a new post seems to remove some custom fields. If you re-add the custom field and click “Update”, the entry stays. But it goes away again once you use the “Save Draft” or “Publish”.

Windows 7 Black Screen After Booting

October 5, 2010 – 4:07 am

I had to power-cycle my Windows 7 64-bit laptop. The bootup sequence looked normal and reached a point where I could see the black screen with the mouse cursor. After this stage my desktop would usually appears, but not this time. I could move the mouse and I could even establish a remote desktop connection to my laptop. But I could not log in. Every time it would reach the same point – the black screen with the mouse cursor – and it would stop.

WordPress 3.0 and 3.0.1 Upgrade Bug

August 23, 2010 – 4:01 pm
wordpress_0005

Ignoring my own advice to never install latest WordPress releases as soon as they come out, I upgraded my installation to WP 3.0 and shortly after to 3.0.1. Doing so broke a few things. Automatic plugin updates or installs seem to hang and so does automatic WordPress upgrade. Let me illustrate. According to this screenshot, I need to update one of the plugins.

How to Really Kill Computer Viruses

February 21, 2010 – 6:34 am

How do you know if your computer has a virus? Is it connected to the Internet? Then it has a virus. Many computer viruses and other malicious applications are very resilient and will actively resist any attempts to deactivate and remove them. Some viruses can even delete your antivirus application or prevent it from working properly. Many viruses cannot be effectively removed once they are loaded in memory and active.

Upgrading from Vista to Windows 7

January 27, 2010 – 10:45 pm

Recently I upgraded a client’s Vista computer (Toshiba Qosmio, 4Gb, Intel Core Duo P7350, 7200-RPM 200-Gb disk) from Vista Ultimate 64-bit to Windows 7 Ultimate 64-bit. Being a Unix sysadmin this is not something I usually do. How did the experience compare to upgrading HP-UX, Solaris or SLES? In a nutshell: I’d rather walk around all day in wet underwear than attempt to upgrade Vista ever again.

NetBackup Command Guide

December 27, 2009 – 7:17 pm
dlt tape backup

NetBackup is an enterprise-level distributed backup and recovery application. The environment consists of the master server, media server, storage library, networking hardware, and client agents. NetBackup supports a wide variety of Unix, Linux, VMS, and Windows systems. The original backup solution was developed by Control Data Corp., later acquired by Openvision, which gave the product its “NetBackup” name. NetBackup was then bought by Veritas and is currently owned and supported (poorly) by Symantec.

Copying Data: Are We There Yet?

December 27, 2009 – 7:12 pm

I am sure this will sound familiar: you are copying a large amount of data – either locally or over the network – and you are wondering how long it will take and if there is a way to make things go faster.You may be surprised, but it does matter what type of files you are copying: 1Gb-worth of many small files will take considerably longer to copy than two 500Mb files. The hardware you are using is an important consideration, but it’s not the only factor limiting data transfer speed.