Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
vagrant box export hackage
# update vbox additions
sudo sudo mount /dev/sr0 /mnt
sudo /mnt/
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.