Created
September 16, 2011 16:45
-
-
Save minhajuddin/1222523 to your computer and use it in GitHub Desktop.
rails ubuntu setup script
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 | |
#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