Skip to content

Instantly share code, notes, and snippets.

@c33s
Last active August 29, 2015 14:00
Show Gist options
  • Save c33s/11014329 to your computer and use it in GitHub Desktop.
Save c33s/11014329 to your computer and use it in GitHub Desktop.
vagrant - build box
#/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