FORUMS

[How to]? ADB on Ubuntu 10.10?

499 posts
Thanks Meter: 47
 
By t0ph0id, Senior Member on 26th October 2010, 07:20 PM
Post Reply Email Thread
Can someone provide a step-by-step guide to installing ADB on Ubunto 10.10 for a beginner please?

Thanks
24th November 2010, 05:46 AM |#2  
blas4me's Avatar
Senior Member
Flag Brooklyn, NY
Thanks Meter: 135
 
More
Thumbs up Still need help
Quote:
Originally Posted by t0ph0id

Can someone provide a step-by-step guide to installing ADB on Ubunto 10.10 for a beginner please?

Thanks

It's been awhile since you posted, do you still need help. I have a simple method, let me know and I will make you instructions. It wouldn't be a problem.
Attached Thumbnails
Click image for larger version

Name:	Terminal.jpg
Views:	174
Size:	17.1 KB
ID:	1242229  
24th November 2010, 07:00 AM |#3  
Member
Flag Lawrence, KS
Thanks Meter: 8
 
More
Quote:
Originally Posted by blas4me

It's been awhile since you posted, do you still need help. I have a simple method, let me know and I will make you instructions. It wouldn't be a problem.

I would love a quick step-by-step. Been trying to figure this out but failing. Hard.
24th November 2010, 08:36 AM |#4  
blas4me's Avatar
Senior Member
Flag Brooklyn, NY
Thanks Meter: 135
 
More
ADB & FASTBOOT Help: Updated 6/6/12
WORKS FOR x86 VERSION OF 12.04 - 12.10 TO MAKE IT WORK FOR x64 FOLLOW LINK BELOW, THEN COME BACK HERE AND FINISH SETUP. I ALSO ADDED A VIDEO, CHECK IT OUT

1. You must have java installed before you start set up.

http://askubuntu.com/questions/13120...buntu-12-04-64

I know if your new the other instructions can be confusing, so I kinda know what you guys are looking for, just a basic breakdown, I remember when I started playing around with 9.04, the adb setup had me stuck, Ubuntu used to frustrate me, because I didn't understand Unix based systems, but you catch on, especially if your a android user.

JUST A TIP: I make my SDK folder androidsdk, for simplicity and that's how I learned to install. so I'm just showing you the way I learned. I have rooted over 20 different Android devices, and I've installed this method on multiple Linux distros without a problem. For those of you that are new to Linux, know that Linux is hardwired for Andorid devices, same kernal and all, and that's why it's wise to do all things Android on Linux machines, I try to anyway

RECENT CHANGES TO SDK: updated 11/1/12: Just installed on Ubuntu 12.10, and the Linux adb installer is no longer needed, when I ran adb command after copying SDK to my /usr/local/ directory, my device showed up. Some resent changes to the SDK, also changed the way you set up, but not very much. The SDK provides all the files you need to set up, including fastboot.

NOTE: Once you've finished the setup, know that you push & pull right from your home folder, no need to put things in the tools folder like Windows, same thing when you pull, look for the files in the home folder.

1. Go here for the latest SDK
http://developer.android.com/sdk/index.html
(once download, double tap and extract right to home folder, rename to androidsdk)
a. Make android file executable

2. Open teminal.
a. Navigate to your SDK directory
Code:
cd /home/username/androidsdk/tools
you should get [ $ ] at the end of your path.

b. Type
Code:
./android
your SDK Manager should start.

ADVICE: I suggest you only download tools and platform-tools to make the setup quick, you can go back later and install what you need

NOTE: For development purposes you need a copy of ADB & Fastboot in your tools folder, Eclipse looks for ADB in the folder, so if you plan on developing, then you'll need those files there.

3. Open home folder, press ctrl & H to show hidden files, find bashrc
a. Paste in terminal from your document after you input your user name:
Code:
#AndroidDev PATH
export PATH=${PATH}:/androidsdk/tools 
export PATH=${PATH}:/androidsdk/platform-tools
export PATH=${PATH}:/home/*********/androidsdk/tools
export PATH=${PATH}:/home/*********/androidsdk/platform-tools
4. Paste in terminal from your document after you input your user name:
Code:
export PATH=$PATH:/androidsdk/tools
export PATH=$PATH:/androidsdk/platform-tools
export PATH=$PATH:/home/*********/androidsdk/tools
export PATH=$PATH:/home/*********/androidsdk/platform-tools
NOTE: For this part you'll need your devices id, here's a list, if your devices id isn't here, use code below.

Acer 0502
ASUS 0b05
Dell 413c
Foxconn 0489
Fujitsu 04c5
Fujitsu Toshiba 04c5
Garmin-Asus 091e
Google 18d1
Hisense 109b
HTC 0bb4
Huawei 12d1
K-Touch 24e3
KT Tech 2116
Kyocera 0482
Lenovo 17ef
LG 1004
Motorola 22b8
NEC 0409
Nook 2080
Nvidia 0955
OTGV 2257
Pantech 10a9
Pegatron 1d4d
Philips 0471
PMC-Sierra 04da
Qualcomm 05c6
SK Telesys 1f53
Samsung 04e8
Sharp 04dd
Sony 054c
Sony Ericsson 0fce
Teleepoch 2340
Toshiba 0930
ZTE 19d2

In terminal type:
Code:
lsusb
and that will give a list of all USB devices attached to your machine.

a. In terminal, type:
Code:
gksudo gedit /etc/udev/rules.d/51-android.rules
b. Add these lines, put your device ID between quotations, then save
Code:
SUBSYSTEM=="usb", ATTRS{idVendor}=="HERE", SYMLINK+="android_adb", MODE="0666"
SUBSYSTEM=="usb", ATTRS{idVendor}=="HERE", SYMLINK+="android_adb", MODE="0666"
c. In terminal type:
Code:
sudo restart udev
5. Download the Linux ADB installer zip, extract to your home folder, make script executable and to run with auto prompt (plug your phone in if it isn't already) then just double click and choose run, then let it do it's thing Takes a second, and it should ask for permissions = user password

NOTE: When you run nautilus your going into file system directory as root, so proceed with caution, and back up any file you plan on editing. Installing SDK doesn't make a folder in /usr/local/ any more, so you'll have to copy SDK to that directory as root.

6. Open terminal, type:
Code:
sudo nautilus
a. Go to :File system /usr/local
b. Copy and paste a copy of your SDK folder there
c. Close root session
d. Close terminal

7. Open terminal, type:
Code:
adb devices
you should see your device, then type fastboot devices it should just go to the next line, you have to be in fastboot to see your device
Now you should have ADB & Fastboot on your beautiful Ubuntu machine!!!!!!!!!!

With narration

http://www.youtube.com/watch?v=HsCd1nMywR8&hd=1

Without

http://www.youtube.com/watch?v=IGAiHkPuhg8


Extra goodie (Aero Snap Windows.) Extract and follow intructions. Enjoy!!!!!!!!!

TIP: For trigger delay, the lower you set it the faster your widows will resize, and I have mine set for left & right edge. Having it set @ right & left is a headache because every time your pointer touches left or right side of the screen , widows resize. So, having them set to the edges works for me.
Attached Thumbnails
Click image for larger version

Name:	MyDesktop.jpg
Views:	127
Size:	27.4 KB
ID:	1242220  
Attached Files
File Type: zip LINUX_SDK_ADB_INSTALLER.zip - [Click for QR Code] (16.1 KB, 805 views)
File Type: zip Aero Windows.zip - [Click for QR Code] (844 Bytes, 106 views)
File Type: zip fastboot.zip - [Click for QR Code] (63.4 KB, 116 views)
The Following 7 Users Say Thank You to blas4me For This Useful Post: [ View ] Gift blas4me Ad-Free
1st December 2010, 03:55 AM |#5  
Junior Member
Thanks Meter: 0
 
More
Just wanted to say thanks, awesome post.
1st December 2010, 06:40 AM |#6  
blas4me's Avatar
Senior Member
Flag Brooklyn, NY
Thanks Meter: 135
 
More
Thanks
Quote:
Originally Posted by star.gazer

Just wanted to say thanks, awesome post.

I've been waiting to hear feedback, was it a simple process.
1st December 2010, 01:08 PM |#7  
Senior Member
Thanks Meter: 78
 
More
I see two problems at first glance with the instructions above:

1. This will only work with two brands, the one
Quote:

SUBSYSTEM=="usb", ATTRS{idVendor}=="0bb4", SYMLINK+="android_adb", MODE="0666"

being HTC ("0bb4"), the other
Quote:

SUBSYSTEM=="usb", ATTRS{idVendor}=="18d1", SYMLINK+="android_adb", MODE="0666"

not known to me. For a list of other vendors, have a look at http://developer.android.com/guide/d...ng/device.html .

2. You're mixing up adb-related instructions with instructions to change Ubuntu's UI, which is totally unrelated. This "Extra goodie (Aero Snap Windows.)" is neither needed for the task in question nor is it asked for by many Linux users (like me). Also, I wouldn't recommend -- at least not to an average user -- to bypass Ubuntu's package management in order to get some visual sugar. Bypassing might conflict with further updates and lead to a situation where thorough knowledge is required.


As a simple, efficient and painless way I recommend the app adbWireless. No need to install anything but the SDK (downloaded from developer.android.com and only from there) and the app. Then start adb and the app and give the command line provided by the app's display, and you're connected without any messing around with udev and permissions.
1st December 2010, 04:11 PM |#8  
blas4me's Avatar
Senior Member
Flag Brooklyn, NY
Thanks Meter: 135
 
More
Who are you!!!!!!!!!
[QUOTE=mizch;9521406]I see two problems at first glance with the instructions above:

1. This will only work with two brands, the one being HTC ("0bb4"), the other not known to me. For a list of other vendors, have a look at http://developer.android.com/guide/d...ng/device.html .

2. You're mixing up adb-related instructions with instructions to change Ubuntu's UI, which is totally unrelated. This "Extra goodie (Aero Snap Windows.)" is neither needed for the task in question nor is it asked for by many Linux users (like me). Also, I wouldn't recommend -- at least not to an average user -- to bypass Ubuntu's package management in order to get some visual sugar. Bypassing might conflict with further updates and lead to a situation where thorough knowledge is required.


As a simple, efficient and painless way I recommend the app adbWireless. No need to install anything but the SDK (downloaded from developer.android.com and only from there) and the app. Then start adb and the app and give the command line provided by the app's display, and you're connected without any messing around with udev and permissions.[/QUOTE/]

The other number is the new HTC id, for those who have other android devices, I included the auto script. I've been waiting for someone like you to come along, "a mister know it all", but it's kool. Just to let you know I got Aero Windows from OMGubuntu. I still get updates. as I'm typing my Update Manaer just notified me, that there are updates for me. Obviously your not familiar with setting up ADB&Fastboot on Ubuntu. And you should be smart enough to see that the instructions are just for ADB&Fastboot setup. The instructions for Aero are inside the zip. I put everything here instead of starting a new post, duh, how many members have you helped on this forum. Don't try to confuse other members, with your babble. Next time don't just glance read, read, read, Maybe you just need a friend Two words for you " Open Source "
1st December 2010, 04:37 PM |#9  
Senior Member
Thanks Meter: 78
 
More
Quote:

I've been waiting for someone like you to come along, "a mister know it all", but it's kool.

Hope you feel better now.
The Following User Says Thank You to mizch For This Useful Post: [ View ] Gift mizch Ad-Free
2nd December 2010, 10:50 PM |#10  
Junior Member
Thanks Meter: 0
 
More
Smile
Just a quick post to say thanks.

Easy to follow and got me working on flashing my radio from my new 10.10 installation.
8th December 2010, 08:02 PM |#11  
blas4me's Avatar
Senior Member
Flag Brooklyn, NY
Thanks Meter: 135
 
More
Quote:
Originally Posted by nategs

Just a quick post to say thanks.

Easy to follow and got me working on flashing my radio from my new 10.10 installation.

Thanks for the feedback.
Post Reply Subscribe to Thread

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes