Preparing Ubuntu or Debian for dsixda android kitchen

You need to clone the repo:

git clone https://github.com/dsixda/Android-Kitchen

Install java jdk:

sudo apt-get install openjdk-7-jdk

If java installation stalls, you may need to update your apt sources:

#cat /etc/apt/sources.list
deb http://archive.ubuntu.com/ubuntu oneiric main restricted universe
deb http://archive.ubuntu.com/ubuntu oneiric-updates main restricted universe
deb http://security.ubuntu.com/ubuntu oneiric-security main restricted universe multiverse
deb http://archive.canonical.com/ubuntu oneiric partner
deb http://mirror.de.leaseweb.net/ubuntu oneiric main restricted universe
deb http://mirror.de.leaseweb.net/ubuntu oneiric-updates main restricted universe
deb http://mirror.de.leaseweb.net/ubuntu oneiric-security main restricted universe multiverse
deb http://mirror.de.leaseweb.net/ubuntu oneiric partner

Now,

apt-get update
sudo apt-get install openjdk-7-jdk

Install other necessary packages:

apt-get install zip build-essential

Debian squeeze apparently does not have a package for openjdk, and requires installation from source (which I havent explored yet). I found it easier to upgrade squeeze to wheezy. The latter does have the package:

The method is:

sed -i 's/squeeze/wheezy/g' /etc/apt/sources.list
apt-get update
apt-get upgrade ; apt-get dist-upgrade
apt-get install openjdk-7-jdk