Project

General

Profile

Support #865

Install Hydra on FreeBSD

Added by Daniel Curtis almost 4 years ago. Updated almost 4 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
CAS Server
Target version:
Start date:
11/08/2016
Due date:
% Done:

100%

Estimated time:
1.00 h
Spent time:

Description

This is a guide for setting up a Hydra OAuth2 server on FreeBSD 10.

Prepare the Environment

  • Make sure the system is up to date:
    pkg update && pkg upgrade
    
  • Create a GOPATH folder:
    mkdir ~/go
  • Install a couple dependencies:
    pkg install go git
    
  • Edit the .cshrc file:
    vi ~/.cshrc
    
    • Set the GOROOT and Go bin for the environment:
      set path = (/sbin /bin /usr/sbin /usr/bin /usr/games /usr/local/sbin /usr/local/bin $HOME/bin /usr/local/go/bin /home/bob/go/bin)
      setenv GOROOT /usr/local/go
      setenv GOPATH $HOME/go
      source ~/.cshrc
      

Install Hydra

  • Download and install Hydra and Glide:
    go get github.com/ory-am/hydra
    go get github.com/Masterminds/glide
    cd $GOPATH/src/github.com/ory-am/hydra
    glide install
    go install github.com/ory-am/hydra
    
  • Test hydra:
    hydra
    

Resources

History

#1 Updated by Daniel Curtis almost 4 years ago

  • Description updated (diff)

#2 Updated by Daniel Curtis almost 4 years ago

  • % Done changed from 0 to 100
  • Status changed from New to Resolved

#3 Updated by Daniel Curtis almost 4 years ago

  • Status changed from Resolved to Closed

Also available in: Atom PDF