Project

General

Profile

Support #726

Updated by Daniel Curtis over 8 years ago

This is a guide on installing RubyCAS on FreeBSD 9. 

 h2. Prepare the Environment 

 * Make sure the system is up to date: 
 <pre> 
 pkg update && pkg upgrade 
 </pre> 

 * Install a few dependencies: 
 <pre> 
 pkg install git ruby ruby21-gems rubygem-bundler rubygem-rake 
 </pre> 

 * Create a rubycas user 
 <pre> 
 pw add user -n rubycas -m -s /bin/sh -c "RubyCAS" 
 </pre>  

 h2. Install RubyCAS 

 * Switch to the rubycas user: 
 <pre> 
 su - rubycas 
 </pre> 

 * Create a rubycas log file: 
 <pre> 
 touch /var/log/rubycas.log 
 chown rubycas /var/log/rubycas.log 
 </pre> 

 * Download the latest RubyCAS files from GitHub: 
 <pre> 
 git clone git://github.com/rubycas/rubycas-server.git 
 cd rubycas-server 
 </pre> 

 * Create a new config from the sample config: 
 <pre> 
 cp config/config.example.yml config.yml 
 </pre> 

 * Edit    the config.yml file. It is well commented but make sure that you take care of the following: 
 <pre> 
 vi config.yml 
 </pre> 
 *# Configure at least one authenticator 
 *# Configure the databse connection. 
 *# You might want to change log.file to @/var/log/rubycas.log@ 
 *# You might also want to disable SSL for now by commenting out the @ssl_cert@ line and changing the port to something like @8888@ 

 * Install the web app: 
 <pre> 
 bundle install --path vendor/bundle 
 </pre> 

 * Run the test server: 
 <pre> 
 bundle exec rubycas-server -c config.yml 
 </pre> 

 h2. Resources 

 * http://rubycas.github.io/ 
 * https://github.com/rubycas/rubycas-server/wiki/Quick-Start 
 * https://github.com/rubycas/rubycas-server/wiki/Installation

Back