"well u can make gold card on the phone" <-- what do you mean?
I don't know Ubuntu that well but I would guess the command line is similar? [that really is a guess]
lol safest way is to dl ubuntu free from there web site and install it as a virtual instead of full install then follow the how to adb for ubuntu and install adb, sdk, eclipse and the plugins for both adb/sdk manager and eclipse and u r ready to go.
Here is a guide from :
http://www.lineardroid.co.uk/2010/04/how-to-set-up-adb-in-ubuntu/
9.10/10.04
From 9.10 onwards, eclipse is available in the Ubuntu repositories, which makes our job that bit easier.
Open a terminal and type
sudo apt-get install eclipse and if you are using Ubuntu 64bit sudo apt-get install ia32-libs
This will install eclipse as well as its dependencies, including Java Runtime Environment (JRE).
Now, open eclipse and go to “Help>Install New Software…” and click on “Add” near the top of the page.
Next Step
For Name and Location, type
Eclipse and
http://download.eclipse.org/releases/galileo/ and click OK.
This makes dependencies available for the installation of the Android Development Tools (you do not need to install anything from here, you just need it in the list for the next part to work).
Next, go to “Add” again and for Name and Location, type
Android and
http://dl-ssl.google.com/android/eclipse/
Developer Tools will now be available. Tick the box and click “Next”. On the next page, select all available packages, click “Next” and wait for it to download and install everything, click “Finish” and restart eclipse.
Now, we need to download the SDK and tell eclipse where to find it.
Go to
http://developer.android.com/sdk/download.html?v=android-sdk_r05-linux_86.tgz and download the file. Once the download is complete, extract the archive and rename the folder “AndroidSDK” and move it to your home folder.
Download fastboot from
http://android-dls.com/files/linux/fastboot and move it to ~/AndroidSDK/tools/
Open a terminal and type chmod a+x ~/AndroidSDK/tools/* to make ADB, DDMS and Fastboot executable.
Next, go back to eclipse and go to “Window>Preferences” and select “Android” from the left hand side. Under SDK Location, browse to you SDK folder (/home/name/AndroidSDK) and apply the changes.
Now, go to “Window>Android SDK and AVD Manager” and go to “Available Packages” on the left hand side. In the middle, expand the repository (if it is unavailable, got to “Add Site…” and enter
http://dl-ssl.google.com/android/repository/repository.xml) and tick all available boxes. This will install all SDK components for android versions (highly recommended).
ADB, Fastboot and DDMS
Lastly, we need to make the device available to normal users as opposed to only root users AND available from the terminal without having to navigate to the tools folder.
Open the terminal, and type gedit .basrc (replace gedit with your favourite text editor) and at the top of the file, paste this (replacing
ross with
your username)
#AndroidDev PATH
export PATH=${PATH}:/home/ross/AndroidSDK/tools
This will make ADB, Fastboot and DDMS available from the terminal on next login.
Now, to make the device available to normal users, open a terminal and type
sudo gedit /etc/udev/rules.d/51-android.rules (replacing gedit with your favourite text editor)
Then paste
SUBSYSTEM==”usb”, SYSFS{idVendor}==”0bb4″, MODE=”0666″
Save and exit.
Ensure that the rules are executable:
sudo chmod a+rx /etc/udev/rules.d/*
Then type sudo /etc/init.d/udev restart if you are using Karmic or
sudo restart udev if you are using Lucid
Congratulations, you can now use ADB, Fastboot, DDMS and eclipse with your Android device.
Note: idVendor may vary. Use lsusb from the terminal, look for your Android device and replace “0bb4″ with the first 4 characters after “ID”.
Thanks to wddglr for his excellent guide on setting up ADB