Friday, March 28, 2014

GIthub setup

create a github account on github.com then

install git

$sudo apt-get install git


 Now do this in the terminal (This is not required though )
 
$git config --global user.name "your_ame"
$git config --global user.email "your_email"


After this you can either create a repository using website or from local computer using git commands

From website, its pretty clear.

From local computer, here are the steps.

$mkdir abc

$cd abc

$git init          ( this command tells the computer that this is local git repo.)




Wednesday, January 1, 2014

Setting JAVA_HOME

Setting JAVA HOME

Make a new file, if it already doesn't exist

vi ~/.bash_profile

write this in the file and save it.

#! /bin/bash
clear

JAVA_HOME=/usr/lib/jvm/java-7-openjdk-amd64/
PATH=$PATH:$HOME/bin:$JAVA_HOME/bin
export JAVA_HOME
export PATH


then

source it

source ~/.bash_profile