Last active
December 26, 2017 06:20
-
-
Save goddoe/2e696882766e3347592fb50a43887910 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
#!/usr/bin/env bash | |
# Constants | |
PORT=5000 | |
# Install start | |
echo "Install R studio..." | |
sudo apt-get install r-base | |
sudo apt-get install gdebi-core | |
wget https://download2.rstudio.org/rstudio-server-1.1.383-amd64.deb | |
sudo gdebi rstudio-server-1.1.383-amd64.deb | |
echo "Change PORT to $PORT..." | |
sudo echo "www-port=$PORT" >> /etc/rstudio/rserver.conf | |
echo "Restart R studio..." | |
sudo rstudio-server restart | |
echo "Done." | |
# Manage User (ref: https://www.rstudio.com/ide/docs/server/getting_started) | |
# + RStudio Server will not permit logins by system users (those with user ids lower than 100). | |
# + User credentials are encrypted using RSA as they travel over the network. | |
# + You can manage users with standard Linux user administration tools like useradd, userdel, etc. | |
# + Each user needs to be created with a home directory. | |
# Reference | |
# + https://www.rstudio.com/products/rstudio/download-server/ | |
# + https://www.rstudio.com/ide/docs/server/getting_started | |
# + http://docs.rstudio.com/ide/server-pro/index.html |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment