Sunday, August 31, 2014

Install RStudio

$ wget http://download1.rstudio.org/rstudio-0.98.1028-x86_64.rpm
--2014-08-31 13:36:56--  http://download1.rstudio.org/rstudio-0.98.1028-x86_64.rpm
Resolving download1.rstudio.org... 54.230.38.99, 54.230.38.175, 54.192.36.94, ...
Connecting to download1.rstudio.org|54.230.38.99|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 60750472 (58M) [application/x-redhat-package-manager]
Saving to: “rstudio-0.98.1028-x86_64.rpm”

100%[======================================>] 60,750,472  2.20M/s   in 35s    

2014-08-31 13:37:36 (1.65 MB/s) - “rstudio-0.98.1028-x86_64.rpm” saved [60750472/60750472]

# rpm -Uvh rstudio-0.98.1028-x86_64.rpm
Preparing...                ########################################### [100%]
   1:rstudio                ########################################### [100%]


$ which rstudio
/usr/bin/rstudio

$ rstudio


Install R

http://cran.r-project.org/

[root@novo ~]# yum install R
Loaded plugins: fastestmirror, priorities, refresh-packagekit, security
Loading mirror speeds from cached hostfile
 * base: mirror.atlanticmetro.net
 * epel: epel.mirror.constant.com
 * extras: mirror.atlanticmetro.net
 * updates: centos.mirror.nac.net
247 packages excluded due to repository priority protections
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package R.x86_64 0:3.1.0-5.el6 will be installed
--> Processing Dependency: libRmath-devel = 3.1.0-5.el6 for package: R-3.1.0-5.el6.x86_64
--> Processing Dependency: R-java = 3.1.0-5.el6 for package: R-3.1.0-5.el6.x86_64
--> Processing Dependency: R-devel = 3.1.0-5.el6 for package: R-3.1.0-5.el6.x86_64
--> Running transaction check
---> Package R-devel.x86_64 0:3.1.0-5.el6 will be installed
--> Processing Dependency: R-java-devel = 3.1.0-5.el6 for package: R-devel-3.1.0-5.el6.x86_64
--> Processing Dependency: R-core-devel = 3.1.0-5.el6 for package: R-devel-3.1.0-5.el6.x86_64
---> Package R-java.x86_64 0:3.1.0-5.el6 will be installed
--> Processing Dependency: R-core = 3.1.0-5.el6 for package: R-java-3.1.0-5.el6.x86_64
--> Processing Dependency: java-1.5.0-gcj for package: R-java-3.1.0-5.el6.x86_64
---> Package libRmath-devel.x86_64 0:3.1.0-5.el6 will be installed
--> Processing Dependency: libRmath = 3.1.0-5.el6 for package: libRmath-devel-3.1.0-5.el6.x86_64
--> Running transaction check
---> Package R-core.x86_64 0:3.1.0-5.el6 will be installed
--> Processing Dependency: tex(latex) for package: R-core-3.1.0-5.el6.x86_64
--> Processing Dependency: tex(dvips) for package: R-core-3.1.0-5.el6.x86_64
--> Processing Dependency: libblas.so.3()(64bit) for package: R-core-3.1.0-5.el6.x86_64
---> Package R-core-devel.x86_64 0:3.1.0-5.el6 will be installed
--> Processing Dependency: blas-devel >= 3.0 for package: R-core-devel-3.1.0-5.el6.x86_64
--> Processing Dependency: xz-devel for package: R-core-devel-3.1.0-5.el6.x86_64
--> Processing Dependency: tk-devel for package: R-core-devel-3.1.0-5.el6.x86_64
--> Processing Dependency: texinfo-tex for package: R-core-devel-3.1.0-5.el6.x86_64
--> Processing Dependency: tcl-devel for package: R-core-devel-3.1.0-5.el6.x86_64
--> Processing Dependency: pcre-devel for package: R-core-devel-3.1.0-5.el6.x86_64
--> Processing Dependency: libicu-devel for package: R-core-devel-3.1.0-5.el6.x86_64
--> Processing Dependency: lapack-devel for package: R-core-devel-3.1.0-5.el6.x86_64
--> Processing Dependency: gcc-gfortran for package: R-core-devel-3.1.0-5.el6.x86_64
--> Processing Dependency: gcc-c++ for package: R-core-devel-3.1.0-5.el6.x86_64
--> Processing Dependency: bzip2-devel for package: R-core-devel-3.1.0-5.el6.x86_64
---> Package R-java-devel.x86_64 0:3.1.0-5.el6 will be installed
--> Processing Dependency: java-devel for package: R-java-devel-3.1.0-5.el6.x86_64
---> Package java-1.5.0-gcj.x86_64 0:1.5.0.0-29.1.el6 will be installed
epel/filelists_db                                        | 9.0 MB     00:04    
updates/filelists_db                                     | 2.7 MB     00:02    
--> Processing Dependency: libgcj >= 4.1.2-5 for package: java-1.5.0-gcj-1.5.0.0-29.1.el6.x86_64
--> Processing Dependency: sinjdoc for package: java-1.5.0-gcj-1.5.0.0-29.1.el6.x86_64
--> Processing Dependency: /usr/lib64/security/classpath.security for package: java-1.5.0-gcj-1.5.0.0-29.1.el6.x86_64
--> Processing Dependency: /usr/bin/gij for package: java-1.5.0-gcj-1.5.0.0-29.1.el6.x86_64
--> Processing Dependency: /usr/bin/gij for package: java-1.5.0-gcj-1.5.0.0-29.1.el6.x86_64
--> Processing Dependency: /usr/bin/gcj-dbtool for package: java-1.5.0-gcj-1.5.0.0-29.1.el6.x86_64
--> Processing Dependency: /usr/bin/gcj-dbtool for package: java-1.5.0-gcj-1.5.0.0-29.1.el6.x86_64
---> Package libRmath.x86_64 0:3.1.0-5.el6 will be installed
--> Running transaction check
---> Package blas.x86_64 0:3.2.1-4.el6 will be installed
---> Package blas-devel.x86_64 0:3.2.1-4.el6 will be installed
---> Package bzip2-devel.x86_64 0:1.0.5-7.el6_0 will be installed
---> Package gcc-c++.x86_64 0:4.4.7-4.el6 will be installed
--> Processing Dependency: libstdc++-devel = 4.4.7-4.el6 for package: gcc-c++-4.4.7-4.el6.x86_64
---> Package gcc-gfortran.x86_64 0:4.4.7-4.el6 will be installed
---> Package java-1.6.0-openjdk-devel.x86_64 1:1.6.0.0-6.1.13.4.el6_5 will be installed
--> Processing Dependency: java-1.6.0-openjdk = 1:1.6.0.0-6.1.13.4.el6_5 for package: 1:java-1.6.0-openjdk-devel-1.6.0.0-6.1.13.4.el6_5.x86_64
---> Package lapack-devel.x86_64 0:3.2.1-4.el6 will be installed
--> Processing Dependency: lapack = 3.2.1-4.el6 for package: lapack-devel-3.2.1-4.el6.x86_64
---> Package libgcj.x86_64 0:4.4.7-4.el6 will be installed
---> Package libicu-devel.x86_64 0:4.2.1-9.1.el6_2 will be installed
---> Package pcre-devel.x86_64 0:7.8-6.el6 will be installed
---> Package sinjdoc.x86_64 0:0.5-9.1.el6 will be installed
--> Processing Dependency: java_cup >= 0.10 for package: sinjdoc-0.5-9.1.el6.x86_64
---> Package tcl-devel.x86_64 1:8.5.7-6.el6 will be installed
---> Package texinfo-tex.x86_64 0:4.13a-8.el6 will be installed
--> Processing Dependency: texinfo = 4.13a-8.el6 for package: texinfo-tex-4.13a-8.el6.x86_64
--> Processing Dependency: tetex for package: texinfo-tex-4.13a-8.el6.x86_64
--> Processing Dependency: /usr/bin/texconfig-sys for package: texinfo-tex-4.13a-8.el6.x86_64
--> Processing Dependency: /usr/bin/texconfig-sys for package: texinfo-tex-4.13a-8.el6.x86_64
---> Package texlive-dvips.x86_64 0:2007-57.el6_2 will be installed
--> Processing Dependency: texlive-texmf-errata = 2007 for package: texlive-dvips-2007-57.el6_2.x86_64
--> Processing Dependency: texlive-texmf-dvips = 2007 for package: texlive-dvips-2007-57.el6_2.x86_64
---> Package texlive-latex.x86_64 0:2007-57.el6_2 will be installed
--> Processing Dependency: texlive-utils = 2007-57.el6_2 for package: texlive-latex-2007-57.el6_2.x86_64
--> Processing Dependency: texlive-texmf-latex = 2007 for package: texlive-latex-2007-57.el6_2.x86_64
---> Package tk-devel.x86_64 1:8.5.7-5.el6 will be installed
---> Package xz-devel.x86_64 0:4.999.9-0.3.beta.20091007git.el6 will be installed
--> Running transaction check
---> Package java-1.6.0-openjdk.x86_64 1:1.6.0.0-5.1.13.3.el6_5 will be updated
---> Package java-1.6.0-openjdk.x86_64 1:1.6.0.0-6.1.13.4.el6_5 will be an update
---> Package java_cup.x86_64 1:0.10k-5.el6 will be installed
---> Package lapack.x86_64 0:3.2.1-4.el6 will be installed
---> Package libstdc++-devel.x86_64 0:4.4.7-4.el6 will be installed
---> Package texinfo.x86_64 0:4.13a-8.el6 will be installed
---> Package texlive.x86_64 0:2007-57.el6_2 will be installed
--> Processing Dependency: texlive-texmf-fonts = 2007 for package: texlive-2007-57.el6_2.x86_64
--> Processing Dependency: texlive-texmf = 2007 for package: texlive-2007-57.el6_2.x86_64
---> Package texlive-texmf-dvips.noarch 0:2007-38.el6 will be installed
--> Processing Dependency: texlive-texmf-errata-dvips = 2007 for package: texlive-texmf-dvips-2007-38.el6.noarch
---> Package texlive-texmf-errata.noarch 0:2007-7.1.el6 will be installed
---> Package texlive-texmf-latex.noarch 0:2007-38.el6 will be installed
--> Processing Dependency: texlive-texmf-errata-latex = 2007 for package: texlive-texmf-latex-2007-38.el6.noarch
--> Processing Dependency: tex-preview for package: texlive-texmf-latex-2007-38.el6.noarch
---> Package texlive-utils.x86_64 0:2007-57.el6_2 will be installed
--> Running transaction check
---> Package tex-preview.noarch 0:11.85-10.el6 will be installed
---> Package texlive-texmf.noarch 0:2007-38.el6 will be installed
---> Package texlive-texmf-errata-dvips.noarch 0:2007-7.1.el6 will be installed
---> Package texlive-texmf-errata-latex.noarch 0:2007-7.1.el6 will be installed
---> Package texlive-texmf-fonts.noarch 0:2007-38.el6 will be installed
--> Processing Dependency: texlive-texmf-errata-fonts = 2007 for package: texlive-texmf-fonts-2007-38.el6.noarch
--> Running transaction check
---> Package texlive-texmf-errata-fonts.noarch 0:2007-7.1.el6 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

================================================================================
 Package                    Arch   Version                        Repository
                                                                           Size
================================================================================
Installing:
 R                          x86_64 3.1.0-5.el6                    epel     21 k
Installing for dependencies:
 R-core                     x86_64 3.1.0-5.el6                    epel     48 M
 R-core-devel               x86_64 3.1.0-5.el6                    epel     94 k
 R-devel                    x86_64 3.1.0-5.el6                    epel     20 k
 R-java                     x86_64 3.1.0-5.el6                    epel     21 k
 R-java-devel               x86_64 3.1.0-5.el6                    epel     21 k
 blas                       x86_64 3.2.1-4.el6                    base    321 k
 blas-devel                 x86_64 3.2.1-4.el6                    base    133 k
 bzip2-devel                x86_64 1.0.5-7.el6_0                  base    250 k
 gcc-c++                    x86_64 4.4.7-4.el6                    base    4.7 M
 gcc-gfortran               x86_64 4.4.7-4.el6                    base    4.7 M
 java-1.5.0-gcj             x86_64 1.5.0.0-29.1.el6               base    139 k
 java-1.6.0-openjdk-devel   x86_64 1:1.6.0.0-6.1.13.4.el6_5       updates  15 M
 java_cup                   x86_64 1:0.10k-5.el6                  base    197 k
 lapack                     x86_64 3.2.1-4.el6                    base    4.3 M
 lapack-devel               x86_64 3.2.1-4.el6                    base    4.5 M
 libRmath                   x86_64 3.1.0-5.el6                    epel    117 k
 libRmath-devel             x86_64 3.1.0-5.el6                    epel     26 k
 libgcj                     x86_64 4.4.7-4.el6                    base     19 M
 libicu-devel               x86_64 4.2.1-9.1.el6_2                base    617 k
 libstdc++-devel            x86_64 4.4.7-4.el6                    base    1.6 M
 pcre-devel                 x86_64 7.8-6.el6                      base    318 k
 sinjdoc                    x86_64 0.5-9.1.el6                    base    705 k
 tcl-devel                  x86_64 1:8.5.7-6.el6                  base    162 k
 tex-preview                noarch 11.85-10.el6                   base     50 k
 texinfo                    x86_64 4.13a-8.el6                    base    668 k
 texinfo-tex                x86_64 4.13a-8.el6                    base    132 k
 texlive                    x86_64 2007-57.el6_2                  base    1.8 M
 texlive-dvips              x86_64 2007-57.el6_2                  base    193 k
 texlive-latex              x86_64 2007-57.el6_2                  base     83 k
 texlive-texmf              noarch 2007-38.el6                    base    2.8 M
 texlive-texmf-dvips        noarch 2007-38.el6                    base    238 k
 texlive-texmf-errata       noarch 2007-7.1.el6                   base    5.3 k
 texlive-texmf-errata-dvips noarch 2007-7.1.el6                   base    5.3 k
 texlive-texmf-errata-fonts noarch 2007-7.1.el6                   base    5.5 k
 texlive-texmf-errata-latex noarch 2007-7.1.el6                   base    5.4 k
 texlive-texmf-fonts        noarch 2007-38.el6                    base     48 M
 texlive-texmf-latex        noarch 2007-38.el6                    base    5.3 M
 texlive-utils              x86_64 2007-57.el6_2                  base    253 k
 tk-devel                   x86_64 1:8.5.7-5.el6                  base    496 k
 xz-devel                   x86_64 4.999.9-0.3.beta.20091007git.el6
                                                                  base     40 k
Updating for dependencies:
 java-1.6.0-openjdk         x86_64 1:1.6.0.0-6.1.13.4.el6_5       updates  41 M

Transaction Summary
================================================================================
Install      41 Package(s)
Upgrade       1 Package(s)

Total download size: 205 M
Is this ok [y/N]: y
Downloading Packages:
(1/42): R-3.1.0-5.el6.x86_64.rpm                         |  21 kB     00:00    
(2/42): R-core-3.1.0-5.el6.x86_64.rpm                    |  48 MB     00:21    
(3/42): R-core-devel-3.1.0-5.el6.x86_64.rpm              |  94 kB     00:00    
(4/42): R-devel-3.1.0-5.el6.x86_64.rpm                   |  20 kB     00:00    
(5/42): R-java-3.1.0-5.el6.x86_64.rpm                    |  21 kB     00:00    
(6/42): R-java-devel-3.1.0-5.el6.x86_64.rpm              |  21 kB     00:00    
(7/42): blas-3.2.1-4.el6.x86_64.rpm                      | 321 kB     00:00    
(8/42): blas-devel-3.2.1-4.el6.x86_64.rpm                | 133 kB     00:00    
(9/42): bzip2-devel-1.0.5-7.el6_0.x86_64.rpm             | 250 kB     00:00    
(10/42): gcc-c++-4.4.7-4.el6.x86_64.rpm                  | 4.7 MB     00:02    
(11/42): gcc-gfortran-4.4.7-4.el6.x86_64.rpm             | 4.7 MB     00:02    
(12/42): java-1.5.0-gcj-1.5.0.0-29.1.el6.x86_64.rpm      | 139 kB     00:00    
(13/42): java-1.6.0-openjdk-1.6.0.0-6.1.13.4.el6_5.x86_6 |  41 MB     00:22    
(14/42): java-1.6.0-openjdk-devel-1.6.0.0-6.1.13.4.el6_5 |  15 MB     00:06    
(15/42): java_cup-0.10k-5.el6.x86_64.rpm                 | 197 kB     00:00    
(16/42): lapack-3.2.1-4.el6.x86_64.rpm                   | 4.3 MB     00:02    
(17/42): lapack-devel-3.2.1-4.el6.x86_64.rpm             | 4.5 MB     00:02    
(18/42): libRmath-3.1.0-5.el6.x86_64.rpm                 | 117 kB     00:00    
(19/42): libRmath-devel-3.1.0-5.el6.x86_64.rpm           |  26 kB     00:00    
(20/42): libgcj-4.4.7-4.el6.x86_64.rpm                   |  19 MB     00:08    
(21/42): libicu-devel-4.2.1-9.1.el6_2.x86_64.rpm         | 617 kB     00:00    
(22/42): libstdc++-devel-4.4.7-4.el6.x86_64.rpm          | 1.6 MB     00:00    
(23/42): pcre-devel-7.8-6.el6.x86_64.rpm                 | 318 kB     00:00    
(24/42): sinjdoc-0.5-9.1.el6.x86_64.rpm                  | 705 kB     00:00    
(25/42): tcl-devel-8.5.7-6.el6.x86_64.rpm                | 162 kB     00:00    
(26/42): tex-preview-11.85-10.el6.noarch.rpm             |  50 kB     00:00    
(27/42): texinfo-4.13a-8.el6.x86_64.rpm                  | 668 kB     00:00    
(28/42): texinfo-tex-4.13a-8.el6.x86_64.rpm              | 132 kB     00:00    
(29/42): texlive-2007-57.el6_2.x86_64.rpm                | 1.8 MB     00:00    
(30/42): texlive-dvips-2007-57.el6_2.x86_64.rpm          | 193 kB     00:00    
(31/42): texlive-latex-2007-57.el6_2.x86_64.rpm          |  83 kB     00:00    
(32/42): texlive-texmf-2007-38.el6.noarch.rpm            | 2.8 MB     00:01    
(33/42): texlive-texmf-dvips-2007-38.el6.noarch.rpm      | 238 kB     00:00    
(34/42): texlive-texmf-errata-2007-7.1.el6.noarch.rpm    | 5.3 kB     00:00    
(35/42): texlive-texmf-errata-dvips-2007-7.1.el6.noarch. | 5.3 kB     00:00    
(36/42): texlive-texmf-errata-fonts-2007-7.1.el6.noarch. | 5.5 kB     00:00    
(37/42): texlive-texmf-errata-latex-2007-7.1.el6.noarch. | 5.4 kB     00:00    
(38/42): texlive-texmf-fonts-2007-38.el6.noarch.rpm      |  48 MB     00:27    
(39/42): texlive-texmf-latex-2007-38.el6.noarch.rpm      | 5.3 MB     00:02    
(40/42): texlive-utils-2007-57.el6_2.x86_64.rpm          | 253 kB     00:00    
(41/42): tk-devel-8.5.7-5.el6.x86_64.rpm                 | 496 kB     00:00    
(42/42): xz-devel-4.999.9-0.3.beta.20091007git.el6.x86_6 |  40 kB     00:00    
--------------------------------------------------------------------------------
Total                                           1.9 MB/s | 205 MB     01:46    
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing : texlive-texmf-errata-2007-7.1.el6.noarch                    1/43
  Installing : texlive-texmf-2007-38.el6.noarch                            2/43
  Installing : libgcj-4.4.7-4.el6.x86_64                                   3/43
  Installing : blas-3.2.1-4.el6.x86_64                                     4/43
  Installing : lapack-3.2.1-4.el6.x86_64                                   5/43
  Installing : 1:tcl-devel-8.5.7-6.el6.x86_64                              6/43
  Installing : gcc-gfortran-4.4.7-4.el6.x86_64                             7/43
  Installing : blas-devel-3.2.1-4.el6.x86_64                               8/43
  Installing : lapack-devel-3.2.1-4.el6.x86_64                             9/43
  Installing : 1:tk-devel-8.5.7-5.el6.x86_64                              10/43
  Installing : java-1.5.0-gcj-1.5.0.0-29.1.el6.x86_64                     11/43
  Installing : 1:java_cup-0.10k-5.el6.x86_64                              12/43
  Installing : sinjdoc-0.5-9.1.el6.x86_64                                 13/43
  Installing : libicu-devel-4.2.1-9.1.el6_2.x86_64                        14/43
  Installing : texinfo-4.13a-8.el6.x86_64                                 15/43
  Installing : texlive-texmf-errata-fonts-2007-7.1.el6.noarch             16/43
  Installing : pcre-devel-7.8-6.el6.x86_64                                17/43
  Installing : xz-devel-4.999.9-0.3.beta.20091007git.el6.x86_64           18/43
  Installing : libRmath-3.1.0-5.el6.x86_64                                19/43
  Installing : libRmath-devel-3.1.0-5.el6.x86_64                          20/43
  Installing : texlive-texmf-errata-dvips-2007-7.1.el6.noarch             21/43
  Installing : texlive-texmf-dvips-2007-38.el6.noarch                     22/43
  Installing : texlive-texmf-fonts-2007-38.el6.noarch                     23/43
  Installing : texlive-2007-57.el6_2.x86_64                               24/43
  Installing : texlive-dvips-2007-57.el6_2.x86_64                         25/43
  Installing : texlive-utils-2007-57.el6_2.x86_64                         26/43
  Installing : texinfo-tex-4.13a-8.el6.x86_64                             27/43
  Updating   : 1:java-1.6.0-openjdk-1.6.0.0-6.1.13.4.el6_5.x86_64         28/43
  Installing : 1:java-1.6.0-openjdk-devel-1.6.0.0-6.1.13.4.el6_5.x86_64   29/43
  Installing : libstdc++-devel-4.4.7-4.el6.x86_64                         30/43
  Installing : gcc-c++-4.4.7-4.el6.x86_64                                 31/43
  Installing : bzip2-devel-1.0.5-7.el6_0.x86_64                           32/43
  Installing : texlive-texmf-errata-latex-2007-7.1.el6.noarch             33/43
  Installing : texlive-texmf-latex-2007-38.el6.noarch                     34/43
  Installing : texlive-latex-2007-57.el6_2.x86_64                         35/43
  Installing : tex-preview-11.85-10.el6.noarch                            36/43
  Installing : R-core-3.1.0-5.el6.x86_64                                  37/43
  Installing : R-core-devel-3.1.0-5.el6.x86_64                            38/43
  Installing : R-java-devel-3.1.0-5.el6.x86_64                            39/43
  Installing : R-devel-3.1.0-5.el6.x86_64                                 40/43
  Installing : R-java-3.1.0-5.el6.x86_64                                  41/43
  Installing : R-3.1.0-5.el6.x86_64                                       42/43
  Cleanup    : 1:java-1.6.0-openjdk-1.6.0.0-5.1.13.3.el6_5.x86_64         43/43
  Verifying  : sinjdoc-0.5-9.1.el6.x86_64                                  1/43
  Verifying  : gcc-gfortran-4.4.7-4.el6.x86_64                             2/43
  Verifying  : lapack-devel-3.2.1-4.el6.x86_64                             3/43
  Verifying  : texlive-latex-2007-57.el6_2.x86_64                          4/43
  Verifying  : 1:java_cup-0.10k-5.el6.x86_64                               5/43
  Verifying  : R-devel-3.1.0-5.el6.x86_64                                  6/43
  Verifying  : R-core-devel-3.1.0-5.el6.x86_64                             7/43
  Verifying  : texlive-utils-2007-57.el6_2.x86_64                          8/43
  Verifying  : texlive-texmf-errata-latex-2007-7.1.el6.noarch              9/43
  Verifying  : texlive-texmf-dvips-2007-38.el6.noarch                     10/43
  Verifying  : bzip2-devel-1.0.5-7.el6_0.x86_64                           11/43
  Verifying  : libstdc++-devel-4.4.7-4.el6.x86_64                         12/43
  Verifying  : lapack-3.2.1-4.el6.x86_64                                  13/43
  Verifying  : R-3.1.0-5.el6.x86_64                                       14/43
  Verifying  : texinfo-tex-4.13a-8.el6.x86_64                             15/43
  Verifying  : texlive-texmf-fonts-2007-38.el6.noarch                     16/43
  Verifying  : texlive-texmf-2007-38.el6.noarch                           17/43
  Verifying  : 1:java-1.6.0-openjdk-1.6.0.0-6.1.13.4.el6_5.x86_64         18/43
  Verifying  : gcc-c++-4.4.7-4.el6.x86_64                                 19/43
  Verifying  : java-1.5.0-gcj-1.5.0.0-29.1.el6.x86_64                     20/43
  Verifying  : texlive-texmf-latex-2007-38.el6.noarch                     21/43
  Verifying  : blas-devel-3.2.1-4.el6.x86_64                              22/43
  Verifying  : texlive-texmf-errata-dvips-2007-7.1.el6.noarch             23/43
  Verifying  : 1:tk-devel-8.5.7-5.el6.x86_64                              24/43
  Verifying  : blas-3.2.1-4.el6.x86_64                                    25/43
  Verifying  : texlive-dvips-2007-57.el6_2.x86_64                         26/43
  Verifying  : R-core-3.1.0-5.el6.x86_64                                  27/43
  Verifying  : libRmath-3.1.0-5.el6.x86_64                                28/43
  Verifying  : R-java-3.1.0-5.el6.x86_64                                  29/43
  Verifying  : xz-devel-4.999.9-0.3.beta.20091007git.el6.x86_64           30/43
  Verifying  : pcre-devel-7.8-6.el6.x86_64                                31/43
  Verifying  : texlive-texmf-errata-fonts-2007-7.1.el6.noarch             32/43
  Verifying  : libRmath-devel-3.1.0-5.el6.x86_64                          33/43
  Verifying  : R-java-devel-3.1.0-5.el6.x86_64                            34/43
  Verifying  : libgcj-4.4.7-4.el6.x86_64                                  35/43
  Verifying  : texinfo-4.13a-8.el6.x86_64                                 36/43
  Verifying  : 1:tcl-devel-8.5.7-6.el6.x86_64                             37/43
  Verifying  : texlive-2007-57.el6_2.x86_64                               38/43
  Verifying  : texlive-texmf-errata-2007-7.1.el6.noarch                   39/43
  Verifying  : libicu-devel-4.2.1-9.1.el6_2.x86_64                        40/43
  Verifying  : tex-preview-11.85-10.el6.noarch                            41/43
  Verifying  : 1:java-1.6.0-openjdk-devel-1.6.0.0-6.1.13.4.el6_5.x86_64   42/43
  Verifying  : 1:java-1.6.0-openjdk-1.6.0.0-5.1.13.3.el6_5.x86_64         43/43

Installed:
  R.x86_64 0:3.1.0-5.el6                                                       

Dependency Installed:
  R-core.x86_64 0:3.1.0-5.el6                                                  
  R-core-devel.x86_64 0:3.1.0-5.el6                                            
  R-devel.x86_64 0:3.1.0-5.el6                                                 
  R-java.x86_64 0:3.1.0-5.el6                                                  
  R-java-devel.x86_64 0:3.1.0-5.el6                                            
  blas.x86_64 0:3.2.1-4.el6                                                    
  blas-devel.x86_64 0:3.2.1-4.el6                                              
  bzip2-devel.x86_64 0:1.0.5-7.el6_0                                           
  gcc-c++.x86_64 0:4.4.7-4.el6                                                 
  gcc-gfortran.x86_64 0:4.4.7-4.el6                                            
  java-1.5.0-gcj.x86_64 0:1.5.0.0-29.1.el6                                     
  java-1.6.0-openjdk-devel.x86_64 1:1.6.0.0-6.1.13.4.el6_5                     
  java_cup.x86_64 1:0.10k-5.el6                                                
  lapack.x86_64 0:3.2.1-4.el6                                                  
  lapack-devel.x86_64 0:3.2.1-4.el6                                            
  libRmath.x86_64 0:3.1.0-5.el6                                                
  libRmath-devel.x86_64 0:3.1.0-5.el6                                          
  libgcj.x86_64 0:4.4.7-4.el6                                                  
  libicu-devel.x86_64 0:4.2.1-9.1.el6_2                                        
  libstdc++-devel.x86_64 0:4.4.7-4.el6                                         
  pcre-devel.x86_64 0:7.8-6.el6                                                
  sinjdoc.x86_64 0:0.5-9.1.el6                                                 
  tcl-devel.x86_64 1:8.5.7-6.el6                                               
  tex-preview.noarch 0:11.85-10.el6                                            
  texinfo.x86_64 0:4.13a-8.el6                                                 
  texinfo-tex.x86_64 0:4.13a-8.el6                                             
  texlive.x86_64 0:2007-57.el6_2                                               
  texlive-dvips.x86_64 0:2007-57.el6_2                                         
  texlive-latex.x86_64 0:2007-57.el6_2                                         
  texlive-texmf.noarch 0:2007-38.el6                                           
  texlive-texmf-dvips.noarch 0:2007-38.el6                                     
  texlive-texmf-errata.noarch 0:2007-7.1.el6                                   
  texlive-texmf-errata-dvips.noarch 0:2007-7.1.el6                             
  texlive-texmf-errata-fonts.noarch 0:2007-7.1.el6                             
  texlive-texmf-errata-latex.noarch 0:2007-7.1.el6                             
  texlive-texmf-fonts.noarch 0:2007-38.el6                                     
  texlive-texmf-latex.noarch 0:2007-38.el6                                     
  texlive-utils.x86_64 0:2007-57.el6_2                                         
  tk-devel.x86_64 1:8.5.7-5.el6                                                
  xz-devel.x86_64 0:4.999.9-0.3.beta.20091007git.el6                           

Dependency Updated:
  java-1.6.0-openjdk.x86_64 1:1.6.0.0-6.1.13.4.el6_5                           

Complete!

$ R

R version 3.1.0 (2014-04-10) -- "Spring Dance"
Copyright (C) 2014 The R Foundation for Statistical Computing
Platform: x86_64-redhat-linux-gnu (64-bit)

R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.

  Natural language support but running in an English locale

R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.

Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.

>

Thursday, August 28, 2014

Linux : Configuring Network Interface Bonding



For more information see /usr/share/doc/iputils-*/README.bonding

Source:
http://www.tecmint.com/create-nic-channel-bonding-in-redhat-centos-fedora/

Step 1: Creating Bonding Channel

As a root, create a new file name bonding.conf in the /etc/modprobe.d/ directory. Name can be anything you like as long as it ends with a .conf extension. Insert the following line in this new file.
alias bond0 bonding
For each configured channel bonding interface, there must be a corresponding entry in your new /etc/modprobe.d/bonding.conf file.

Step 2: Creating Channle Bonding Interface

To create a channel bonding interface, create a file in the /etc/sysconfig/network-scripts/ directory called ifcfg-bond0. The following is a sample channel bonding configuration file. (Note : IP Address may differ in your environment.)
# vi /etc/sysconfig/network-scripts/ifcfg-bond0
DEVICE=bond0
IPADDR=192.168.1.8
NETMASK=255.255.255.0
ONBOOT=yes
BOOTPROTO=none
USERCTL=no

Step 3: Configuring Channel Bonding Interface

After the channel bonding interface is created, the network interfaces to be bound together must be configured by adding the MASTER and SLAVE directives to their configuration files. The configuration files for each of the channel-bonded interfaces can be nearly identical. For example, if two Ethernet interfaces are being channel bonded, both eth0 and eth1 may look like the following example. Edit physical interface card details as under.

For eth0

# vi /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0
USERCTL=no
ONBOOT=yes
MASTER=bond0
SLAVE=yes
BOOTPROTO=none

For eth1

# vi /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth1
USERCTL=no
ONBOOT=yes
MASTER=bond0
SLAVE=yes
BOOTPROTO=none
The above directives are self explanatory for many system admin, however, let me explain to newbie.
  1. DEVICE: Indicates what is the device name
  2. USERCTL: Indicates that can user control this device(here its no)
  3. ONBOOT:  Indicates that at the boot time do this device should be up?
  4. MASTER: Is this device has master? Then what it is(here its bond0)
  5. SLAVE: Is this device acting as slave?
  6. BOOTPROTO: What about getting IP Address from DHCP? It’s set to none which indicate it’s a static IP)

Step 4: Restarting Network Service

Restart the network service and see the output of ifconfig.
# service network restart
[root@tecmint network-scripts]# ifconfig

bond0     Link encap:Ethernet  HWaddr 00:0C:21:60:30:C4
          inet addr:192.168.1.8  Bcast:172.16.1.255  Mask:255.255.255.0
          inet6 addr: fe80::20c:29ff:fe69:31c4/64 Scope:Link
          UP BROADCAST RUNNING MASTER MULTICAST MTU:1500 Metric:1
          RX packets:19676 errors:0 dropped:0 overruns:0 frame:0
          TX packets:342 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:1623240 (1.5 MiB)  TX bytes:42250 (41.2 KiB)

eth0      Link encap:Ethernet  HWaddr 00:0C:21:60:30:C4
          UP BROADCAST RUNNING SLAVE MULTICAST MTU:1500 Metric:1
          RX packets:10057 errors:0 dropped:0 overruns:0 frame:0
          TX packets:171 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:832257 (812.7 KiB)  TX bytes:22751 (22.2 KiB)
          Interrupt:19 Base address:0x2000

eth1      Link encap:Ethernet  HWaddr 00:0C:21:60:30:C4
          UP BROADCAST RUNNING SLAVE MULTICAST MTU:1500 Metric:1
          RX packets:9620 errors:0 dropped:0 overruns:0 frame:0
          TX packets:173 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:791043 (772.5 KiB)  TX bytes:20207 (19.7 KiB)
          Interrupt:19 Base address:0x2080

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:2 errors:0 dropped:0 overruns:0 frame:0
          TX packets:2 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:104 (104.0 b)  TX bytes:104 (104.0 b)
 
 
 Changing a Bond's Configuration
-------------------------------
        Each bond may be configured individually by manipulating the
files located in /sys/class/net/<bond name>/bonding


# pwd
/sys/class/net/bond0/bonding
# ls
active_slave    all_slaves_active  miimon        primary_reselect
ad_actor_key    arp_interval       mii_status    queue_id
ad_aggregator   arp_ip_target      min_links     resend_igmp
ad_num_ports    arp_validate       mode          slaves
ad_partner_key  downdelay          num_grat_arp  updelay
ad_partner_mac  fail_over_mac      num_unsol_na  use_carrier
ad_select       lacp_rate          primary       xmit_hash_policy
# cat mode
active-backup 1
# cat miimon
1000
 
# cat /etc/sysconfig/network-scripts/ifcfg-bond0
DEVICE=bond0
BOOTPROTO=static
ONBOOT=yes
IPADDR=10.100.4.162
NETMASK=255.255.240.0
BONDING_OPTS="mode=1 miimon=1000"
 
 

# cat /proc/net/bonding/bond0
Ethernet Channel Bonding Driver: v3.7.1 (April 27, 2011)

Bonding Mode: fault-tolerance (active-backup)
Primary Slave: None
Currently Active Slave: eth1
MII Status: up
MII Polling Interval (ms): 1000
Up Delay (ms): 0
Down Delay (ms): 0

Slave Interface: eth1
MII Status: up
Speed: 1000 Mbps
Duplex: full
Link Failure Count: 0
Permanent HW addr: a0:d3:c1:f3:49:81
Slave queue ID: 0

Slave Interface: eth2
MII Status: down
Speed: Unknown
Duplex: Unknown
Link Failure Count: 0
Permanent HW addr: a0:d3:c1:f3:49:82
Slave queue ID: 0
 
If BONDING_OPTS is not specified, bonding mode will show as :
# cat /proc/net/bonding/bond0
Ethernet Channel Bonding Driver: v3.7.1 (April 27, 2011)

Bonding Mode: load balancing (round-robin)
MII Status: up
MII Polling Interval (ms): 0
Up Delay (ms): 0
Down Delay (ms): 0

Slave Interface: eth1
MII Status: up
Speed: 1000 Mbps
Duplex: full
Link Failure Count: 0
Permanent HW addr: a0:d3:c1:f3:49:fd
Slave queue ID: 0

Slave Interface: eth2
MII Status: up
Speed: Unknown
Duplex: Unknown
Link Failure Count: 0
Permanent HW addr: a0:d3:c1:f3:49:fe
Slave queue ID: 0

# cat mode
balance-rr 0
# cat miimon
0
 

Linux command : router configuration

Command to add a router : (lost after reboot)

ip route add 135.0.0.0/8 via 135.25.224.1 dev eth3

To use a configuration file to store the router information :

# cat /etc/sysconfig/network-scripts/route-eth3
135.0.0.0/8 via 135.25.224.1 dev eth3

With this file configured, we can setup the router information by running :

# ifup eth3

Command to delete a router :

ip route del 135.0.0.0/8

Default gateway information are stored in /etc/sysconfig/network
GATEWAY=x.x.x.x


Tuesday, August 26, 2014

Saturday, August 23, 2014

OpenStack : Trove : Trove installation

http://docs.openstack.org/icehouse/install-guide/install/yum/content/trove-install.html

OpenStack : Neutron : Neutron problem and solution


Problem :

in /var/log/neutron/openvswitch-agent.log


2014-08-23 14:46:58.105 4456 TRACE neutron.plugins.openvswitch.agent.ovs_neutron_agent Timeout: Timeout while waiting on RPC response - topic: "q-plugin", RPC method: "security_group_rules_for_devices" info: "<unknown>"



[openstack@novo ~(keystone_admin)]$ neutron port-list
Connection to neutron failed: Maximum attempts reached





Solution :


[root@novo sbin]# service neutron-server restart
Stopping neutron:                                          [FAILED]
Starting neutron:                                          [  OK  ]

After that :

in /var/log/neutron/openvswitch-agent.log

2014-08-23 14:47:00.384 4456 INFO neutron.plugins.openvswitch.agent.ovs_neutron_agent [req-45eca3db-5fa3-45da-b439-526819e7a010 None] Configuration for device 24110dfe-84f9-4dca-beb0-e17cf50b291f completed.

 [openstack@novo ~(keystone_admin)]$ neutron port-list
+--------------------------------------+------+-------------------+-------------------------------------------------------------------------------------+
| id                                   | name | mac_address       | fixed_ips                                                                           |
+--------------------------------------+------+-------------------+-------------------------------------------------------------------------------------+
| 24110dfe-84f9-4dca-beb0-e17cf50b291f |      | fa:16:3e:b4:df:f0 | {"subnet_id": "4de1afb9-ed1f-4c32-9bbb-20eec6073963", "ip_address": "10.0.0.2"}     |
| 36b6c681-4032-495e-a799-ab05a4d35249 |      | fa:16:3e:29:ed:8c | {"subnet_id": "4de1afb9-ed1f-4c32-9bbb-20eec6073963", "ip_address": "10.0.0.3"}     |
| 426f579f-5506-4229-99ff-6840e4b38dea |      | fa:16:3e:a4:b2:07 | {"subnet_id": "4de1afb9-ed1f-4c32-9bbb-20eec6073963", "ip_address": "10.0.0.8"}     |
| 5e313f5f-0603-41d2-b652-ff1f1c84dece |      | fa:16:3e:85:28:cd | {"subnet_id": "96a64200-a1fb-40e8-b888-c16bbe70609a", "ip_address": "172.24.4.235"} |
| b972f13b-5f89-4e93-a46a-b797aca9646e |      | fa:16:3e:b0:e4:eb | {"subnet_id": "96a64200-a1fb-40e8-b888-c16bbe70609a", "ip_address": "172.24.4.236"} |
| c322386e-cea0-46a4-a520-8c3123f9ea2f |      | fa:16:3e:01:ff:59 | {"subnet_id": "96a64200-a1fb-40e8-b888-c16bbe70609a", "ip_address": "172.24.4.231"} |
| cad3ee33-844e-4a1a-be7c-95751eb71600 |      | fa:16:3e:56:9f:44 | {"subnet_id": "4de1afb9-ed1f-4c32-9bbb-20eec6073963", "ip_address": "10.0.0.1"}     |
| d7b68106-4785-419e-89c8-c553ddfc92f3 |      | fa:16:3e:03:3f:5c | {"subnet_id": "4de1afb9-ed1f-4c32-9bbb-20eec6073963", "ip_address": "10.0.0.9"}     |
| f7ae4cd8-393d-47e1-a875-20b30adb2f4f |      | fa:16:3e:48:d9:c0 | {"subnet_id": "96a64200-a1fb-40e8-b888-c16bbe70609a", "ip_address": "172.24.4.232"} |
+--------------------------------------+------+-------------------+-------------------------------------------------------------------------------------+


Wednesday, August 20, 2014

Tuesday, August 19, 2014

Google Bigtable paper

http://research.google.com/archive/bigtable.html

Bigtable: A Distributed Storage System for Structured Data
Fay Chang, Jeffrey DeanSanjay Ghemawat, Wilson C. Hsieh, Deborah A. Wallach, Mike Burrows, Tushar Chandra, Andrew Fikes, and Robert E. Gruber
Abstract
Bigtable is a distributed storage system for managing structured data that is designed to scale to a very large size: petabytes of data across thousands of commodity servers. Many projects at Google store data in Bigtable, including web indexing, Google Earth, and Google Finance. These applications place very different demands on Bigtable, both in terms of data size (from URLs to web pages to satellite imagery) and latency requirements (from backend bulk processing to real-time data serving). Despite these varied demands, Bigtable has successfully provided a flexible, high-performance solution for all of these Google products. In this paper we describe the simple data model provided by Bigtable, which gives clients dynamic control over data layout and format, and we describe the design and implementation of Bigtable.
To appear in:
OSDI'06: Seventh Symposium on Operating System Design and Implementation,
Seattle, WA, November, 2006.
Download: PDF Version

Xen vs. KVM

Source :
http://dtrace.org/blogs/brendan/2013/01/11/virtualization-performance-zones-kvm-xen/

With Xen, the hypervisor performs CPU scheduling for the domains, and then each domain has its own OS kernel for thread scheduling. The hypervisor supports different CPU scheduling classes, including Borrowed Virtual Time (BVT), Simple Earliest Deadline First (SEDF), and Credit-Based. The domains use the OS kernel scheduler, and whatever regular scheduler classes and policies they provide.

The extra overhead of multiple schedulers costs performance. Having multiple schedulers can also create complex issues with how they interact, adding CPU latency in the wrong situations. Debugging this can be very difficult, especially since the Xen hypervisor is running out of reach of the usual OS performance tools (try xentrace instead).

Sending I/O via the I/O proxy processes (which are usually qemu) involves context-switching and more overhead. There has been lots of work to minimize this, including shared memory transports, buffering, I/O coalescing, and paravirtualization drivers.

With KVM, the hypervisor is a kernel module (kvm) which is scheduled by the OS scheduler. It can be tuned using the usual OS kernel scheduler classes, policies and priorities. The I/O path takes fewer steps than Xen. (The original Qumranet KVM paper described it as five steps vs ten, although this description isn’t including paravirtualization.)

Source :
https://major.io/2014/06/22/performance-benchmarks-kvm-vs-xen/

Oracle VM Architecture

Source is here



Client Applications: Various user interfaces to Oracle VM Manager are provided, either via the graphical user interface (GUI) accessible using a web-browser; the command line interface (CLI) accessible using an SSH client; custom built applications or scripts that use the Web Services API (WS-API); or external applications, such as Oracle Enterprise Manager, or legacy utility scripts that may still make use of the legacy API over TCPS on port 54322. The legacy API is due to be deprecated in the near future and applications that are using it must be updated to use the new Web Services API instead. All communications with Oracle VM Manager are secured using either a key or certificate based technology.

 Oracle VM Manager: Used to manage Oracle VM Servers, virtual machines, and resources. It is comprised of a number of subcomponents, include a web browser-based user interface; and a command line interface (CLI) allowing you to manage your infrastructure directly from the command line either via external scripts or by running manual command sequences. Each of these interfaces runs as a separate application to the Oracle VM Manager core and interfaces with this using the Web Services API.

The Oracle VM Manager core is an Oracle WebLogic Server application running on Oracle Linux. The user interface uses the Application Development Framework (ADF) application, providing a common look and feel, in line with other Oracle web-based applications. Oracle VM Manager can be on a standalone computer, or part of a virtual machine running on an instance of Oracle VM Server. While Oracle VM Manager core and the Oracle VM Manager GUI are both WebLogic applications, they are separate applications, even though they share the same process space.
Oracle VM Manager communicates with each Oracle VM Server via the Oracle VM Agent, using XML-RPC over HTTPS on port 8899. Actions on servers that are initiated within Oracle VM Manager are triggered using this method. The Oracle VM Agent on each Oracle VM Server is equally able to send notifications, statistics and event information back to Oracle VM Manager. Actions within Oracle VM Manager triggered by Oracle VM Agent are achieved using the Web Services API exposed by Oracle VM Manager and are secured using HTTPS.
While Oracle VM Manager is a critical component for configuration actions within the Oracle VM infrastructure, the virtualized environment can continue to function properly even if Oracle VM Manager experiences downtime. This includes the ability to maintain high availability and to perform live migration of virtual machines

 Oracle VM Manager Database: Used by Oracle VM Manager core to store and track configuration, status changes and events. Oracle VM Manager uses a MySQL Enterprise database that is bundled in the installer and which runs on the same host where Oracle VM Manager is installed. The database is configured for the exclusive use of Oracle VM Manager and must not be used by any other applications. The database is automatically backed up on a regular schedule, and facilities are provided to perform manual backups as well.

 Oracle VM Server: A managed virtualization environment providing a lightweight, secure, server platform which runs virtual machines, also known as domains. At least one Oracle VM Server is required, but several are needed to take advantage of clustering.

Oracle VM Server is installed on a bare metal computer, and contains the Oracle VM Agent to manage communication with Oracle VM Manager. dom0 is an abbreviation for domain zero, the management or control domain with privileged access to the hardware and device drivers. DomU is an unprivileged domain with no direct access to the hardware or device drivers. A user-domain (domU) is started and managed on an Oracle VM Server by dom0.
On x86-based systems, Oracle VM Server is based upon an updated version of the underlying Xen hypervisor technology, and includes Oracle VM Agent. It also includes a Linux kernel with support for a broad array of devices, file systems, and software RAID volume management. The Linux kernel is run as dom0 to manage one or more domU virtual machines, each of which could be Linux, Oracle Solaris, or Microsoft Windows™.

In contrast, Oracle VM Server for SPARC takes advantage of the hypervisor that is already included within the SPARC firmware, alongside the Oracle VM Agent for SPARC. The default Oracle Solaris operating system is usually promoted to act as the primary domain, which is equivalent to dom0 on x86 systems. Once the primary domain is in place, it can be used to create and manage further domains running different versions of the Oracle Solaris operating system.
Groups of Oracle VM Servers are usually clustered together to create server pools. This allows Oracle VM Manager to handle load balancing and failover for high-availability environments. Virtual machines run within a server pool and can be easily moved between the different servers that make up a server pool. Server pools also provide logical separation of servers and virtual machines. Server pools are required entities within the Oracle VM infrastructure, even if they consist of only one server.

Each Oracle VM Server maintains its own Berkeley Database, used to store local configuration and runtime information. This allows the Oracle VM Server to continue to function normally, even if Oracle VM Manager becomes unavailable for a period. Where Oracle VM Servers are clustered together, a separate cluster database, stored in the server pool file system, is shared between the servers. This allows the server pool to continue to provide clustering features, such as High Availability, even if Oracle VM Manager is unavailable.