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 Data

The Future of Spaghetti Code

August 18, 2018 – 4:20 pm
1e20vsjj1f8fdkoabte0pgza4sb

In his new book “The Future of Work: Robotics, AI, and Automation”1, Darrell West of the Brookings Institution makes some very extravagant predictions. Here’s a short but entirely sufficient summary from the book’s presentation by …

Document Conversion with Unoconv

August 4, 2018 – 4:08 pm
ygtzk148sim2j4mgau6mkc2uur7

The other day I ran into the “Flexible Import/Export” article by Bruce Byfield in the March 2018 issue of Linux Pro Magazine and thought it could use some more detail. So here’s some more detail.

Obfuscating Shell Scripts

August 1, 2018 – 4:04 pm
dd1gh0yb7yzbkvf8cyjpd4j2adq

Unix shell scripting language is run by the command-line interpreter and, as such, can be read and understood by anyone with sufficient access and experience. Sometimes this is not a good thing. Sometimes you want …

Raspbian ‘partitions on different devices’ Error

July 30, 2018 – 3:59 pm
oiuwoiuoiunoiune

After downloading a Raspbian image and writing it to an SD card, you get the following error when trying to boot the Pi: “Could not expand filesystem, please try raspi-config or rc_gui. Boot and root …

Encrypted Volumes and Portable Apps

February 25, 2018 – 3:08 pm
vault safe

This is a description of an uncomplicated setup for an encrypted volume and portable applications for a Windows laptop consisting of a USB3 storage device, VeraCrypt OSS OTFE, a hardware password wallet, and portableapps.com software.

Detect SSL Certificate Injection

February 21, 2018 – 3:05 pm
spy

When the SSL Digital Certificate is intercepted and replaced by a device between your browser and the Web site, we call it certificate injection. This method is more commonly used not by hackers, but by …

Find Large Files

February 17, 2018 – 3:21 pm
elephant

Every time a filesystem is running out of space and I need to find something to delete, I end up googling the syntax for the find command to make sure it stays off NFS and …

SSL For Self-Hosted WordPress

February 17, 2018 – 3:05 pm
encryption

Just some notes for setting up SSL with your self-hosted WordPress hosting installation. Just got around to doing this the other day. Yeah, I know, about time…

Show Logged In Users During a Time Window

February 17, 2018 – 2:59 pm
clock

Let’s say you want to see who was logged in on the server during last weekend. This includes users who, say, logged in on Thursday and haven’t logged out until Saturday afternoon.

Install and Configure Etckeeper

June 23, 2017 – 8:05 am
shell_0006

Etckeeper is a handy tool that uses git to keep track of changes to anything in /etc (or any other folder you choose). It’s very simple to use and can help you quickly identify and undo stupid …

Migrating Filesystems with Active Processes

May 2, 2017 – 1:47 pm
poiwiioiw

I’ve run into an interesting challenge: I needed to migrate application data from a local filesystem to NFS without stopping the processes running in the original mountpoint. Here’s a basic overview of the process. This …

Rsync Time Backup

December 22, 2016 – 3:46 pm
dlt tape backup

This is a simple wrapper for the awesome rsync-time-backup script by Laurent Cozic. Through clever use of hard links rsync-time-backup greatly speeds up incremental backups and saves disk space.

Agedu – Finding Old Files

November 7, 2016 – 3:35 pm
filing cabinet files

I almost never delete anything (not on purpose anyway). Having said that, sometimes I do need to find old data on a server and offload it to a NAS. Agedu has been around for ages. …

Check Filesystem Mount Status

August 20, 2016 – 1:44 pm
hard_disk_drive_hdd_0002

Sometimes you just need to do a quick sanity check on the filesystem mount status to make sure everything in fstab is mounted and everything’s that mounted is in the fstab. If, like myself, you’re a fan …

Filesystem Synchronization with Freehold

July 8, 2016 – 2:43 am
picard-facepalm-text-569

Whenever an application description begins with phrases like “runs on anything” and “is easy to setup”, attribute such bravado to the author’s lack of experience outside his development sandbox. Freehold comes as a tarball for “any Linux” …

Osync and DiffTree

July 8, 2016 – 1:49 am
filing cabinet files

Think of osync as a kind of rsync that is more suited for making backups. While rsync certainly has more options, osync takes a lot of the complexity out of writing a backup script with a few options that are …

Increasing Entropy Pool in Linux

June 28, 2016 – 9:48 pm
security_003

The pool of random numbers in Linux is derived primarily from user interaction (keystrokes and mouse movement). A server does not have such a source and the random pool may start running low, especially during …

Decrypting Mac Disk

May 20, 2016 – 11:41 am
apple001

It is generally a good idea to use full-disk encryption, especially on a laptop. However, this becomes bothersome if you are trying to re-partition your disk, say, to make the system dual-boot. Here’s a quick …

Monitoring NetBackup Daemons

April 27, 2016 – 9:25 pm
tape dlt backup

Here’s an example of a script you can use to monitor NetBackup server daemons in a Linux environment. The main difficulty with keeping track of these services is that there are so many of them. …

Using JTR to Crack Office Documents

April 22, 2016 – 5:35 pm
Computer Password Security

John the Ripper is a free multi-platform password-cracking software. This article is not intended to be a comprehensive guide to jtr, rather a quick how-to. Starting with version 1.7.9, jumbo patch 6, jtr supports password …

Deleting Lots of Files Quickly

November 17, 2015 – 9:03 am
machine-gun-001

I am not talking about hundreds or thousands of files. I am talking about hundreds of thousands. The usual “/bin/rm -rf *” may work, but will take a while. Or it may fail with the …

Securing VSFTP with TCP Wrappers and IPTables

November 11, 2015 – 1:44 am
computer_security_0001

I’ve been drinking beer and perhaps had one too many. Regardless of the reason, I felt the urge to further secure my favorite server. The target of my paranoia is once again the VSFTPd. I …