Skip to content

Rstudio server

Tester edited this page Jan 8, 2016 · 7 revisions

RSTUDIO-SERVER

Installation

rstudio-server user and group

At installation, a rstudio-server system user and group is created. Home directory is /var/lib64/rstudio-server/www and owned by rstudio-server:rstudio-server.

veriyfy installation

# rstudio-server verify-installation

Any errors will output.

Configuration

RStudio is configured by adding entries to two configuration files (note that these files do not exist by default so you will need to create them if you wish to specify custom settings):

/etc/rstudio/rserver.conf
/etc/rstudio/rsession.conf

A list of option can be seen when running:

$ rserver --help

Server managent

Start the server and enable it with the systemd service file.

/etc/systemd/system/rstudio-server.service
-----------------------------------------
[Unit]
Description=RStudio Server daemon
Requires=rstudio-server.socket
After=syslog.target network.target

[Service]
User=rstudio-server
Group=rstudio-server
ExecStart=/usr/bin/rserver --server-daemonize=0
ExecStop=/bin/kill -HUP $MAINPID
KillMode=process

[Install]
WantedBy=multi-user.target
/etc/systemd/system/rstudio-server.socket
----------------------------------------
[Unit]
Description=rstudio-server socket

[Socket]
ListenStream=/run/rstudio-server/rstudio-server.sock

verify the server

visit the http://192.168.1.94:8787/ URL to see rserver in action locally.

Ressources

Clone this wiki locally