Make up to date Development machine For Ruby on Rails

1) Install Ruby On Rails

https://www.digitalocean.com/community/tutorials/how-to-install-ruby-on-rails-on-ubuntu-14-04-using-rvm

2) Install Sublime

http://askubuntu.com/questions/172698/how-do-i-install-sublime-text-2-3

3) just cut/paste following line: (RVM IS NOT A FUNCTION ERROR)

http://stackoverflow.com/questions/9336596/rvm-installation-not-working-rvm-is-not-a-function

To permanently resolve this just put following line:

[[ -s “$HOME/.rvm/scripts/rvm” ]] && source “$HOME/.rvm/scripts/rvm”

into: ~/.bash_profile, ~/.bashrc and in ~/.profile file

4) Install MySQL

https://www.digitalocean.com/community/tutorials/how-to-use-mysql-with-your-ruby-on-rails-application-on-ubuntu-14-04

5) Install git & Configuring git

sudo apt-get install git

Configuring git

git config –global user.name “YOUR NAME”
git config –global user.email “YOUR@EMAIL.com”

CREATE SSH KEY

ssh-keygen

6) Install PostgreSQL

Setting Up PostgreSQL

For PostgreSQL, we’re going to add a new repository to easily install a recent version of Postgres 9.3.

sudo sh -c “echo ‘deb http://apt.postgresql.org/pub/repos/apt/ precise-pgdg main’ > /etc/apt/sources.list.d/pgdg.list”
wget –quiet -O – http://apt.postgresql.org/pub/repos/apt/ACCC4CF8.asc | sudo apt-key add –
sudo apt-get update
sudo apt-get install postgresql-common
sudo apt-get install postgresql-9.3 libpq-dev

The postgres installation doesn’t setup a user for you, so you’ll need to follow these steps to create a user with permission to create databases. Feel free to replace chris with your username.

sudo -u postgres createuser chris -s

# If you would like to set a password for the user, you can do the following
sudo -u postgres psql
postgres=# \password chris

REF: https://gorails.com/setup/ubuntu/14.04

7) Install Redis Server

https://www.digitalocean.com/community/tutorials/how-to-install-and-use-redis

8) Install ImageMagick

http://askubuntu.com/questions/471045/14-04-doesnt-have-package-imagemagick

9) Set up Sublime for Rails Environment

Package Controll: https://packagecontrol.io/installation#st3

User Pref: https://mattbrictson.com/sublime-text-3-recommendations#packages

For ERB: https://github.com/eddorre/SublimeERB#add-keybinding

For .rb and .erb: https://github.com/CraigWilliams/BeautifyRuby

then: gem install htmlbeautifier

type: which ruby

set that path in preferences > package settings > beautify ruby > settings default

type: “ruby”: “/home/user_name/.rvm/rubies/ruby-1.9.3-p551/bin/ruby”,

10) Install Java

sudo apt-get update

sudo apt-get install default-jdk

11) Install DBeaver –¬†Free Universal SQL Client

http://dbeaver.jkiss.org/download/

12)  Chrome Extension

http://usersnap.com/blog/chrome-extensions-for-developers/

Advertisements