Android DIY – How to Setup Android SDK on your Ubuntu/Debian Linux!

Today I was setting up my Android SDK on my laptop’s Ubuntu so I figured also to show others how easy it is to setup Android SDK on your Ubuntu or Debian using commands apt-get, tar, and wget.

For those of you who want to setup Android SDK so you can start using ADB commands or root your Android smartphone, you will need to first install Java run-time on your Ubuntu/Debian.

First, open up a terminal and put yourself into “root” mode so you don’t have to keep typing sudo in front of everything:

sudo /bin/bash

Now, let’s install Java run-time, which is needed for Android SDK:

apt-get install sun-java6-jre

Next, let’s make a directory called sdk so it’s easy to reference later on.

mkdir /sdk

Next, let’s download the Android SDK tarball:

cd /sdk

wget http://dl.google.com/android/android-sdk_r06-linux_86.tgz

Here, yo.u can also replace the URL http://dl.google.com/android/android-sdk_r06-linux_86.tgz by the latest version you find on Android SDK page here.

Next, let’s untar the package by doing:

tar xvf http://dl.google.com/android/android-sdk_r06-linux_86.tgz

Copy all files into /sdk.

cp android-sdk-linux_86/* . -rf

Remove the empty directory:

rm android-sdk-linux_86/ -rf

Then run the GUI Android update to get all the ADB files you need:

./tools/android update sdk

Select “Update All” then “update”.

And next after you update your GUI, do:

cd /sdk/tools

./adb shell

to enter your Android phone’s shell.

For Ubuntu/Debian, you don’t have to install ADB drivers like Windows as they are recognized naturally by the operating system.

Happy Androiding!

Leave a Reply

Your email address will not be published.


Other interesting stuff at Zedomax.com: , , , ,


Related News and Resources