Skip to content

Instantly share code, notes, and snippets.

@jatkins
Created May 29, 2011 14:47
Show Gist options
  • Save jatkins/3e37f34e6c8827d88b33 to your computer and use it in GitHub Desktop.
Save jatkins/3e37f34e6c8827d88b33 to your computer and use it in GitHub Desktop.
Script for setting up a new ADRIENNE server
#!/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