Created
December 30, 2010 09:38
-
-
Save pbosetti/759630 to your computer and use it in GitHub Desktop.
Prepare VoDiSys system
This file contains hidden or 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 | |
#echo "Adding universe repository" | |
#if ! apt-add-repository "deb http://archive.ubuntu.com/ubuntu lucid universe"; #then | |
# echo "Could not add source list" | |
# exit $? | |
#fi | |
echo "Updating package list" | |
if ! apt-get update; then | |
echo "Could not update package list" | |
exit $? | |
fi | |
pkgs=(gtkterm ruby1.9.1 ruby1.9.1-dev sqlite3 libsqlite3-dev sqliteman openssh-server openssh-client libopenssl-ruby1.9.1 git-core g++) | |
for p in ${pkgs[@]} | |
do | |
echo "Installing ${p}" | |
if ! apt-get install -y --force-yes ${p}; then | |
echo "Error while installing ${p}" | |
exit $? | |
fi | |
done | |
echo "Creating symlinks" | |
ln -s /usr/bin/ruby1.9.1 /usr/bin/ruby | |
ln -s /usr/bin/irb1.9.1 /usr/bin/irb | |
ln -s /usr/bin/gem1.9.1 /usr/bin/gem | |
ln -s /var/lib/gems/1.9.1/gems/god-0.11.0/bin/god /usr/local/bin/ | |
ln -s /var/lib/gems/1.9.1/gems/thin-1.2.7/bin/thin /usr/local/bin | |
echo "Now installing the needed gems" | |
gem install --no-ri --no-rdoc sqlite3-ruby | |
gem install --no-ri --no-rdoc sequel --version 3.18.0 | |
gem install --no-ri --no-rdoc serialport | |
gem install --no-ri --no-rdoc god | |
gem install --no-ri --no-rdoc daemons | |
gem install --no-ri --no-rdoc sinatra | |
gem install --no-ri --no-rdoc svg-graph19 --version 0.6.4 | |
gem install --no-ri --no-rdoc haml | |
gem install --no-ri --no-rdoc rdiscount | |
gem install --no-ri --no-rdoc rack | |
gem install --no-ri --no-rdoc eventmachine | |
gem install --no-ri --no-rdoc thin |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment