Haacking-Club/R-Studio

--- * **rstudio** * **Jonathan Haack** * **Haack's Networking** * **netcmnd@jonathanhaack.com** ---

//rstudio//

---

This is to set up rstudio on Debian. First, download and install the package:

cd ~ sudo apt install r-base sudo apt install gdebi wget https://download2.rstudio.org/server/debian9/x86_64/rstudio-server-1.2.1335-amd64.deb 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 as follows:

sudo nano /etc/apache2/sites-available/rstudioserver.conf Use something like this http configuration that I tweaked from the gitlab-ce recipe project on Gitlab: [|rstudioserver.conf]

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

Use something like this https configuration that I tweaked from the gitlab-ce recipe project on Gitlab: [|rstudioserver-ssl.conf]

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

--- //oemb1905 2019/08/02 02:45//