Skip to content

Instantly share code, notes, and snippets.

@marcelotournier
Created September 7, 2020 21:00
Show Gist options
  • Save marcelotournier/1ab42937ce8398800eca512128bdcdaf to your computer and use it in GitHub Desktop.
Save marcelotournier/1ab42937ce8398800eca512128bdcdaf to your computer and use it in GitHub Desktop.
#!/bin/bash
# This script contains commands to install RStudio & Jupyter in ubuntu 18
# Add keys and CRAN repo for ubuntu 18
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys E298A3A825C0D65DFD57CBB651716619E084DAB9
sudo add-apt-repository 'deb https://cloud.r-project.org/bin/linux/ubuntu bionic-cran40/'
sudo apt update
# Install R + system dependencies for tidyverse
sudo apt-get install -y gdebi-core r-base r-base-dev libssl-dev libxml2-dev libcurl4-openssl-dev
wget https://download1.rstudio.org/desktop/bionic/amd64/rstudio-1.3.1073-amd64.deb
sudo gdebi install rstudio-1.3.1073-amd64.deb
# Install RStudio Server
wget https://download2.rstudio.org/server/bionic/amd64/rstudio-server-1.3.1073-amd64.deb
sudo gdebi rstudio-server-1.3.1073-amd64.deb
# Jupyter hub - https://tljh.jupyter.org/en/latest/install/custom-server.html
curl -L https://tljh.jupyter.org/bootstrap.py | sudo -E python3 - --admin admin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment