This file contains hidden or 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
| #install Shiny, ShinyJS and rmarkdown package | |
| sudo su - -c "R -e \"install.packages(c('shiny','shinyjs','rmarkdown'), dependencies=TRUE, INSTALL_opts = c('--no-lock'), repos='https://cran.rstudio.com/')\"" | |
| #replace the following two lines with the code from Shiny Server downloads page | |
| wget https://download3.rstudio.org/ubuntu-12.04/x86_64/shiny-server-1.4.6.809-amd64.deb | |
| sudo gdebi shiny-server-1.4.6.809-amd64.deb |
This file contains hidden or 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
| sudo groupadd shiny-apps | |
| sudo usermod -aG shiny-apps karthiaru | |
| sudo usermod -aG shiny-apps shiny | |
| cd /srv/shiny-server | |
| sudo chown -R karthiaru:shiny-apps . | |
| sudo chmod g+w . | |
| sudo chmod g+s . |
This file contains hidden or 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
| sudo apt-get -y install nginx |
This file contains hidden or 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
| sudo service nginx stop | |
| sudo service nginx start | |
| sudo service nginx restart |
This file contains hidden or 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
| location /shiny/ { | |
| proxy_pass http://127.0.0.1:3838/; | |
| } | |
| location /rstudio/ { | |
| proxy_pass http://127.0.0.1:8787/; | |
| } |
This file contains hidden or 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
| pip install pulp |
This file contains hidden or 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
| conda install --channel https://conda.anaconda.org/conda-forge coincbc | |
| conda install --channel https://conda.anaconda.org/conda-forge coinmp |
This file contains hidden or 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
| conda install --channel https://conda.anaconda.org/conda-forge glpk |
This file contains hidden or 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
| conda config --add channels http://conda.anaconda.org/gurobi | |
| conda install gurobi |
This file contains hidden or 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
| conda create -n py34 python=3.4 anaconda | |
| source activate py34 | |
| source deactivate | |
| export PYTHONPATH="/opt/ibm/ILOG/CPLEX_Studio_Community1263/cplex/python/3.4/x86-64_linux:$PYTHONPATH" |