Skip to content

Instantly share code, notes, and snippets.

@minhajuddin
Created September 16, 2011 16:45
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save minhajuddin/1222523 to your computer and use it in GitHub Desktop.
Save minhajuddin/1222523 to your computer and use it in GitHub Desktop.
rails ubuntu setup script
#!/bin/bash
#script to install all the required software
#update the system
sudo apt-get update
sudo apt-get dist-upgrade -y
sudo apt-get upgrade -y
#install required software
sudo apt-get install vim-gnome curl git-core bison build-essential zlib1g-dev libssl-dev libreadline6-dev libxml2-dev autoconf libxslt1-dev ctags gitk git-gui -y
#comment out the below line to *not* install postgresql
sudo apt-get install libpq-dev postgresql -y
#comment out the below line to *not* install these utilities
sudo apt-get install parcellite alarm-clock gnome-do shutter vlc pidgin -y
#comment out the below line to *not* install openssh-server
sudo apt-get install openssh-server -y
#install rvm
bash < <(curl -s https://rvm.beginrescueend.com/install/rvm)
#tweak bashrc
mkdir ~/archives
cp ~/.bashrc ~/archives
sed -e 's/\[ -z "\$PS1" \] && return/if \[\[ ! -z "\$PS1" \]\] ; then/g' ~/archives/.bashrc > /tmp/newbash && echo 'fi' >> /tmp/newbash
cp /tmp/newbash ~/.bashrc
#install ruby 1.9.2
rvm install 1.9.2
rvm --default 1.9.2
rvm use 1.9.2
#clone dotfiles repo
mkdir ~/repos
cd ~/repos
git clone git://github.com/minhajuddin/dotfiles.git
cd ~/repos/dotfiles && ruby setup.rb #TODO: change the setup.rb file to setup.sh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment