Friday, February 7, 2014

Install softwares Ubuntu 12.04 for java & android developer

A) Setup java
sudo add-apt-repository ppa:webupd8team/java sudo apt-get update sudo apt-get install oracle-java7-installer And type this to check the version: java -version
i) Add path 
sudo gedit /etc/bash.bashrc


export JAVA_HOME=/usr/lib/jvm/java-7-oracle export PATH=$JAVA_HOME:$PATH export JRE_HOME=/usr/lib/jvm/java-7-oracle/jre export PATH=$JRE_HOME:$PATH
source /etc/bash.bashrc B) Setup android home
Open terminal and cd /.../path/android-sdk 
use pwd to get path
sudo gedit /etc/bash.bashrc
export ANDROID_HOME=/../path/android-sdk-linux export PATH=$ANDROID_HOME:$PATH source /etc/bash.bashrc 
Follow this for setting up devices for development C) Setup Git
sudo apt-get install git-core
To create SSH key, follow this D) Setup eclipse
Download eclipse from here Follow this tutorial E) Setup maven
sudo apt-get install maven 
sudo gedit /etc/bash.bashrc export M2_HOME=/usr/share/maven export M2=$M2_HOME/binexport PATH=$M2:$PATH source /etc/bash.bashrc F) Setup install lamp for apache & mysql
sudo apt-get install tasksel
Then use tasksel to install the lamp-server collection of packages:
sudo tasksel install lamp-server This is far easier than mucking about with packages yourself.