Skip to content

Instantly share code, notes, and snippets.

@ddbs
Last active March 2, 2017 16:41
Show Gist options
  • Save ddbs/3ddec620442f0b66a4a3d7c2e4817758 to your computer and use it in GitHub Desktop.
Save ddbs/3ddec620442f0b66a4a3d7c2e4817758 to your computer and use it in GitHub Desktop.
# Install SSH server
sudo apt-get install openssh-server
# Update CRAN mirror for R
echo "deb https://cran.rstudio.com/bin/linux/ubuntu trusty/" | sudo tee -a /etc/apt/sources.list
## Secure CRAN mirror and upgrade
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys E084DAB9
sudo apt-get update && sudo apt-get -y upgrade
# install R and R compiler
sudo apt-get install -y --allow-unauthenticated r-base r-base-dev
# install opencpu server
sudo add-apt-repository ppa:opencpu/opencpu-1.6 -y
sudo apt-get update && sudo apt-get -y upgrade
sudo apt-get install -y opencpu
# test the connection
curl -L http://localhost/ocpu/library/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment