Created
May 28, 2010 22:00
-
-
Save brycemcd/417815 to your computer and use it in GitHub Desktop.
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/sh | |
# VERSION 0.1 | |
# Last Updated 05/28/10 by Bryce McDonnell ( http://brycemcdonnell.com ) | |
#bash script to deploy a new Ubuntu desktop box for developing ruby/rails. This is a work in progress to be sure. I'll do my best to maintain this script to keep it current. | |
#Thanks to Lan Lelis for most of this workflow http://rbjl.net/18-you-don-t-need-a-macbook-to-code-ruby-and-rails | |
sudo -s | |
#install Git. Gotta have Git. This is v. 1.7.1 | |
echo "installing git" | |
cd /usr/local/src | |
wget http://kernel.org/pub/software/scm/git/git-1.7.1.tar.gz | |
tar zxvf git-1.7.1.tar.gz | |
./configure | |
make | |
make install | |
# this is awesome, this is a terminal env. just for git. I'm never going back | |
cd /usr/local/src | |
git clone git://github.com/rtomayko/git-sh.git | |
cd git-sh | |
make | |
make install | |
# add a new 'mother ship' to pull gems and initial ruby setup | |
add-apt-repository ppa:ubuntu-on-rails | |
apt-get update | |
apt-get install ruby rubygems irb ri rdoc rake build-essential ruby1.8-dev libopenssl-ruby | |
echo "export PATH=/var/lib/gems/1.8/bin:$PATH" >> ~/.bashrc | |
source ~/.bashrc | |
#get some dev libraries | |
echo "install some dev libraries" | |
apt-get install sqlite3 libsqlite3-dev mysql-server libmysqlclient15-dev | |
#install the basic gems, I always look at rdoc online anyway, so just save some space | |
echo "Install some gems" | |
gem install sqlite3-ruby mysql rails mongrel sinatra shotgun --no-ri --no-rdoc | |
#Viva la VIM baby! Akita did an awesome job aggregating a bunch of repos | |
# to make developing on Ubuntu very close to developing on Mac OS X. This is mostly pulled | |
# from the README with a few personal touches for flavor | |
echo "installing vim and vim tools" | |
touch ~/.vimrc | |
git clone git://github.com/akitaonrails/vimfiles.git ~/.vim | |
cd ~/.vim | |
git submodule init | |
git submodule update | |
echo "source ~/.vim/vimrc" >> ~/.vimrc | |
#gets backup and swp files out of the repo | |
mkdir ~/.vim/bkps | |
echo "set directory=~/.vim/bkps" >> ~/vimrc | |
echo "set backupdir=~/.vim/bkps" >> ~/vimrc |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment