From f9c830767ab0163ddb0b5134045d23a1f13c71d3 Mon Sep 17 00:00:00 2001 From: RomanNum3ral Date: Tue, 30 Sep 2025 15:25:29 +0000 Subject: [PATCH] Add install_v2.sh --- install_v2.sh | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 install_v2.sh diff --git a/install_v2.sh b/install_v2.sh new file mode 100644 index 0000000..8f077e8 --- /dev/null +++ b/install_v2.sh @@ -0,0 +1,27 @@ +#!/bin/bash +set -euo pipefail + +# --- Update & Upgrade machine --- +apt update +apt upgrade -y + +# --- Install prerequisites --- +apt install -y python3 python3-dev git curl gdebi-core \ + software-properties-common dirmngr gnupg apt-transport-https \ + libssl-dev libcurl4-openssl-dev libxml2-dev + +# --- Install R (from Ubuntu repos, CRAN packages available) --- +apt install -y r-base + +# --- Install RStudio Server (Jammy build works on Noble) --- +RSTUDIO_DEB="rstudio-server-latest-amd64.deb" +curl -LO https://download2.rstudio.org/server/jammy/amd64/${RSTUDIO_DEB} +gdebi -n ${RSTUDIO_DEB} +rm -f ${RSTUDIO_DEB} + +# --- Install JupyterHub (The Littlest JupyterHub) --- +curl -L https://tljh.jupyter.org/bootstrap.py | sudo -E python3 - --admin anon + +# --- Add R kernel to Jupyter --- +R -e "install.packages('IRkernel', repos='http://cran.r-project.org')" +R -e "IRkernel::installspec(user = FALSE)"