Created
September 8, 2017 11:59
-
-
Save eidosam/618dda0256aabf64c8ee1c0d592c571c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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