Created
May 29, 2011 14:47
-
-
Save jatkins/3e37f34e6c8827d88b33 to your computer and use it in GitHub Desktop.
Script for setting up a new ADRIENNE server
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
#!/bin/bash | |
# Add non-free repos to apt so we can install java | |
sed -i -e 's/main/main non-free/' /etc/apt/sources.list | |
# Apt section | |
apt-get update | |
apt-get upgrade -y | |
apt-get install -y build-essential vim sun-java6-jre mysql-client curl libcurl3 | |
# Jruby | |
wget http://jacobatkins.com/ADRIENNE/jruby.tar.gz | |
tar -xzf jruby.tar.gz -C /opt/ | |
mv /opt/jruby* /opt/jruby | |
echo 'PATH="$PATH:/opt/jruby/bin"' >> /etc/profile | |
source /etc/profile | |
# Jruby gems | |
jruby -S gem update | |
jruby -S gem install sweetsie peach highline hirb activerecord-jdbcmysql-adapter |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment