Quick Review: Boxee Box
December 27, 2011 – 12:22 am | 3 Comments

Some of the technical issues with Boxee Box could have been fixed if the dev team was paying more attention to addressing the bugs rather than adding “features” of dubious value. In the final analysis, for the price and ease of use, Boxee Box is the best in its class and price range. You just need to be mindful of its limitations and buy it in hope of future improvements to its usability.

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.

Commands & Shells »

Compress Old Log Files on Linux
January 12, 2012 – 6:06 pm | No Comment

Compress Old Log Files on Linux

Most log files located in /var/log are part of the log rotation and will be compressed automatically. However, in many cases various user applications maintain log files outside of /var/log. These logs are not managed …

Read the full story »
Testing SSH Connectivity to Multiple Servers
December 27, 2011 – 2:46 am | No Comment
Testing SSH Connectivity to Multiple Servers

Imagine a hypothetical scenario: you support hundreds of remote servers and you need to check which server you can access via SSH and which servers are not letting you log in. Doing this manually is a tedious process that many sysadmins choose to skip. The inevitable outcome is inability to quickly access a system when it really counts.

Disable Usage Information Sharing on iPhone
December 19, 2011 – 1:23 am | No Comment
Disable Usage Information Sharing on iPhone

Carrier IQ is software installed on your iPhone by Apple at the request of the service providers. This system utility collect detailed usage and location data on your phone and sends it to the service providers. Supposedly, this was done to improve quality of service. In reality, however, if any such improvement actually occurred, it was only a side-effect.

Fun with Call Forwarding
October 31, 2011 – 10:20 pm | No Comment
Fun with Call Forwarding

Sometimes you don’t want people to reach you on your phone, but you don’t want to do something obvious, like turning the phone off. Because then they’ll just leave you a message and you will still be expected to call back. Below is a list of phone number in various US area codes that you can use to forward your unwanted calls.

Simple Host Monitoring with SSH
September 23, 2011 – 12:10 am | No Comment
Simple Host Monitoring with SSH

Sometimes you just need something very simple to monitor a server or an application on a temporary basis. A basic ping monitor is fine, but it will only tell you if a server is responding on the network. It will not tell you if there is some other problem on the system. The script below relies on passwordless SSH setup to periodically log into the monitored nodes and check on their health by executing a local or remote script.

Viewing “man” Pages in a Web Browser
September 16, 2011 – 12:43 am | No Comment
Viewing “man” Pages in a Web Browser

The Unix “man” pages are an indispensable tool even for the most experienced of sysadmins. Unfortunately, in a terminal window the text may be hard to read and getting a hard copy to take with you down to the datacenter will really test your Unix skills. The following quick script will convert the “man” page of your choice into formatted text and open it in the Web browser.

Autorebooting Servers on Low or High Load
September 14, 2011 – 5:03 pm | No Comment
Autorebooting Servers on Low or High Load

Recently I ran into a situation where I needed to reboot several HPC cluster compute nodes. A couple of systems were still running user jobs that I did not want to interrupt. I also didn’t want to sit around and watch those jobs, as there was not way of telling how long they could take to complete. The solution was to write a short script that looks something like this…

Changing Process CPU Affinity on Linux
September 13, 2011 – 4:58 pm | One Comment
Changing Process CPU Affinity on Linux

A common real-life scenario: on a multi-CPU system Oracle processed have taken over and the system has ground to a crawl. The average system load is in double-digits and even logging in takes several minutes. The possible root causes for the problem can range from inefficient SQL queries (the common problem) to insufficient system resources. But at this point you just need to make the system a bit more responsive, so you can start troubleshooting.

Red Hat: Changing Hostname and IP
August 31, 2011 – 1:47 pm | No Comment
Red Hat: Changing Hostname and IP

Changing hostname and IP is frequently required when a server is being moved from testing or development to production. The process is a fairly simple one, but steps must be performed in a certain order to avoid complications.

Using Expect with SSH and Su
August 29, 2011 – 10:47 am | No Comment
Using Expect with SSH and Su

We have discussed using expect with sudo in an SSH session. Another common way to run commands on remote servers as root is to use the su – root command, where sudo is not configured. The trick to automating su operations using expect is to launch the su command with the spawn ssh command.

Enable Foreign Keyboard on iPhone
August 16, 2011 – 1:38 pm | No Comment
Enable Foreign Keyboard on iPhone

This is a simple one, but people are always asking: how do I type in Russian, Swedish, Spanish, whatever on my iPhone? Go to Settings -> General -> International -> Keyboards -> Add New Keyboard -> select your language -> select Hardware Keyboard Layout (if applicable).

Moving Average with Excel and Shell Script
August 11, 2011 – 12:41 pm | No Comment
Moving Average with Excel and Shell Script

In this example we will show you how to calculate simple moving average using Excel and a shell script. As more data is added to the file, the shell script and the Excel formula will automatically use the specified number of the latest data points to calculate the moving average.

Configuring Passwordless SSH
July 23, 2011 – 11:02 am | One Comment
Configuring Passwordless SSH

Passwordless SSH works by pre-sharing public encryption keys. It is important to understand that setting up passwordless SSH opens your servers to certain security risks. A compromised user account on one server may allow the attacker to gain access to multiple systems on the network. Try to avoid using passwordless access for accounts with elevated privileges.

Automating SSH and Sudo with Expect
July 14, 2011 – 10:20 am | One Comment
Automating SSH and Sudo with Expect

Let’s imagine a hypothetical scenario: you have a list of a hundred Linux servers and you need to log into each one of them and remove a local user “roger” and his home directory. Doing this by hand will get tedious and, chances are, you will make a few typos and there will be some collateral damage.

OpenSUSE 11.4 Installation Overview
July 10, 2011 – 5:38 pm | No Comment
OpenSUSE 11.4 Installation Overview

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.

Run Background Tasks via SSH
June 16, 2011 – 12:58 am | One Comment
Run Background Tasks via SSH

The idea here is simple: you need to connect to hosts 1..100 and execute a command in the background. The trick is to make sure the command continues to run after the SSH session terminates. Simply adding the “&” at the end of the command is not the answer here.

CompTIA Fails It’s Own Linux+ Exam
June 4, 2011 – 3:52 am | No Comment
CompTIA Fails It’s Own Linux+ Exam

The CompTIA Linux+ is a certification program designed for people who’ve heard of Linux but can’t yet figure out what it is. Still, one would imagine that people running CompTIA’s Web site should be able to answer at least some of the sample exam questions posted on their site. At the end of the practice exam there is a link that says “Click here for the answers”. But if you click on that link, you will find none…

Shadowbox JS Plugin Breaks WordPress
June 2, 2011 – 12:24 am | One Comment
Shadowbox JS Plugin Breaks WordPress

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 | 2 Comments
Disabling WordPress X-FRAME-OPTIONS Support

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.

Password-less SSH and Autofs
May 15, 2011 – 4:04 am | No Comment
Password-less SSH and Autofs

Recently I’ve ran into an unusual problem with SSH on SLES 11 SP1. The system – a small HPC cluster – is configured to use NIS for authentication and automounter maps. Whenever a user logs in, the home directory is automounted from an external NAS. Each user has a ~/.ssh directory with the authorized_keys2 and known_hosts required for password-less SSH access among the cluster nodes.

Troubleshooting InfiniBand Connections
May 4, 2011 – 10:36 am | No Comment
Troubleshooting InfiniBand Connections

The following is a brief troubleshooting guide for an InfiniBand network found in common HPC Linux clusters. Running these commands requires OFED 1.5.2 or later package installed on your systems. Additionally, the “pdsh” (parallel shell) command is part of the HP CMU cluster management software (version 4.2.1 used in our example) installed on the head node.

Load-Testing HPC Linux Clusters with “stress”
April 28, 2011 – 8:43 pm | No Comment
Load-Testing HPC Linux Clusters with “stress”

The “stress” is a simple-to-use load generator for POSIX systems that I found very useful for stress-testing HPC clusters. The current version of the application is 1.0.4 and it was easy to compile and install. Stress can create configurable system load for CPU, memory, I/O, and disks. In the example below we ran “stress” on a SLES 11 HPC cluster with HP CMU 4.2 installed.

Installing Ganglia on RHEL
March 21, 2011 – 2:59 pm | No Comment
Installing Ganglia on RHEL

This is a quick follow-up to my earlier post about installing Ganglia from source on SLES. Here we will install Ganglia from precompiled RPMs on an RHEL server. The basic cluster setup for this example remains the same: two clusters: CLUSTER1 and CLUSTER2 with head nodes head_node1 and head_node2