Last active
October 13, 2015 01:48
-
-
Save tdeckers-cisco/4120406 to your computer and use it in GitHub Desktop.
Vagrant install - bash bootstrap
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 | |
# | |
# Invoke this bootstrap using: | |
# bash < <(curl -s -L https://raw.github.com/gist/4120406/bootstrap.sh) | |
# (this should be run as root) | |
# | |
# move to working dir. | |
cd /tmp | |
echo "Installing EPEL" | |
if [ ! -e /usr/local/src/epel-release-6-8.noarch.rpm ]; then | |
wget http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm | |
mv -n epel-release-6-8.noarch.rpm //usr/local/src | |
rpm -ivh /usr/local/src/epel-release-6-8.noarch.rpm | |
fi | |
echo "Installing VirtualBox" | |
yum -y install dkms # dependency | |
yum -y install SDL # dependency | |
# find RPM's here: https://www.virtualbox.org/wiki/Linux_Downloads | |
if [ ! -e /usr/local/src/VirtualBox-4.2-4.2.4_81684_el6-1.x86_64.rpm ]; then | |
wget http://download.virtualbox.org/virtualbox/4.2.4/VirtualBox-4.2-4.2.4_81684_el6-1.x86_64.rpm | |
mv -n VirtualBox-4.2-4.2.4_81684_el6-1.x86_64.rpm /usr/local/src | |
rpm -ivh /usr/local/src/VirtualBox-4.2-4.2.4_81684_el6-1.x86_64.rpm | |
fi | |
echo "Installing Vagrant" | |
# find RPM's here: http://downloads.vagrantup.com/ | |
if [ ! -e /usr/local/src/vagrant_1.0.5_x86_64.rpm ]; then | |
wget http://files.vagrantup.com/packages/be0bc66efc0c5919e92d8b79e973d9911f2a511f/vagrant_1.0.5_x86_64.rpm | |
mv -n vagrant_1.0.5_x86_64.rpm /usr/local/src | |
rpm -ivh /usr/local/src/vagrant_1.0.5_x86_64.rpm | |
echo 'export PATH=$PATH:/opt/vagrant/bin' >> /root/.bash_profile | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment