Install Rabbitvcs in ubuntu

Manage SVN and GIT with GUI interface

Open Terminal

Step 1

sudo add-apt-repository ppa:rabbitvcs/ppa

Step 2

sudo apt-get update

Step 3

sudo apt-get install rabbitvcs-core

Step 4

Install nautilus,thunar,gedit

sudo apt-get install rabbitvcs-nautilus rabbitvcs-thunar rabbitvcs-gedit rabbitvcs-cli

Enjoy !

Setup Ubuntu machine for Ruby on Rails with RVM-Mysql-Git-Curl-Java-Sublime Text 2 or Scite

Configure brand new Ubuntu machine for Rails

Step 1 – Install RVM

Prerequisite for RVM sudo apt-get install curl git-core

Run command in terminal bash -s stable < <(curl -s )

After installation update .bashrc is require

command >nano ~/.bashrc

Replace [ -z "$PS1" ] && return with if [[ -n "$PS1" ]]; then

Also add following line of code at end of file

if [[ -s $HOME/.rvm/scripts/rvm ]] ; then source $HOME/.rvm/scripts/rvm ; fi


Run bash -l in terminal.

Now rvm notes you can see rvm is working !

Install following packages before installing ruby via RVM

sudo apt-get install build-essential bison openssl libreadline5 libreadline-dev curl git-core zlib1g zlib1g-dev libssl-dev vim libsqlite3-0 libsqlite3-dev sqlite3 libreadline-dev libxml2-dev git-core subversion autoconf

After that rvm list known will display know ruby package choose your favorite !

Install using e.g rvm install 1.9.2

RVM Up and Running !!!!!!

Step 2 – Install Mysql

apt-get install mysql-server

Step 3 – Install GIT and Curl

Already installed as prerequisite.

Step 4 – Install Java

Can install Java using two methods

1st Method

sudo apt-cache search jdk
sudo apt-get install sun-java6-jdk sun-java6-jre

and set export JAVA_HOME=”/usr/lib/jvm/java-6-sun-″ in your .bashrc file

2nd Method (Live installation)

sudo apt-get install python-software-properties
sudo add-apt-repository ppa:sun-java-community-team/sun-java6
sudo apt-get update
sudo apt-get install sun-java6-jdk

System is ready with java, can check version with java –version in terminal

Step 5 – Install Sublime Text 2

Add Sublime Text 2 PPA using the following command

sudo add-apt-repository ppa:webupd8team/sublime-text-2

After run these commands in terminal
sudo apt-get update
sudo apt-get install sublime-text-2-beta

Step 6 – Install Scite

Run following command in terminal

sudo apt-get install scite

After this installations you are ready to enjoy rails ……

Rails framework structure …..

Ruby on Rails is separated into various packages, namely ActiveRecord (an object-relational mapping system for database access), ActiveResource (provides web services), ActionPack, ActiveSupport and ActionMailer. Prior to version 2.0, Rails also included the Action Web Service package which is now replaced by Active Resource. Apart from standard packages, developers can make plugins to extend existing packages.Source[Wiki]

What is Rails ?

  • An extremely productive web-application framework.
  • Written in Ruby by David Heinemeier Hansson.
  • You could develop a web application at least ten times faster with Rails than you could with a typical Java framework.
  • An open source Ruby framework for developing database-backed web applications.
  • Your code and database schema are the configuration!
  • No compilation phase required.

There are a few other reasons behind Rails’ success:

Full Stack Framework

  • Includes everything needed to create a database-driven web application using the Model-View-Controller (MVC) pattern.
  • Being a full-stack framework means that all layers are built to work seamlessly together Less Code.
  • Requires fewer total lines of code than other frameworks spend setting up their XML configuration files.

Convention over Configuration

  • Rails shuns configuration files in favor of conventions, reflection and dynamic run-time extensions. Your application code and your running database already contain everything that Rails needs to know!

Don’t repeat yourself (DRY)

  • DRY is a slogan you will hear frequently associated with Ruby on Rails which means you need to code behavior only once and you never have to write similar code in two different places. This is important because you are less likely to make mistakes by modifying your code at one place only.

Rails Major Strengths:

Rails is packed with features that make you more productive, with many of the following features building on one other.

Metaprogramming : Other frameworks use extensive code generation from scratch. Metaprogramming techniques use programs to write programs. Ruby is one of the best languages for metaprogramming, and Rails uses this capability well. Rails also uses code generation but relies much more on metaprogramming for the heavy lifting.

Active Record : Rails introduces the Active Record framework, which saves objects to the database. The Rails version of Active Record discovers the columns in a database schema and automatically attaches them to your domain objects using metaprogramming.

Convention over configuration: Most web development frameworks for .NET or Java force you to write pages of configuration code. If you follow suggested naming conventions, Rails doesn’t need much configuration.

Scaffolding: You often create temporary code in the early stages of development to help get an application up quickly and see how major components work together. Rails automatically creates much of the scaffolding you’ll need.

Ajax at the core: Ajax is the technology that has become a standard to provide interactivity to websites without becoming intrusive. Ruby on Rails has a great support for Ajax technology and it is part of the core libraries. So when you install RoR, Ajax support is also made available to you.

Built-in testing: Rails creates simple automated tests you can then extend. Rails also provides supporting code called harnesses and fixtures that make test cases easier to write and run. Ruby can then execute all your automated tests with the rake utility.

Three environments: Rails gives you three default environments: development, testing, and production. Each behaves slightly differently, making your entire software development cycle easier. For example, Rails creates a fresh copy of the Test database for each test run.