Last active
August 29, 2015 14:00
-
-
Save c33s/11014329 to your computer and use it in GitHub Desktop.
vagrant - build 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 | |
# based upon https://mikegriffin.ie/blog/20130418-creating-a-debian-wheezy-base-box-for-vagrant/ | |
aptitude install ssh zerofree sudo | |
mkdir /home/vagrant/.ssh | |
cd /home/vagrant/.ssh/ | |
mv vagrant.pub authorized_keys | |
wget https://raw.github.com/mitchellh/vagrant/master/keys/vagrant.pub --no-check-certificate | |
mv vagrant.pub authorized_keys | |
chmod 700 /home/vagrant/.ssh | |
chown -R vagrant:vagrant /home/vagrant/.ssh | |
echo "vagrant ALL = NOPASSWD: ALL" > /etc/sudoers.d/vagrant | |
echo "alias l='ls -lsa'" > /etc/profile.d/ls.sh | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment