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
Kevin Risden 11:53 on 2017/01/03 Permalink |
“vagrant init” can take a box name and automatically setup the Vagrantfile for you. When “vagrant up” is run, if the box doesn’t exist locally it will download it for you. This looks something like:
mkdir ~/htopfun
cd ~/htopfun
vagrant init ubuntu/xenial64
vagrant up
…
@alexlo03 12:03 on 2017/01/03 Permalink |
Thanks Kevin! My first time using vagrant outside of old docker setups.