Instaling Sun Java Jre and Jdk Ubuntu 11.10 Oneiric

Standard

Just copied from: http://superuser.com/questions/353983/how-do-i-install-the-sun-java-sdk-in-ubuntu-11-10-oneric

sudo apt-get install python-software-properties
sudo add-apt-repository ppa:ferramroberto/java
sudo apt-get update sudo apt-get install sun-java6-jdk sun-java6-plugin 

[Source]

You may want to also add the following

sudo update-alternatives --config java 

You should get the following

 Selection Path Priority Status
------------------------------------------------------------
* 0 /usr/lib/jvm/java-6-openjdk/jre/bin/java 1061 auto mode
1 /usr/lib/jvm/java-6-openjdk/jre/bin/java 1061 manual mode
2 /usr/lib/jvm/java-6-sun/jre/bin/java 63 manual mode
Press enter to keep the current choice[*], or type selection number: 2

Select (2) and press enter

Now running:

java -version 

Returns:

java version "1.6.0_26"
Java(TM) SE Runtime Environment (build 1.6.0_26-b03)
Java HotSpot(TM) Server VM (build 20.1-b02, mixed mode)

Remainder: Configuring GIT

Standard

Posts tagged with ‘remainder’ will be the kind of post that have fast notes on solving/configuring/… something.

This one is about GIT configuration:

Configuring your name and e-mail

git config --global user.name "Your name"
git config --global user.email your@mail.com

Configuring colorized output

git config --global color.branch auto
git config --global color.diff auto
git config --global color.interactive auto
git config --global color.status auto

That’s all