Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
vagrant box export hackage
# https://github.com/WNRI/route.is/wiki/Making-a-vagrant-box
# http://docs.vagrantup.com/v1/docs/base_boxes.html
# https://github.com/abramhindle/vagrant-ubuntu-precise-32
# update vbox additions
sudo sudo mount /dev/sr0 /mnt
sudo /mnt/VBoxLinuxAdditions.run
sudo rm -rf /usr/src/vboxguest*
sudo aptitude purge build-essential
# remove old kernels?
sudo aptitude purge linux-image-3.2.0-23-generic-pae
# remove grub timeout
sudo nano /etc/default/grub
sudo update-grub
sudo aptitude clean
rm -rf ~/.bash_history
history -c && sudo init 1
rm -r "$(gem env gemdir)"/doc/*
# from virtualbox console
rm -r /var/cache/*/*
mount -o remount,ro /dev/sda1
zerofree /dev/sda1
rm -rf .bash_history
history -c
shutdown -h now
# from mac
vagrant package
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.