tmux Introduction, Configuration, and Boot-Time Setup


This article outlines how to get started with tmux (v2.1), and if needed how to do some custom configuration and boot-time automated setup.

Why I Needed tmux

I’ve had a headless Linux server for about four years. It’s configured so that I can connect to it from my laptop via VNC (gui) or SSH (cli). With Xfce running, VNC is a pretty nice way to work with the server when I’m at home on my laptop and I’m doing mostly GUI stuff. Whenever I disconnect my laptop, the server stays intact ready for my next connection. However, when I’m on my iPhone, at work, or even doing text-heavy command line stuff from home, the VNC setup is sub-optimal compared to a local terminal on my laptop. SSH allows me to connect using a terminal application on my laptop, but for any sort of non-linear workflows it quickly becomes a tedious mess of multiple connections that need to be setup on a per-use basis. If only there was a way to merge the two. tmux!

This article documents my weekend journey to increased happiness with the introduction of tmux into my life. Continue reading →

1 Comment

Colorfully Manage Btrfs Snapshots


Subvolumes and copy-on-write snapshots are some of the nice features of Btrfs, but not something you really want to manage manually. It’s easy enough to cron snapshots, but you might want a non-linear retention policy, and you might want some insights from time-to-time regards what you’re retaining. I wrote a quick script to: 1) be cron-able, 2) be verbose if run manually, 3) be colorful to help readability.
Continue reading →


Switch to Btrfs from Hardware RAID


I recently successfully completed a migration of ~4 TB of data from one multi-disk hardware RAID array to a new software array. This article summarizes how I did it with the help of Btrfs. Storage growth was may primary goal. In short, I went from a 4x 3TB disk Dell PERC H310 hardware RAID 10 array with ~6TB storage capacity, to a 6x 3TB disk btrfs v4.1 software RAID 6 array with ~12 TB storage capacity. Both arrays have file systems sitting on top of LUKS for encryption.
Continue reading →