Difference between revisions of "Scheduler"
From CSLabsWiki
Line 13: | Line 13: | ||
It uses the Shiny webapp and runs on port 3001 (which is redirected transparently to scheduler.cosi.clarkson.edu) | It uses the Shiny webapp and runs on port 3001 (which is redirected transparently to scheduler.cosi.clarkson.edu) | ||
+ | |||
+ | =Install= | ||
+ | |||
+ | Install Ubuntu 16.04 | ||
+ | |||
+ | ==Install packages== | ||
+ | |||
+ | <pre> | ||
+ | sudo apt install r-base apache2 | ||
+ | </pre> | ||
+ | |||
+ | ==Enter R== | ||
+ | |||
+ | Enter R and install packages | ||
+ | |||
+ | <pre> | ||
+ | R | ||
+ | install.packages("shiny") | ||
+ | install.packages(c("dplyr","gdata")) | ||
+ | </pre> | ||
+ | |||
+ | ==Configure Apache== | ||
+ | |||
+ | <pre> | ||
+ | sudo a2enmod proxy | ||
+ | </pre> | ||
+ | |||
+ | edit /etc/apache2/sites-enabled | ||
+ | |||
+ | <pre> | ||
+ | <VirtualHost *:80> | ||
+ | ServerName scheduler.cosi.clarkson.edu | ||
+ | ServerAlias scheduler.cslabs.clarkson.edu | ||
+ | ServerAlias scheduler | ||
+ | Options -Indexes | ||
+ | ProxyPreserveHost on | ||
+ | ProxyPass / http://localhost:3001/ | ||
+ | ProxyPassReverse / http://localhost:3001/ | ||
+ | </VirtualHost> | ||
+ | </pre> | ||
+ | |||
+ | ==Start Apache== | ||
+ | |||
+ | <pre> | ||
+ | sudo systemctl restart apache2 | ||
+ | sudo systemctl status apache2 | ||
+ | </pre> |
Revision as of 22:01, 29 September 2016
Scheduler | |
IP Address(es): | 128.153.145.200 |
Contact Person: | Anthony Rinaldo rinaldaj@clarkson.edu |
Last Update: | 2016/09/29 |
VM Host (Physical): | hydra |
Host VM: | scheduler |
Services: | Scheduler (for scheduling classess) |
Scheduler is a service designed to help students make their schedule. It queries the class information from an exported CSV from Peoplesoft.
It uses the Shiny webapp and runs on port 3001 (which is redirected transparently to scheduler.cosi.clarkson.edu)
Install
Install Ubuntu 16.04
Install packages
sudo apt install r-base apache2
Enter R
Enter R and install packages
R install.packages("shiny") install.packages(c("dplyr","gdata"))
Configure Apache
sudo a2enmod proxy
edit /etc/apache2/sites-enabled
<VirtualHost *:80> ServerName scheduler.cosi.clarkson.edu ServerAlias scheduler.cslabs.clarkson.edu ServerAlias scheduler Options -Indexes ProxyPreserveHost on ProxyPass / http://localhost:3001/ ProxyPassReverse / http://localhost:3001/ </VirtualHost>
Start Apache
sudo systemctl restart apache2 sudo systemctl status apache2