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 »
This is a simple but annoying and persistent problem: text files edited on Windows and the uploaded to Unix acquire the “^M” character at the end of each line. In my experience, this little problem …
Just some quick notes on installing Observium agent on Raspberry Pi running Pidora. Pretty much the same process applies to any Fedora-like flavor.
When “once in a while” answer is insufficient and you need to know exactly how often a particular event occurs on the system, there are a few easy things you can try from command line.
Mysqlcheck is a stand-alone MySQL utility for checking, optimizing and repairing tables. It’s a useful tool that allows automating the usually time-consuming database maintenance tasks. One of the advantages of mysqlcheck it is ability to run …
When you’ve ls’d, grepped, catted, piped and tailed everything on your computer and there is absolutely nothing left to do, there’s always this…
There is no excerpt because this is a protected post.
Sometimes after a couple of beers I start feeling paranoid. I make sure the door is locked and check my firewall logs. Here’s a very basic script to monitor your server’s login record and notify you about …
IMDB is one of the most complete movie and television databases on the Internet. It offers an advanced Web search UI, but Unix CLI support has been discontinued years ago and the old scripts no …
The /var/log/secure contains a record of authentication and authorization activity on the system. It can be an invaluable resource for the purposes of intrusion detection and prevention. Below are a few simple examples that show how …
Here are just some random notes on installing and configuring salt-master and salt-minion services. I figured I better write this down before I forget. Most of this is covered in official documentation, but in a very nonchalant …
As of recently, python26-distribute has been removed from EPEL5 due to lack of support and attempting to install salt-minion on RHEL5 will throw a dependency error. If you are still running RHEL5, you would need …
SaltStack has decent documentation (at least compared to Puppet), but it’s a bit lacking on examples. There’s plenty of simple stuff that is useful if you’re managing a handful of nodes. However, why would you …
No sooner than I stopped complaining about HP’s “holy” Web site, I ran into a similar issue with Red Hat’s site. And that doesn’t happen very often. Unlike HP, Red Hat folks tend to take better …
I’ve already mentioned my dislike for the epic mess of broken links HP gingerly called its Web site. Nearly a year-and-a-half later the situation did not improve. Actually, it might have gotten worse.
Here’s a useful one-liner (sort of) that will show you memory utilization details by user ID on Linux (RHEL, Fedora, CentOS) systems. This may come in handy when trying to figure out who is eating …
Today was the day the North Koreans would have learned they had the Internet and the Americans DDOSed it. Unfortunately, they had no Internet, poor bastards. But, as long as this keeps us entertained… Hey, …
Sony execs are shedding crocodile tears over the latest IT security breach that brought substantial financial losses to the company. Let’s not dwell on the trivial: who did it and why are irrelevant technicalities. How …
The Yellowdog Updater, Modified has more features than most of us will ever need. Below are some hopefully useful examples that will help keep your system maybe secure by replacing old known bugs with new …
If you ever wanted to configure SSL/TLS encryption for an FTP server behind a firewall, the “Google wisdom” ranges from “a major pain” to “can’t be done”. Fortunately, things are not all that bad. In …
Pflogsumm is an oldie but a goodie. It’s a Perl script that sifts through your Postfix server maillog and provides you with a neat summary of events and some statistics. This information can be useful …
The Logstalgia is a cool graphical utility for visualizing the Apache access_log files. The practical value of Logstalgia is debatable, but it’s entertainment value is not in question. The managers and NOC operators can stare …
Sometimes it’s just better to attach a file to your email than to “cat” the contents into the email body. Later versions of mailx support the “-a” option for handling attachments. With the older mailx …
Latest Comments