evnironment in ubuntuv1204
I just install the ubuntu 1204 for development.

However after I install ruby and oracle java I found there are some environment problems which I can not understand.

 1. ruby

I follow this topic step by step to install ruby:
[http://www.the-tech-tutorial.com/?p=1868][1]

It seems that it works during the installatoin.

However after I close the terminal and open a new window,and type `ruby -v`

I got `1.8.7` while I install `1.9.2` using rvm.

And I got `/usr/bin/ruby1.8.7` from `which ruby`.

And I got `rvm is not installed...` from `rvm help`;


Then I re-config the rvm environment :

    umask g+w
    source /etc/profile.d/rvm.sh
    rvm --default use 1.9.2.

Then I got `ruby 1.9.2...` from ``ruby -v``.

But after I re-start a terminal,I will meet the above problem.

How to fix it.?

 2. java

I need to install oracle jdk7 for development.

I download the file jdk7.tar.gz.

Then I extra it to a folder.

What is the next?

In ubuntu version<10.10,I will modify the `/etc/profile` file to add the `java_home` variable.

But now,it seems that this file is no longer the same as before.

And I found someone use the following to install java:
http://askubuntu.com/questions/55848/how-do-i-install-oracle-java-jdk-7.

In this topic,I donot find the parts used for the `java_home` variable.

So I want to know if this variable is nesscessary,and which is the regular way to config oralce jdk in ubuntu?


  [1]: http://www.the-tech-tutorial.com/?p=1868
evnironment in ubuntuv1204
===

I just install the ubuntu 1204 for development.

However after I install ruby and oracle java I found there are some environment problems which I can not understand.

 1. ruby

I follow this topic step by step to install ruby:
[http://www.the-tech-tutorial.com/?p=1868][1]

It seems that it works during the installatoin.

However after I close the terminal and open a new window,and type `ruby -v`

I got `1.8.7` while I install `1.9.2` using rvm.

And I got `/usr/bin/ruby1.8.7` from `which ruby`.

And I got `rvm is not installed...` from `rvm help`;


Then I re-config the rvm environment :

    umask g+w
    source /etc/profile.d/rvm.sh
    rvm --default use 1.9.2.

Then I got `ruby 1.9.2...` from ``ruby -v``.

But after I re-start a terminal,I will meet the above problem.

How to fix it.?

 2. java

I need to install oracle jdk7 for development.

I download the file jdk7.tar.gz.

Then I extra it to a folder.

What is the next?

In ubuntu version<10.10,I will modify the `/etc/profile` file to add the `java_home` variable.

But now,it seems that this file is no longer the same as before.

And I found someone use the following to install java:
http://askubuntu.com/questions/55848/how-do-i-install-oracle-java-jdk-7.

In this topic,I donot find the parts used for the `java_home` variable.

So I want to know if this variable is nesscessary,and which is the regular way to config oralce jdk in ubuntu?


  [1]: http://www.the-tech-tutorial.com/?p=1868