Skip to content

Instantly share code, notes, and snippets.

@goddoe
Last active December 26, 2017 06:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save goddoe/2e696882766e3347592fb50a43887910 to your computer and use it in GitHub Desktop.
Save goddoe/2e696882766e3347592fb50a43887910 to your computer and use it in GitHub Desktop.
#!/usr/bin/env bash
# Constants
PORT=5000
# Install start
echo "Install R studio..."
sudo apt-get install r-base
sudo apt-get install gdebi-core
wget https://download2.rstudio.org/rstudio-server-1.1.383-amd64.deb
sudo gdebi rstudio-server-1.1.383-amd64.deb
echo "Change PORT to $PORT..."
sudo echo "www-port=$PORT" >> /etc/rstudio/rserver.conf
echo "Restart R studio..."
sudo rstudio-server restart
echo "Done."
# Manage User (ref: https://www.rstudio.com/ide/docs/server/getting_started)
# + RStudio Server will not permit logins by system users (those with user ids lower than 100).
# + User credentials are encrypted using RSA as they travel over the network.
# + You can manage users with standard Linux user administration tools like useradd, userdel, etc.
# + Each user needs to be created with a home directory.
# Reference
# + https://www.rstudio.com/products/rstudio/download-server/
# + https://www.rstudio.com/ide/docs/server/getting_started
# + http://docs.rstudio.com/ide/server-pro/index.html
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment