Skip to content

Instantly share code, notes, and snippets.

@eidosam
Created September 8, 2017 11:59
Show Gist options
  • Save eidosam/618dda0256aabf64c8ee1c0d592c571c to your computer and use it in GitHub Desktop.
Save eidosam/618dda0256aabf64c8ee1c0d592c571c to your computer and use it in GitHub Desktop.
#!/bin/bash
#install R
yum install -y R
#install RStudio-Server
wget https://download2.rstudio.org/rstudio-server-rhel-0.99.465-x86_64.rpm
yum install -y --nogpgcheck rstudio-server-rhel-0.99.465-x86_64.rpm
#install shiny and shiny-server
R -e "install.packages('shiny', repos='http://cran.rstudio.com/')"
wget https://download3.rstudio.org/centos5.9/x86_64/shiny-server-1.4.0.718-rh5-x86_64.rpm
yum install -y --nogpgcheck shiny-server-1.4.0.718-rh5-x86_64.rpm
#add user(s)
read -a USERNAME
useradd $USERNAME
passwd $USERNAME
mkdir /home/$USERNAME
chown $USERNAME:users /home/$USERNAME
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment