Skip to content

Instantly share code, notes, and snippets.

@jcarley
Last active August 29, 2015 14:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jcarley/de2d857abe8095da21c7 to your computer and use it in GitHub Desktop.
Save jcarley/de2d857abe8095da21c7 to your computer and use it in GitHub Desktop.
VPS Packer Setup
#!/usr/bin/env bash
sudo apt-get update
sudo apt-get install -y dkms
wget -q http://download.virtualbox.org/virtualbox/debian/oracle_vbox.asc -O- | sudo apt-key add -
sudo sh -c 'echo "deb http://download.virtualbox.org/virtualbox/debian trusty contrib" >> /etc/apt/sources.list.d/virtualbox.list'
sudo apt-get update
sudo apt-get install -y virtualbox-4.3
wget https://dl.bintray.com/mitchellh/vagrant/vagrant_1.7.2_x86_64.deb
sudo dpkg -i vagrant*.deb
sudo apt-get -y install linux-headers-$(uname -r)
sudo dpkg-reconfigure virtualbox-dkms
cd ~ && rm vagrant*.deb
sudo apt-get install -y git
cd ~ && mkdir -p Projects && cd ~/Projects
git clone https://github.com/jcarley/ubuntu-vm.git
cd ~/Projects/ubuntu-vm/script
chmod +x packer.sh
./packer.sh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment