Data Science

RStudio Server Fedora Installation

Introduction

[ UPDATE ] A new and improved approached to standing up a RStudio Server as a container instance can be found here.

This post documents an RStudio Server installation procedure as tested on an OpenStack generated Fedora release 20 (Heisenbug) guest O/S.

# Check Fedora version ...
$ cat /etc/issue

$ cd ~
$ mkdir RStudioServer
$ cd RStudioServer

$ sudo yum -y install R
$ sudo yum -y install mysql
$ sudo yum -y install openssl
$ sudo yum -y install wget
$ wget http://download2.rstudio.org/rstudio-server-0.98.1091-x86_64.rpm
$ sudo yum -y install --nogpgcheck rstudio-server-0.98.1091-x86_64.rpm

# Change server port to 80 ...
# Follow instructions at https://support.rstudio.com/hc/en-us/articles/200552316-Configuring-the-Server
# then edit config to change port=80

$ sudo ln -s /usr/lib64/libssl.so.10 /usr/lib64/libssl.so.6
$ sudo ln -s /usr/lib64/libcrypto.so.10 /usr/lib64/libcrypto.so.6

$ sudo rstudio-server verify-installation
$ sudo rstudio-server restart

$ sudo iptables -A INPUT -p tcp -m tcp --dport 80 -j ACCEPT
$ sudo iptables -A INPUT -p tcp -m tcp --dport 443 -j ACCEPT

$ sudo systemctl disable firewalld
$ sudo systemctl stop firewalld

$ sudo yum -y install ftp
$ sudo yum -y install curl
$ sudo yum -y install libcurl libcurl-devel

# Install whatever R packages you need ...
$ wget http://cran.rstudio.com/src/contrib/rJava_0.9-6.tar.gz
$ sudo R CMD INSTALL rJava_0.9-6.tar.gz
$ wget https://bitbucket.org/emergile/Rdrools6/blob/master/Rdrools6jars_0.0.1.tar.gz
$ sudo R CMD INSTALL Rdrools6jars_0.0.1.tar.gz
$ wget https://bitbucket.org/emergile/Rdrools6/blob/master/Rdrools6_0.0.1.tar.gz
$ sudo R CMD INSTALL Rdrools6_0.0.1.tar.gz

# Create a guest account and then test access from a client browser
$ sudo useradd guest
$ sudo passwd guest

Now point your favourite browser to the IP address of the RStudio Server host O/S.
RStudio-sign-in

Leave a Reply