Data Science

RStudio Server Fedora Installation


[ 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
$ sudo yum -y install --nogpgcheck rstudio-server-0.98.1091-x86_64.rpm

# Change server port to 80 ...
# Follow instructions at
# then edit config to change port=80

$ sudo ln -s /usr/lib64/ /usr/lib64/
$ sudo ln -s /usr/lib64/ /usr/lib64/

$ 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
$ sudo R CMD INSTALL rJava_0.9-6.tar.gz
$ wget
$ sudo R CMD INSTALL Rdrools6jars_0.0.1.tar.gz
$ wget
$ 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.

Leave a Reply