FORUMS
Remove All Ads from XDA

[HOW-TO] Set up SDK/ADB on Ubuntu 11.10 | 32 & 64 bits

2,825 posts
Thanks Meter: 1,414
 
By lavero.burgos, Senior Member on 16th March 2012, 09:47 PM
Post Reply Email Thread
Video-Tutorial:
[YOUTUBE]Ka7xvCU9Vxo[/YOUTUBE]
http://bit.ly/HzzmUn

Step 1. Install JDK

Open Terminal and enter the following command(s), then enter your ubuntu login password followed by ‘y’ when prompted for yes/no.

Code:
$ sudo apt-get update

$ sudo apt-get install openjdk-6-jdk
Step 2. Install 32 bit libraries - Only for 64 bit users

On x64 systems you are required to install some 32-bit libraries or the android toolkit will not work. In a terminal write:

Code:
$ sudo apt-get install ia32-libs
Step 3. Download and Install Android SDK

Download the Android SDK. Choose the one for linux: android-sdk_r16-linux.tgz

Extract android-sdk_r16-linux.tgz and put the folder in your desired location. I recommend to put it under home/username/ | When using the terminal the same path is described as ~/

Step 4. Choose packages to install

First of all go to ~/android-sdk-linux/tools/
Right clic to android >> Properties >> Permissions
Make sure "allow executing file as a program" it's checked



Once done close that window and doble click on the Android file, select Run in Terminal.
Download the tools as shown in the following picture:




Step 5. Check your device's permission

Now head over to the platform-tools directory

Code:
$ cd ~/android-sdk-linux/platform-tools
Check if you have permission for your device

Code:
$ ./adb devices
If you're getting the following, go on to Step 6.

Code:
List of devices attached

OR

List of devices attached
????????????    no permissions
If you're getting something like shown below or other random numbers with the word device next to it, congrats! You can now use ADB. Now go on to Step 7.

Code:
List of devices attached
0123456789ABCDEF    device
Step 6. Adding USB Vendor ID of your device

Open HOME folder and enable Show Hidden Files:



Open .android folder >> right click >> Create New Document >> Empty Document, name it adb_usb.ini and open it. Put the following on it:



Save & close the window

Then unplug your NT and plug it again (From the NT usb port, not PC). Now to check if it works...

Code:
$ ./adb devices
You should be getting something similar to the following line:

Code:
List of devices attached
0123456789ABCDEF    device
Congrats! Now you can use ADB in Ubuntu! Now hop on to Step 7!

Step 7. Create path for ADB

NOTE: while using adb on Linux you'll need to type ./adb to execute adb commands unless you create a path in ~/.bashrc. In a terminal write:

Code:
$ sudo gedit ~/.bashrc
Add the following line at the very end of the file. Once you're done, save and exit.

Code:
# Android tools
export PATH=~/android-sdk-linux/platform-tools:~/android-sdk-linux/tools:$PATH
Then in a Terminal run this command to reload your .bashrc:
Code:
source ~/.bashrc
Now you can just run adb without put ./ before every command.



~ Veronica
The Following 59 Users Say Thank You to lavero.burgos For This Useful Post: [ View ] Gift lavero.burgos Ad-Free
 
 
3rd April 2012, 01:00 PM |#2  
robertips's Avatar
Senior Member
Flag Torino
Thanks Meter: 72
 
More
great
thank you very much!!!
9th April 2012, 07:34 PM |#3  
Anon9mouz's Avatar
Senior Member
Flag Rineyville, KY
Thanks Meter: 756
 
Donate to Me
More
Can this help with porting and building from source

______________________________________________
Sent from my SPH-D710-EPIC-4G-TOUCH-using Tapatalk
9th April 2012, 08:59 PM |#4  
lavero.burgos's Avatar
OP Senior Member
Thanks Meter: 1,414
 
More
Quote:
Originally Posted by Anon9mouz

Can this help with porting and building from source

______________________________________________
Sent from my SPH-D710-EPIC-4G-TOUCH-using Tapatalk

this helps partly it just gives you the basics to make adb work but if you want to develop then you will need other tools, to setup ubuntu for development/theming then use this script.

~ Veronica
The Following User Says Thank You to lavero.burgos For This Useful Post: [ View ] Gift lavero.burgos Ad-Free
10th April 2012, 06:52 AM |#5  
Anon9mouz's Avatar
Senior Member
Flag Rineyville, KY
Thanks Meter: 756
 
Donate to Me
More
Quote:
Originally Posted by lavero.burgos

this helps partly it just gives you the basics to make adb work but if you want to develop then you will need other tools, to setup ubuntu for development/theming then use this script.

~ Veronica

O ok thanks ill check it out

______________________________________________
Sent from my SPH-D710-EPIC-4G-TOUCH-using Tapatalk
10th April 2012, 09:14 PM |#6  
lavero.burgos's Avatar
OP Senior Member
Thanks Meter: 1,414
 
More
Update april/10
Added Video-Tutorial

~ Veronica
The Following 2 Users Say Thank You to lavero.burgos For This Useful Post: [ View ] Gift lavero.burgos Ad-Free
17th April 2012, 03:32 AM |#7  
Junior Member
Thanks Meter: 3
 
More
Followed your video tutorial, but ubuntu adb still doesn`t see my device, while at the very same time it perfectly works under windows. The only step i missed is step 2, terminal is saying ia32-libs no candidate for installation(translating from russian, might be smth different)
PS: USB debugging is enabled in my nook settings dev
17th April 2012, 03:49 AM |#8  
lavero.burgos's Avatar
OP Senior Member
Thanks Meter: 1,414
 
More
Quote:
Originally Posted by Devol

Followed your video tutorial, but ubuntu adb still doesn`t see my device, while at the very same time it perfectly works under windows. The only step i missed is step 2, terminal is saying ia32-libs no candidate for installation(translating from russian, might be smth different)
PS: USB debugging is enabled in my nook settings dev

cd to the folder where adb is located and type:

$ sudo ./adb devices

~ Veronica
The Following User Says Thank You to lavero.burgos For This Useful Post: [ View ] Gift lavero.burgos Ad-Free
17th April 2012, 04:12 AM |#9  
Junior Member
Thanks Meter: 3
 
More
I followed your video, so i`ve tried sudo aswell...may be i can just go on with windows adb?
Actually i`ve tried it already, there are only 7 files for 8gb partitions, i`ve copied one of them to my 4th big sdcard partition, and tried to dd if...bla bla bla... = writes error: no space left on device
17th April 2012, 04:20 AM |#10  
lavero.burgos's Avatar
OP Senior Member
Thanks Meter: 1,414
 
More
Quote:
Originally Posted by Devol

I followed your video, so i`ve tried sudo aswell...may be i can just go on with windows adb?
Actually i`ve tried it already, there are only 7 files for 8gb partitions, i`ve copied one of them to my 4th big sdcard partition, and tried to dd if...bla bla bla... = writes error: no space left on device

hmm did you mount /sdcard in CWM? the cwm recovery by @meghd00t works now for 8GB NT... anyways that's ok you can copy it to /data instead of sdcard go one by one, i don't know what exactly you have done to your device but i recommend to just use the necessary partitions.

~ Veronica
The Following User Says Thank You to lavero.burgos For This Useful Post: [ View ] Gift lavero.burgos Ad-Free
17th April 2012, 04:26 AM |#11  
Junior Member
Thanks Meter: 3
 
More
No, i`m booting of cm7 sd card, used a file manager to go to internal emmc, looks like alot of files there...most 0kb, my mmc0p7 is in dev\block, but not copied fully, only around 208mb(full size is 300mb somthing)...file manager doesn`t allow to delete anything...
Post Reply Subscribe to Thread

Tags
adb, nook, sdk, tablet, ubuntu

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

Advanced Search
Display Modes