Exploring 'htop explained' locally

I greatly enjoyed htop explained – it helped me explore Linux internals safely.  In the post the author explored htop by spinning up a virtual machine in Digital Ocean – here are some quick instructions to getting your own Ubuntu 16.04 playground locally.

install vagrant [1] [2]
install vbox

vagrant box add ubuntu/xenial64
mkdir ~/htopfun 
cd ~/htopfun
vagrant init
# edit Vagrantfile - set `config.vm.box = "ubuntu/xenial64"`
vagrant up
vagrant ssh

# within the virtual machine
sudo apt install htop

# when done, outside of the virtual machine
vagrant suspend
# alternatively teardown