Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
curl follow redirects
set -e -v
# cd $HOME
cd /var/root
# enable passwordless sudo
echo 'vagrant ALL=(ALL) NOPASSWD: ALL' >> /etc/sudoers
# disable software updates
softwareupdate --schedule off
# disable spotlight indexer
mdutil -a -i off
# install ssh keys
mkdir -p .ssh
curl -L > .ssh/id_rsa
chmod 0600 .ssh/id_rsa
curl -L > .ssh/
cp .ssh/ .ssh/authorized_keys
cp -r .ssh /Users/vagrant/
chown -R vagrant /Users/vagrant/.ssh
# set network configuration
scutil --set HostName `uname -s`-`uname -r`-`uname -m`
# enable sshd
systemsetup -setremotelogin on
# disable auto login
defaults delete /Library/Preferences/ autoLoginUser || echo 0
# TODO: disable gui startup
# install Xcode command line tools
echo "Please install XCode command line tools now."
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.