Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
setting up shiny server on ubuntu

To install latest version of R

  echo "deb https://<my.favorite.cran.mirror>/bin/linux/ubuntu trusty/" > /etc/sources.list.d/r.list
  sudo apt-get update
  sudo apt-get upgrade -y
  sudo apt-get dist-upgrade -y
  sudo apt-get install r-base -y

To install git

  sudo apt-get install git

To get version of ubuntu

  lsb_release -a

To install shiny-server

 sudo apt-get install gdebi
 sudo gdebi shiny-server-

To start shiny-server

 sudo start shiny-server

To check what's running on what port

 sudo netstat -lp

To change the config

 sudo vim /etc/shiny-server/shiny-server.conf

To deploy a change

 sudo restart shiny-server

To check the server-log

 vim /var/log/shiny-server.log

To check a run-log (i.e. what you would see in R console)

 ls -lrt /var/log/shiny-server/*.log |tail -1
 vim /var/log/shiny-server/airalliance-ubuntu-20171219-162623-53102.log
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment