Created
February 25, 2013 15:29
-
-
Save andyfowler/5030607 to your computer and use it in GitHub Desktop.
vagrant box export hackage
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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