Last active
October 5, 2015 01:13
-
-
Save gasserk/59630f8698cf7f5984ae to your computer and use it in GitHub Desktop.
Compact Vagrant box
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
#!/bin/bash | |
# | |
# Make a Linux-based VM Box as Small as Possible | |
apt-get clean | |
su -c "cat /dev/null > ~/.bash_history && history -c" - vagrant | |
cat /dev/null > ~/.bash_history && history -c | |
dd if=/dev/zero of=/EMPTY bs=1M | |
rm -f /EMPTY | |
su -c "cat /dev/null > ~/.bash_history && history -c" - vagrant | |
cat /dev/null > ~/.bash_history && history -c | |
#also clean temp? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment