Friday, June 13, 2014

Git Checkout/Checkin

I want to cover git checkout/checkin from local branch to remote branch.

Say I have few added files and want to checkin those changes to local branch and then merge them and push them to remote branch. And also want to be upto date with remote branch.

Local branch: develop
Remote branch: master

The below are the steps.

Step1: git status
Step2: git add */ git add
Step3: git commit -m "comment"
Step4: git checkout master
Step5: git pull
Step6: git merge develop
Step7: git push origin master
Step8: git branch
Step9: git checkout develop

This flow is what works for me. Hope this info helps some one.

Tuesday, June 10, 2014

RUBYCAS Server Installation

Installing RubyCAS server
Steps::
1.  git clone git://github.com/rubycas/rubycas-server.git
2. cd rubycas-server
3. Customize config.yml
     server: webrick
          port: 8888
          database:
            adapter: postgresql
            database: casserver
            username: xxxx
            password: xxxxx
            host: localhost
            reconnect: true
3.start database: pg_ctl –D /usr/local/var/postgres start
4.create database: createdb casserver
5. Modified config.yml 
      log:
            file: /Users/xxxxxxx/Desktop/Harini/projects/log/casserver.log
            level: INFO
Note:: Created log folder in 
          /Users/xxxxxxxx/Desktop/Harini/projects

Error::
!!! No authenticators have been configured. Please double-check your config file ("/Users/hkorupolu/Desktop/Harini/projects/rubycas-server/lib/casserver/../../config.yml”).

Downloaded demo ssl certificate here.

#config.yaml
server: webrick
port: 4000
ssl_cert: /Users/xxxxxxxx/Desktop/Harini/KEYS/rubycas-server-demo.pem

database:
  adapter: postgresql
  database: casserver
  username: xxx
  password: xxxxxx
  host: localhost
  reconnect: true

authenticator:
 - class: CASServer::Authenticators::Google
 - class: CASServer::Authenticators::SQL
   database:
     adapter: postgresql
     database: ich-identity_development
     username: xxxx
     password: xxxxxx
     host: localhost
   user_table: users
   username_column: user_name
   password_column: encrypted_password

theme: simple
organization: XXXX
infoline: Powered by http://rubycas.github.com">RubyCAS-Server


log:
  file: /Users/xxxxxx/Desktop/Harini/projects/log/casserver.log
  level: INFO

# Start the Rubycas server
>rubycas-server

#Browser
https://localhost:4000

SSH Permission Denied

Here is a issue I got today..wanted to save time of some one with similar issue

Permissions 0644 for 'xxx/xxxxx/.ssh/xxx.pem' are too open.
It is required that your private key files are NOT accessible by others.
This private key will be ignored.
bad permissions: ignore key: /Users/xxxxxxx/.ssh/xxxxxxx.pem
Permission denied (publickey).


Resolution:: Make sure you copy the .pem file to ~/.ssh folder
>give permissions to the actual .pem certificate
>chmod 600 xxxxxx.pem
>ssh -i ~/.ssh/xxxxxx.pem xxxxx@server.com 

Hope this helps. 

About Me

Friendly and humanitarian Honest and loyal Original and inventive Independent and intellectual