Tuesday, August 23, 2016

Install jdk and configure

1. Go to Oracle website
2. Download jdk
3. Place it in a folder (ex: /backup/Applications)
4. pwd the jdk path in a terminal (ex: /backup/Applications/jdk1.8.0_91)
5. nano ~/.bashrc
6.export JAVA_HOME=/backup/Applications/jdk1.8.0_91
   export M2_HOME=/backup/Applications/apache-maven-3.3.9
   export PATH=$JAVA_HOME/bin:$M2_HOME/bin:$PATH
 7. source ~/.bashrc
8.$PATH
9.#maven version
 >mvn -version


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. 

Sunday, November 14, 2010

Adding a new collaborator in github

Adding a new collaborator in github

Step1 : Open github
Step2 : Select the project (as a administrator).
Step3 : Click on the repository URL
Step4 : Click on the Admin button
Step5 : Select Private
Step6 : Click on "Add another collaborator" link
Step7 : Enter collaborator github account name.

Installing jdk and setting java path in ubuntu

Installing Java
step 1: Open Synaptic
step 2: Type sun in search box
step 3: select sun-java6-jre, sun-java6-jdk, sun-java6-fonts, sun-java6-bin

Setting Java path :
step 1: "which java" command gives the place where its installed , /usr/bin/java
step 2: open bashrc file and add java path,
#nano ~/.bashrc
add the java path,
export JAVA_HOME=/usr/lib/jvm/java-6-sun
export PATH=$PATH:$JAVA_HOME/bin
step 3:Execute the bashrc file
#source ~/.bashrc
step 4:check if java is compiling successfully,
#javac
This command should leave all the details of successful compilation

Amazon RDS installation and configuration on ubuntu

Amazon RDS(Relational Database Service)
Prerequisite : Account on aws.amazon.com

Installation :
Step 1: Download Amazon RDS command line tool kit http://developer.amazonwebservices.com/connect/entry.jspa%3FexternalID%3D2928%26categoryID%3D294
Step 2: Unzip the files to a location, I kept in /opt/RDSCli-1.1.005
Step 3: Create a credential file in RDSCli-1.1.005 folder
#cd RDSCli-1.1.005
Create a credential file as credential-file-path.conf
Step 4: credential-file-path.conf has access key and secret access key info as,
AWSAccessKeyId=xxxxxxxxx
AWSSecretKey=xxxxxxxxxxx
Step 5: Configure ~/.bashrc as
export AWS_RDS_HOME=/opt/RDSCli-1.1.005
export AWS_CREDENTIAL_FILE=$AWS_RDS_HOME/credential-file-path.conf
export PATH=$PATH:$AWS_RDS_HOME/bin
Step 6: Execute the bashrc file as,
# source ~/.bashrc
Step 7: To see that the command line toolkit is setup correctly type $rds—help

About Me

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