Skip to content

Instantly share code, notes, and snippets.

@leppert
Created November 6, 2012 20:38
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 leppert/4027362 to your computer and use it in GitHub Desktop.
Save leppert/4027362 to your computer and use it in GitHub Desktop.
AWS Slanger Setup
#!/bin/bash
# Update all packages on the server
sudo yum -y update
# Set the timezone
sudo ln -sf /usr/share/zoneinfo/America/New_York \/etc/localtime
# Install Dev Tools
sudo yum -y groupinstall 'Development Tools'
###################################################
# Install Redis / https://gist.github.com/2776679 #
###################################################
# Download gist and run
wget https://raw.github.com/gist/2776679/e11cd22f41e6cab71fe621b1f5a1377ff3af01ab/install-redis.sh
chmod 777 install-redis.sh
./install-redis.sh
###################################################################################
# Install Ruby 1.9.3 / https://forums.aws.amazon.com/thread.jspa?messageID=389084 #
###################################################################################
sudo yum -y install ruby19 ruby19-devel sqlite-devel
###################
# Install Slanger #
###################
gem1.9 install --no-rdoc --no-ri bundler json slanger
##########
# Launch #
##########
redis-server &> /dev/null &
slanger --app_key $READING_SLANGER_KEY --secret $READING_SLANGER_SECRET
########################
# Additional Reference #
########################
# https://gist.github.com/2307692
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment