Skip to content

Instantly share code, notes, and snippets.

@tuksik
Last active August 29, 2015 14:06
Show Gist options
  • Save tuksik/d452052873d88abed471 to your computer and use it in GitHub Desktop.
Save tuksik/d452052873d88abed471 to your computer and use it in GitHub Desktop.
Commands in new Vagrant box
#Keys
mkdir /home/vagrant/.ssh
chmod 700 /home/vagrant/.ssh
cd /home/vagrant/.ssh
wget --no-check-certificate 'https://raw.github.com/mitchellh/vagrant/master/keys/vagrant.pub' -O authorized_keys
chmod 600 /home/vagrant/.ssh/authorized_keys
chown -R vagrant /home/vagrant/.ssh
#Remove udev Rules
rm /etc/udev/rules.d/70-persistent-net.rules
mkdir /etc/udev/rules.d/70-persistent-net.rules
rm -rf /dev/.udev/
rm /lib/udev/rules.d/75-persistent-net-generator.rules
#Minimizing the Final Box Size
dd if=/dev/zero of=/EMPTY bs=1M
rm -f /EMPTY
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment