[Android Software/Hacking General [Developers Only]] Tahl:
Note: I'm not positive if this is the correct forum for this, but I believe due to the amount of ADB related posts in here that this is an acceptable place for this.

This is an auto-installer script that I wrote a couple of months ago and feel like it needs some more exposure to help out the Android community. It was written for Linux Mint 11 and has been tested on Ubuntu 11.04. The github version will likely work on other distributions that use the apt-get (for example, Ubuntu 10.04/10.10) system to retrieve packages.

Changelog:

1.0.4 (8/15/2011) - Added more vendor IDs to the installer.

1.0.3 (6/18/2011) - Setup 99-android.rules automatically, created a symlink for ddms so it can be executed from anywhere -- has to be typed twice sometimes the first time it is run for some reason (multiple displays error).

1.0.2 (6/17/2011) - ./android update adb wasn't launching properly. *Should* now. The script should end with Eclipse wanting you to install Android SDK Platform-tools.

1.0.1 (6/15/2011) - ./android update adb added to script. Eclipse interaction minimal.

1.0.0 (6/14/2011) - Android SDK, Android NDK, Eclipse, ia32-libs automatically installed. Eclipse and ADT require prompting.

What Will This Script do to my System?

64-bit operating systems will have ia32-libs installed on their system for compatibility reasons.

Eclipse will be installed and is most likely going to be installed under "Programming."

Android SDK will be installed to the /usr/local/android-sdk directory.

Android NDK will be installed to the /usr/local/android-ndk directory.

A symlink will be created for Dalvik Debug Monitor accesible with the command "ddms" from anywhere on your system. This command must be run twice the first time on some systems due to an error about multiple monitors.

Sets environment for the directory /usr/local/android-sdk/platform-tools so that the Android Debug Bridge can be accessed from anywhere with "adb" command.

Automatically creates a 99-android.rules file and places it into the /etc/udev/rules.d/ directory.

Easy Installation Instructions:

Download the 32-bit version here version 1.0.3

Download the 64-bit version here version 1.0.3

Download the 32-bit version here version 1.0.4

Download the 64-bit version here version 1.0.4

Ubuntu 11.04/Linux Mint 11(possibly others too) instructions: Download the appropriate version for your operating system and double click on it. When prompted, accept the licensing agreement.

Uninstall/Upgrade Instructions: To remove the Android SDK/NDK search for the application "andadb" in your software manager.

Outdated Method (If the .deb version doesn't work):

This version requires using my github script to install the program, but I keep it here just so people interested can see the code and go this method if they're interested. This method doesn't have an uninstaller though, so that is one downside.

Requirements in terminal before we start:

$ sudo apt-get install git-core git-doc git-gui

$ git clone git://gist.github.com/1026610.git gist-1026610
$ cd gist-1026610
$ chmod +x installer.sh
$ sudo ./installer.sh

[COLOR="red"]Go AFK for a really long time[/COLOR]
$ Install "Android SDK Platform-tools" and any other API that you want at this time and accept the licensing agreement. Close this window and the xwindow pop-up that reminds you to accept.
$ Type bash to restart terminal (or close/reopen terminal)

Done! (also testing it)

Test out that everything works. Type "adb" in terminal and you should hopefully see a list of commands. If not, restart all instances of terminal (or type bash in terminal). Next try typing "ddms" and see if it starts up. You'll most likey get an error and some spam. Type it one more time and it should work this time. I'm not sure how to make it work the first time for everyone, but it works the second time and I suppose that's good enough for now. Eclipse should be installed too and located in your program list and may be worth setting up at this point.

Enjoy your easier setup!