Last active
August 29, 2015 14:19
-
-
Save jcarley/de2d857abe8095da21c7 to your computer and use it in GitHub Desktop.
VPS Packer Setup
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
#!/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