Server creation

Azure portal, using gallery creation for VM quickcreate quickcreate

Configuring the VM

  1. Get PuTTY
  2. Connect to your VM via the public IP quickcreate
  3. Use the login details in the creation wizard. The password won't look like you're typing
  4. Run sudo apt-get update to get the package repository metadata
  5. Run sudo apt-get install r-base to get R. Will have lots of extra associated packages - select Y when prompted
  6. Follow the installation instructions, using the latest file
    • Run sudo apt-get install gdebi-core to enable processing of rstudio installation package
    • Run sudo apt-get install libapparmor1 if using ubuntu
    • Run (latest version of) wget http://download2.rstudio.org/rstudio-server-0.98.1103-amd64.deb
    • Run (latest version of) sudo gdebi rstudio-server-0.98.1103-amd64.deb

Configuring port (away from 8787) and allowing on Azure

  1. Change rstudio to run on port 80 by amending port in conf file sudo nano /etc/rstudio/rserver.conf
  2. Restart rstudio to apply port change sudo rstudio-server restart
  3. Add port 80 to Azure endpoints for the VM port specify


stephlocke/Rtraining documentation built on May 30, 2019, 3:36 p.m.