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.

Photo Fun with iPhone 4S

December 19, 2011 – 3:16 am
apple_0003

As an avid amateur photographer I would like to have my dSLR with me at all times. And my collection of lenses. And filters. And tripods. But even if this was possible, I don’t really want to be, say, sitting at a bar, looking like I just returned from a Serengeti safari. My iPhone will have to suffice and I’ll just have to get more creative with the photos apps to fill in for the fancy equipment.

Disable Usage Information Sharing on iPhone

December 19, 2011 – 1:23 am
apple

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.

Writing a Linux Startup Script

December 16, 2011 – 2:11 am
linux_penguin_0003

As basic as the task of creating a startup script may sound, even experienced sysadmins sometimes run into problems with having services start at the right time during the boot process or stop during the shutdown. Two major reasons for this: the procedure is a bit convoluted due to linking. Also, writing startup scripts is not something you have to do very often these days.

Photo Noise Reduction Apps for iPhone

December 7, 2011 – 3:59 am
apple_0005

In digital cameras, image noise (grain) is most pronounced in photos taken in low-light conditions without a flash. For such situations, the camera sets high ISO (light sensitivity of the image sensor) and a long exposure. A number of apps are available for the iPhone to reduce the appearance of grain. None of these apps are particularly impressive, especially when compared to specialized PC software. There is a good reason for this: digital noise reduction is a very CPU-intensive process that also requires a large amount of memory.

iPhone 4S HDR Performance

November 8, 2011 – 5:31 pm
apple

HDR – High Dynamic Range – photography is a method of achieving a degree of visual detail in highlights and shadows beyond what the camera’s image sensor can record in a single exposure. The HDR processing usually involves combining two or more frames taken at different exposures. This is done on the computer or inside the camera itself. Human vision uses the HDR approach.

Fun with Call Forwarding

October 31, 2011 – 10:20 pm

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.

iPhone 4S: Photo Camera Performance

October 16, 2011 – 9:46 pm
apples

Here’s our quick-and-dirty test of the new iPhone 4S 8-megapixel camera with LED flash and autofocus. For comparison, we took some of the same photos using a Canon G10 14.7-megapixel compact camera with a 28-140mm wide zoom lens. All photos have been corrected in Photoshop by a professional photographer to produce the best possible result for each camera. iPhone 4S was used in HDR mode.

Simple Host Monitoring with SSH

September 23, 2011 – 12:10 am
shell

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
istock-18586699-monkey-computer

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
boot

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
cpu

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.

Adding LUNs to VXVM on Linux

September 6, 2011 – 2:03 pm
linux_penguin_0002

The following is a brief overview of the process for adding LUNs to VXVM under Linux. In our example we have an RHEL 5 server with existing LUNs and VXVM volume groups. Two new LUNs with multipathing were allocated from SAN and need to be added to the system to grow one of the volumes and the corresponding filesystem.

Testing RAM in Linux

September 2, 2011 – 11:42 am
ram memory dimms

A number of good and mostly free tools are available for testing RAM hardware. However, most of these applications are designed to operate in stand-alone mode that requires shutting down the OS. Still, tare a few ways to run memory integrity checks from inside the operating environment. Here we will look at using dd and memtester.

Red Hat: Changing Hostname and IP

August 31, 2011 – 1:47 pm
redhat1

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
shell

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
apple_0005

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
shell

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
Computer Password Security

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
colorful shells

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.

D-Link DNS-320 NAS Review

July 10, 2011 – 6:49 pm

In the past I reviewed the DNS-321 and the major complaint there was the device’s inability to utilize gigabit network capacity due to severe memory and CPU restrictions. While the DNS-321 was initially built as a 100-Mbit NAS and later converted to gigabit, the DNS-320 was built as a gigabit-capable storage device from the very beginning. It is still a very flimsy-looking plastic box filled with cheap components. If I am lucky, it may run for a year or two before the cooling fan fails or the power supply burns out.

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.