OpenVPN in a VPS instance

A few days ago, I saw a small job request for a script that would start OpenVPN on a GCP instance and connect to an external VPN service. The requester mentioned being able to SSH to the host and running a script on the host. The last part got me thinking about about how routing for OpenVPN might make less straightforward than it seems. It was. It seemed like a fun technical challenge so I took a crack at it. [Read More]

tmux just saved my bacon

As an administrator of systems, I live in the console, or the command-line, or as I call it “the shell”. Many moons ago, I would open many connections in tabs between my workstation and a host. This allowed me to run many commands in parallel. Over time, I learn about SSH multiplexing which is some serious nerdy hotness. That, in a nutshell, had all of those session running on one SSH connection. [Read More]

Which command do I use the most?

After waking to a ringing phone, I was attempting to fall back asleep. As I drifted, I wondered which command I used the most? I thought it a neat exercise, so I found out. As I type this, I suspect it is ls. Which is second and third should be interesting. I gathered up .zsh_history and .bash_history files from 5 different machines I work on a fair bit and put them in a pile, erm, directory. [Read More]

VMs in my home lab

TL;DR: Read the scripts here. There is a simple “if; this; then; that” at the bottom. It’s often I see some new bit of software I’d like to deploy in my home lab to test against my infrastructure. I’m not super keen on loading it on a machine I use for some other function, especially if I end up tossing the software. With this in mind, I started using Linux’s Kernel Virtual Machines (KVM) and Quick Emulator (Qmeu) to test things out. [Read More]

Key/Value Pair in BASH!?

A few nights ago, I was watching some television, drinking a beer, and skimming some articles on managing one’s unix config files with Git. Most of the articles phone it in. They would get to creating a directory with your config files and symlinking them. Creating those manually!? Ain’t nobody got time for that! My beer buzzing brain figured I should roll up my sleeves and write a little something to manage that. [Read More]

xsel and you

As a technology worker, I live in web-based ticketing systems. As such, you generally get some data, such as a command or list of hosts, you need to work with in a shell. For may years my work flow was: highlight whatever it is in the ticket Crtl-C switch over to my terminal open a txt file Shft-Ctrl-V save file parse file. This is where xsel shines. xsel is a wonderful tool for storing and retrieving data on the command line. [Read More]