Side Note
This section is for keeping side note which is not related to Docker.
How can I update vagrant box?
When the original vagrant box is outdated, I want to update the box. But there isn't the command to overwrite a box which you downloaded from ATLAS. So here's step-by-step how to do.
First of all, if you don't have vagrant-vbguest install, install it.
vagrant plugin install vagrant-vbguest
Make your install and login in to it.
vagrant up centos7
vagrant ssh centos7
sudo yum -y update
sudo yum clean all
Reload the install to make sure VirtualBox Guest Additions installed.
vagrant reload centos7
vagrant ssh centos7
sudo yum clean all
wget https://raw.githubusercontent.com/mitchellh/vagrant/master/keys/vagrant.pub -N -O .ssh/authorized_keys
history -c && history -w
Check the full name of the box, and save it.
VBoxManage list vms
vagrant package --base <full name of box> --output /tmp/centos7updated.box
vagrant box remove bento/centos-7.2
vagrant box add bento/centos-7.2 /tmp/centos7updated.box
How can I create a pdf by gitbook?
Install Calibre, and set the path to calibre command line tool with this:
export PATH=$PATH:/Applications/calibre.app/Contents/MacOS
If you set the path as default, then add the line on ~/.bash_profile
.
Then, here's the command that creates pdf file:
gitbook pdf .
Now there should be a pdf file called book.pdf
.