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

Synology NAS Hacks

February 22, 2022 – 1:58 pm
rhd3hj6zvnqeth7qo8em0alduj0[1]

I’ve been using various Synology NAS devices for many years now, and they’re great. Well, almost. There are a few rough spots that don’t thrill me. These consumer-grade devices are designed to be difficult to …

WordPress: Post-processing of the image failed

November 6, 2021 – 11:59 am
ytioq398kc1wnvvz95uixhcn5ii[1]

This particular WordPress issue appeared with version 5.3 and is refusing to go away. However, the problem here is not with WordPress but with the Apache ModSecurity. The particular ModSecurity rule in question is 200003 …

Convert XLSX to a MySQL Table

October 14, 2021 – 11:49 am
7auipjfjec4veay7sa4hrw32xzg[1]

Some people find it hard to let go of Excel even when the situation is ripe for a database. And so dozens of different versions of the same spreadsheet edited by many people are floating …

Processing Videos with ffmpeg and Lightroom

October 12, 2020 – 1:52 pm
DSCF5361[1]

On occasion I wondered how to apply advanced photo filters to my lackluster GoPro and drone videos. You know, not the basic exposure/contrast/saturation or the cheesy special effects you find in video editors, but something …

Searching Twitter

October 11, 2020 – 1:50 pm
Cat-Devouring-A-Bird-Pablo-Picasso[1]

Here are just a few hopefully useful tips for searching Twitter to get more relevant results and buy cheap twitter followers.

Bash Scripts and MySQL

October 10, 2020 – 1:49 pm
1fxshw1sngujguztkvexhxu0no9-2[1]

I frequently use MySQL to store data collected or processed by various shell scripts. The database comes in handy when massaging data with good old awk and sed gets too cumbersome.

Validating HTTPS Cache Peers for Squid

January 6, 2020 – 12:38 am
sy2zeb1vp2h8itlxfbbylw0jrm0[1]

I have a squid proxy server that uses a long list of authenticated cache peers in a round-robin configuration. The process looks something like this:

Updating PHP 5.6w to 7.1u on CentOS 6.10

December 30, 2019 – 9:53 pm
wvtchvkz4f4ua8we5yngswc1mkd[1]

This is mostly just a note to self. As I mentioned previously (probably more than once), I very much dislike systemd and will stick with CentOS 6 for as long as possible. Having said that, …

Windows 10 Upgrades

December 6, 2019 – 9:44 pm
img_0002[1]

I did the only sensible thing and disabled automatic updates on my two Windows 10 laptops. Microsoft’s belated foray into the world of CI/CD for releasing Windows patches suffers from limited automated testing.

Notes on ownCloud configuration

April 12, 2019 – 4:13 pm
Photo-2019-03-22-23-20-20_2454

The ownCloud file sharing application has been around for some time now, but somehow evaded my attention. My limited imagination makes me say “think of it us Dropbox hosted on the server in your basement”.

Removing Chef Server Installation

January 9, 2019 – 4:44 pm
House cleaning product on wood table

Just a quick note on how to completely remove (more or less) Chef server installation from a CentOS/RHEL box.

AWS CLI Cheat Sheet

August 14, 2018 – 4:18 pm
bb3styfdt6jd861cmp7yt08l1dy

The installation and configuration process for AWS CLI is fairly simple. The package itself is installed with pip (yum -y install python-pip):

Late Night Rant: Agile Apps

August 5, 2018 – 4:11 pm
fichiqo3edy9pba9ds1dj3utn1k

While we’re still in the middle of a pandemic, rules about going out have loosened up. But experts agree that the best way to protect yourself is to limit your interactions with other people. If …

The Mystery of a Hemisphere

July 31, 2018 – 4:00 pm
vadgh6y3ejhsjuz41ztqtajgm12

To make this long (and embarrassing) story short: a friend’s kid had a homework assignment in geometry to calculate the surface area of a conjoined cone, a cylinder, and a hemisphere.

Useful MySQL One-Liners

November 8, 2017 – 12:16 pm
DSC_6805 copy

I am by no means an expert SQL programmer. Having said that, I’ve been using MySQL for a very long time. This is a collection of simple but useful SQL queries and MySQL configuration options. …

SystemD: Back To The Future

May 23, 2017 – 8:38 pm
oiuwpoiiie

A creature in its death throes, Sun Microsystems gave birth to Solaris SMF – the product of a disturbing union between Unix System V and the Microsoft Windows Registry. Shortly thereafter the proud father died, …

Get a List of all ESX Hosts in a Datacenter

April 17, 2017 – 3:18 pm
storage barrels cluster hpc

Another simple one-liner to get a list of hostnames of all ESX servers in the vCenter. This can be useful for a number of things, specifically as input for other PowerCLI scripts.

Use PowerCLI to Change NIC Type

April 17, 2017 – 11:52 am
machine-gun-001

This is a quick PowerCLI script that reads from a list of VM names and for each VM with network adapter type “E1000” changes it to “Vmxnet3”. Nothing fancy, no reboot is needed. MAC should …

Sample Salt Proxy Configuration for vCenter/ESX

March 20, 2017 – 4:15 pm
Spoon_Salt_Sugar_Black_Pour_1920x1200

The Salt proxy agent is a relatively new feature of Salt allowing to control networked devices where salt-minion cannot be installed directly. The official Salt documentation on the subject is outdated and full of syntax errors. It’s actually …

Configure and Run esxcli on Red Hat

March 20, 2017 – 3:58 pm
redhat_rhel_linux_0001

The esxcli utility is used to interface with the vSphere and ESX hosts. It is a useful tool for getting to some basic VMWare functionality from Unix shell. It is also a pre-requisite for some of …

Samba Flexible Character Mapping

March 1, 2017 – 6:33 pm
logo-samba1

This is probably old news to most of you, but I just found out: Samba v 3.5+ has a new option for flexible mapping of filename characters. Unix filenames allow certain characters that Windows filename …

Managing VMs with PowerCLI

February 20, 2017 – 5:45 pm
storage barrels cluster hpc

Below is a collection of useful Power-CLI one-liners (or thereabouts) that can speed up your script-writing efforts. As everything Windows, things change often and for no obvious reason, so expect to see type is deprecated and …