Skip to content

Instantly share code, notes, and snippets.

@purplefish32
Created December 27, 2012 13:48
Show Gist options
  • Save purplefish32/4388495 to your computer and use it in GitHub Desktop.
Save purplefish32/4388495 to your computer and use it in GitHub Desktop.
Debian vagrant vanilla install
Vanilla install from Download small CD installer, follow instructions for base box.
Hostname: vagrant-[os-name], e.g. vagrant-debian-squeeze64
Domain: vagrantup.com
Root Password: vagrant
Main account login: vagrant
Main account password: vagrant
uncheck all software
Login in as vagrant.
su
apt-get install sudo
visudo
# add:
# Defaults env_keep="SSH_AUTH_SOCK"
# %admin ALL=(ALL) ALL
# %admin ALL=NOPASSWD: ALL
groupadd admin
usermod -a -G admin vagrant
shutdown -r now
sudo -i
apt-get autoremove virtualbox-ose-guest-dkms virtualbox-ose-guest-utils virtualbox-ose-guest-x11
apt-get install linux-headers-$(uname -r) build-essential
# uninstall if necessary
#/opt/[VboxAddonsFolder]/uninstall.sh
# install guest additions via UI
mount /dev/cdrom /media/cdrom
sh /media/cdrom/VBoxLinuxAdditions.run
shutdown -r now
sudo -i
apt-get install ruby rubygems puppet openssh-server openssh-client
echo 'UseDNS no' >> /etc/ssh/sshd_config
gem install --no-rdoc --no-ri chef
echo "deb http://apt.opscode.com/ squeeze-0.10 main" > /etc/apt/sources.list.d/opscode.list
apt-get install opscode-keyring
apt-get update
apt-get install chef
# enter "none" for url
exit
mkdir .ssh
wget --no-check-certificate -O .ssh/authorized_keys https://raw.github.com/mitchellh/vagrant/master/keys/vagrant.pub
chmod 700 .ssh
chmod 600 .ssh/authorized_keys
sudo apt-get clean
sudo shutdown -h now
Create base box
vagrant package --base aegir
mv package.box vagrant-debian-squeeze64.box
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment