Last active
August 29, 2015 14:06
-
-
Save tuksik/d452052873d88abed471 to your computer and use it in GitHub Desktop.
Commands in new 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
#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