User Tools

Site Tools


  • rstudio
  • Jonathan Haack
  • Haack's Networking



This is to set up R-Studio on Debian. As always, first setup TLS/LAMP first; see Apache Survival for help with doing so. Once you have that setup, download and install R-Studio. Always check rstudio's recommendations as well, but currently they recommend using gdebi as follows:

cd ~
sudo apt install r-base
sudo apt install gdebi
sudo gdebi rstudio-server-1.2.1335-amd64.deb

Make sure you already have an existing LAMP stack running for your domain on at least one virtual host with TLS. If you do not yet have that, please see the apachesurvival tutorial first. If you can do that, then set up two virtual host configuration files for http/https. Those are called reverse proxy virtual hosts according to the apache project. I adapted two recipes I contributed to for gitlab-ce to work with rstudio. First, create a virtual host to receive http requests for the domain you are using.

sudo nano /etc/apache2/sites-available/rstudioserver.conf

If you look at this http config, you can adapt the domain and ports to your liking: rstudioserver.conf

sudo nano /etc/apache2/sites-available/rstudioserver-ssl.conf

This https config will get you started (this is definitely not optional if this is public facing as described in this tutorial): rstudioserver-ssl.conf

sudo a2ensite rstudioserver.conf
sudo a2ensite rstudioserver-ssl.conf
sudo systemctl restart apache2
sudo systemctl restart rstudio-server

oemb1905 2021/04/02 20:12

computing/rstudio.txt · Last modified: 2021/04/02 20:17 by oemb1905