Created
July 9, 2012 05:57
-
-
Save neophiliac/3074457 to your computer and use it in GitHub Desktop.
Rails Dev Setup Ubuntu 11.10 rbenv
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
export RUBY_HEAP_MIN_SLOTS=1000000 | |
export RUBY_HEAP_SLOTS_INCREMENT=1000000 | |
export RUBY_HEAP_SLOTS_GROWTH_FACTOR=1 | |
export RUBY_GC_MALLOC_LIMIT=1000000000 | |
export RUBY_HEAP_FREE_MIN=500000 | |
# in .bashrc: | |
# | |
# if [ -f ~/.rubyconfig ] ; then | |
# . ~/.rubyconfig | |
# endif | |
# (or something like that) |
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
############ Run Updates ############ | |
sudo echo "deb deb http://ppa.launchpad.net/git-core/ppa/ubuntu precise main" > /etc/apt/sources.list.d/git-ppa.list | |
sudo apt-get update | |
sudo apt-get -y upgrade | |
############ Reboot ############ | |
sudo apt-get install build-essential openssl libreadline6 libreadline6-dev curl git-core git-gui zlib1g zlib1g-dev libssl-dev libyaml-dev libsqlite3-0 libsqlite3-dev sqlite3 libxml2-dev libxslt-dev autoconf libc6-dev ncurses-dev automake libtool bison subversion ruby ncurses-term exuberant-ctags libnotify-bin curl autoconf make automake ssh openjdk-6-jdk git-core git-doc imagemagick libmagick9-dev postgresql-contrib libpq-dev ubuntu-restricted-extras vim-gnome tmux graphviz ufw | |
############ Enable firewall ############ | |
sudo ufw enable | |
sudo ufw default deny | |
############ Configure git ############ | |
git config --global user.name git-username | |
git config --global user.email git-email-address | |
############ Configure SSH key ############ | |
#ssh-keygen -t rsa -C git-email-address | |
############ Add Key to Github ############ | |
############ Install rbenv ############ | |
git clone git://github.com/sstephenson/rbenv.git ~/.rbenv | |
############ Add rbenv to your path ############ | |
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> .bash_profile | |
echo 'eval "$(rbenv init -)"' >> .bash_profile | |
source ~/.bash_profile | |
############ Install ruby-build as a plugin for rbenv ############ | |
mkdir -p ~/.rbenv/plugins | |
pushd ~/.rbenv/plugins | |
git clone git://github.com/sstephenson/ruby-build.git | |
popd | |
############ Install Ruby 1.9.3-p194-perf ############ | |
curl https://raw.github.com/gist/2600122/rbenv.sh | sh && rbenv global 1.9.3-p194-perf | |
############ Rehash! ############ | |
rbenv rehash | |
############ Check your Ruby Version ############ | |
ruby -v | |
############ Install node.js ########### | |
sudo apt-get install g++ libssl-dev | |
pushd /tmp | |
git clone git://github.com/joyent/node.git | |
cd node | |
./configure | |
make | |
sudo make install | |
popd | |
############ Configure gemrc ############ | |
echo "install: --no-ri --no-rdoc" >> ~/.gemrc | |
echo "update: --no-ri --no-rdoc" >> ~/.gemrc | |
############ Update gem command ############ | |
gem update --system | |
############ Install Rails and stuff ############ | |
gem install rails | |
gem install bundler rails-best-practices pry | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment