How to set up your own Rstudio server on DigitalOcean

If you want to have your own Rstudio server, DigitalOcean can help. DigitalOcean is a US cloud service provider with data centers around the world. The company offers private virtual servers, called Droplets, for $ 5 per month or more. Creating and deleting droplets is easy and you only pay for the time you use a droplet. The services of DigitalOcean are relatively easy to use and inexpensive.

Step 1: Register with DigitalOcean

First, register as a DigitalOceon DigitalOcean customer . Registration goes relatively fast.

Step 2: Create a Droplet

Now it's time to create your own virtual machine or droplet. Press the buttons “create” -> “Droplets” -> “Marketplates”. Then select “RStudio VERSION 1.2 OS Ubuntu 18.04” by Open Trade Statistics. You will now get a droplet that is fully configured with the following programs and R packages:

  • R

  • openJDK

  • OpenBLAS

  • TeX Live

  • RStudio Server

  • Shiny Server

  • R Development - devtools

  • R Datasets - data.table

  • R Datasets - tidyverse

  • R Datasets - chunked

  • R Documentation - rmarkdown

  • R Documentation - bookdown

  • R Documentation - pkgdown

  • R Documentation - xaringan

  • R Documentation - Rdpack

  • R Databases - RPostgres

  • R Databases - RMariaDB

  • R Statistics - tidymodels

  • R Visualization - shinydashboardPlus

  • R Visualization - highcharter

  • R Parallelization - doParallel

  • R Statistics - modelr

Press “Create Rstudio Droplet”. You will now be taken to a page where you can select the size, location, and name of your droplet. I choose a suitable size and Amsterdam as location. This data center is located in Europe and is relatively new. Finally, press “create droplet” at the bottom of the page. You will now receive an email with login details.

Steg 3: logg inn på din egen shiny server

Når “dropleten” er ferdig kan du logge inn. Du får tildelt din egen IP adresse, for eksempel 203.0.113.0. Det anbefales å bruke programmet Putty til å logge inn dersom du bruker en windows maskin. Last ned Putty, og tast inn IP adressen din under “Host name (or IP) adress” og trykk “open”. Oppgi nå brukernavnet “root” og passordet som er sendt til din e-post adresse.

I’m on Windows, so I use PuTTY to SSH (“login”) into other machines. Use the IP that you see on the page, with the username root. If you used an SSH key then you don’t need to provide a password; otherwise, a password was sent to your email. The first time you log in, you may be asked to change the default password.

Once the droplet is ready (can take a few minutes), you’ll be redirected to a page that shows you information about the new droplet, including its IP. From now on, I’ll use the random IP address 123.456.1.2 for the rest of this post, but remember to always substitute your actual droplet’s IP with this one. Gratulerer. Du har nå logget deg inn på din egen server.

Du blir bedt om å skifte passordet til root med en gang. Root er en superbrukerrolle i systemet, som har tilgang til alle mapper og filer.

Oppdatert