Skip to content

Instantly share code, notes, and snippets.

@bacongobbler
Created September 26, 2013 18:13
Show Gist options
  • Save bacongobbler/6718244 to your computer and use it in GitHub Desktop.
Save bacongobbler/6718244 to your computer and use it in GitHub Desktop.
#!/bin/bash
#
# This script installs all dependencies needed on a Ubuntu 12.04 x64
# computer for developing custom services on Stackato. Run this
# script as root (either logged in as root, or with sudo).
#
PACKAGES="virtualbox virtualbox-dkms virtualbox-qt curl vim git wget"
apt-get install -y $PACKAGES
# install sublime text
curl https://gist.github.com/bacongobbler/5747364/raw/75474b51394497f14c31ab613852391bddd016c9/sublime_text.sh | sh
# Install RVM
\curl -L https://get.rvm.io | bash -s stable --ruby=1.9.3
# Download Stackato v2.10.6 server and client
wget http://downloads.activestate.com/stackato/vm/v2.10.6/stackato-vm-vbox-v2.10.6.zip
wget http://downloads.activestate.com/stackato/client/v1.7.4/stackato-1.7.4-linux-glibc2.3-x86_64.zip
# unzip the archives then delete
unzip stackato-vm-vbox-v2.10.6.zip && rm stackato-vm-vbox-v2.10.6.zip
unzip stackato-1.7.4-linux-glibc2.3-x86_64.zip && rm stackato-1.7.4-linux-glibc2.3-x86_64.zip
###################
# Stackato Client #
###################
# move the Stackato client somewhere reasonable, like /usr/bin
sudo mv stackato-1.7.4-linux-glibc2.3-x86_64/stackato /usr/bin/
# create a symbolic link to the Stackato client for ease of use
ln -s /usr/bin/stackato /usr/bin/st
###################
# Stackato Server #
###################
# Import the Stackato Server into virtualbox
VBoxManage import Stackato-VM/Stackato-880-v2.10.6.ovf
# Set the network interface to bridged
VBoxManage modifyvm "Stackato-880-v2.10.6" --nic1 bridged
#######################################################################################
# It's time for the ten second tidy! http://www.youtube.com/watch?v=cJa7P6dfmco&t=15s #
#######################################################################################
rm -rf stackato-vm-vbox-v2.10.6
rm -rf stackato-1.7.4-linux-glibc2.3-x86_64
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment