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.

Home » Archive by Category

Articles in SysAdmin

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 …

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.

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

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.

Photo Fun with iPhone 4S
December 19, 2011 – 3:16 am | No Comment
Photo Fun with iPhone 4S

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 | 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.

Writing a Linux Startup Script
December 16, 2011 – 2:11 am | No Comment
Writing a Linux Startup Script

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 | No Comment
Photo Noise Reduction Apps for iPhone

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 | 2 Comments
iPhone 4S HDR Performance

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 | 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.

iPhone 4S: Photo Camera Performance
October 16, 2011 – 9:46 pm | 4 Comments
iPhone 4S: Photo Camera Performance

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 | 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.

Adding LUNs to VXVM on Linux
September 6, 2011 – 2:03 pm | One Comment
Adding LUNs to VXVM on Linux

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 | No Comment
Testing RAM in Linux

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 | 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.