From a25e9489fe3dbe1126e7f0e92060029302660279 Mon Sep 17 00:00:00 2001 From: "David J. Malan" Date: Sat, 27 Jan 2024 15:14:30 -0500 Subject: [PATCH] moved RStudio to 8787 --- opt/cs50/bin/rstudio | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/opt/cs50/bin/rstudio b/opt/cs50/bin/rstudio index abffd8d7..52d55495 100755 --- a/opt/cs50/bin/rstudio +++ b/opt/cs50/bin/rstudio @@ -1,21 +1,17 @@ #!/bin/bash -PORT="8080" -export USER="${USER:-$(whoami)}" - # Kill any process listing on the specified port -fuser --kill -TERM "${PORT}/tcp" &>/dev/null +fuser --kill -TERM "8787/tcp" &>/dev/null # Formatting bold=$(tput bold) normal=$(tput sgr0) # Start server -echo "${bold}Started server on http://0.0.0.0:${PORT}. Hit CTRL-C to stop the server.${normal}" +export USER="${USER:-$(whoami)}" +echo "${bold}Started server on http://0.0.0.0:8787. Hit CTRL-C to stop the server.${normal}" /usr/lib/rstudio-server/bin/rserver \ --auth-none=1 \ --server-daemonize=0 \ --server-data-dir=/tmp/rstudio-server \ - --server-user="$USER" \ - --www-port="$PORT" \ - --www-root-path=/ # Else $PORT is appended during redirects + --server-user="$USER"