This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

first steps for getting right r version installed

  • Loading branch information...
koaning committed Jun 30, 2015
1 parent 75b7656 commit 9d3326e376ec018f1068ded433476d847c26fd17
Showing with 26 additions and 4 deletions.
  1. +0 −4 create_image.sh
  2. +26 −0 rstudio/init.sh
View
@@ -18,10 +18,6 @@ sudo debuginfo-install -q -y glibc
sudo debuginfo-install -q -y kernel
sudo yum --enablerepo='*-debug*' install -q -y java-1.7.0-openjdk-debuginfo.x86_64
-# Add EPEL to yum
-sudo yum install -y epel-release
-sudo yum update -y
-
# PySpark and MLlib deps
sudo yum install -y python-matplotlib python-tornado scipy libgfortran
# SparkR deps
View
@@ -0,0 +1,26 @@
+# we need to add correct epel
+# http://aws.amazon.com/amazon-linux-ami/faqs/
+#
+# /etc/yum.repos.d/epel.repo
+# su -c 'rpm -Uvh http://download.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-5.noarch.rpm'
+# yum-config-manager --add-repo https://dl.fedoraproject.org/pub/epel/7/x86_64/
+# rpm -ivh https://dl.fedoraproject.org/pub/epel/6/x86_64/R-3.2.0-2.el6.x86_64.rpm
+# yum-config-manager --add-repo https://dl.fedoraproject.org/pub/epel/7/x86_64/
+# http://stackoverflow.com/questions/18747640/installing-r-on-rhel-6
+
+yum update -y --enablerepo=epel --skip-broken
+yum upgrade -y --enablerepo=epel --skip-broken
+yum install R --enablerepo=epel --skip-broken
+
+# download rstudio
+wget http://download2.rstudio.org/rstudio-server-rhel-0.99.446-x86_64.rpm
+sudo yum install --nogpgcheck -y rstudio-server-rhel-0.99.446-x86_64.rpm
+
+# restart rstudio
+rstudio-server restart
+
+# add user for rstudio
+adduser rstudio
+# maybe have the user set the password themselves?
+# otherwise this might be a security issue.
+# echo 'rstudio' | passwd --stdin rstudio

0 comments on commit 9d3326e

Please sign in to comment.