So I frequently find myself in a situation where I need to modify files on a fairly programmatic basis, so sed has become a friend of mine for a lot of these situations. So lets start with some basic sed… If I have a file.. And I want to replace…
Bash: Duplicate Logical Volume Configuration for a Volume Group
I recently ran into a situation where I needed to create a large number of Logical Volumes for a server replacement situation. I could have done some manual data input, but why not take the opportunity to quickly write a script to do the hard work for me? For my…
Securing SSH with Publicly Accessible Servers
Just about every IT environment has some sort of remotely managed environment which requires that they have SSH open to the Internet. Perhaps this is a VPS, dedicated server, or colocation. Regardless of your reason, the fact is that there is just some times where you need to have SSH…
Mass Extraction and Creation of Tarballs
I have been working on creating a bunch of debootstrap images lately, and I ended up doing a whole bunch of work creating tarballs and did it wrong. So I took the time to sort out an easy way to fix them all with two commands. The Core of My…
SSH Hop Through Multiple Hosts
I frequently need to ssh through multiple hosts to get to a destination. Frankly this is not really a problem, but there is a simpler way, and I like simpler. This is a really straight forward article, not a lot of explanation is really necessary. Sometimes I need to use…