[Droid 2 Android Development] darkonion:
Try the 1-2-3 Root for Linux here:

http://xdaforums.com/showthread.php?t=782344

Instructions for Rooting Droid 2 and Droid X using Linux (Ubuntu)

This method is good for 2.2.19 and 2.2.20!

The fine print: This method is unconfirmed. It is a general idea. If you **** up your phone, you **** up your phone. I'd recommend that you copy and paste commands into the command window instead of copying letter for letter. That is highlight here, Edit/Copy, and in the terminal, Right-click and paste. Please read and reference back to post #164 for more info. More fine print can be found on post #164.

Commands that go into the terminal are in BOLD.

The procedure:

1. Download the Linux version of Android SDK/ADB, and extract it to your home/owner directory.

It should look something like this: owner@ubuntu/android-sdk-linux_x86.

You can find it here, download Linux version:

http://developer.android.com/sdk/index.html

2. Download the Droid2Root.rar. You will need a RAR program to open the archive. Extract the four files, Superuser.apk, su, busybox, and rageagainstthecage-arm5.bin, to the

tools

folder in

android-sdk-linux_x86

.

3. Download

OpenJava

if you haven't already. You need this to open the ADB/SDK update program. Go to applications in the top left of the screen, choose Ubuntu Software Center, and search

java

, and install

OpenJDK Java 6 Runtime

.

4. Open a terminal. Top left of screen, Applications, Accessories, Terminal

5. Navigate to the tools folder in the android-sdk folder.

cd android-sdk-linux_x86/tools

6. Update ADB by entering:

./android update sdk

7. A graphical user interface will open, update the 2.2 package, and skip all the other prior versions packages. Once done, close the user interface.

8. Check that your device is in PC Mode, USB debugging enabled, and is plugged into your computer.

- Make sure you have USB degugging (enabled on your phone.)

[On your phone, this is under Settings->Applications->Development, check USB debugging]

- Change connection to PC Mode

[When you plug your phone into your computer with USB, there should be a notice in the “window blind.” Select the USB connection detected and choose PC Mode. Phone should disconnect from the computer and reconnect again.]

9. Now to check for connectivity of the phone. In the terminal, type:

./adb devices

You should see a device listed.

10. [These next 4 steps, after entering each one, you'll see an amount of data transferred.]

./adb push Superuser.apk /sdcard/Superuser.apk

./adb push su /sdcard/su

./adb push busybox /sdcard/busybox

./adb push rageagainstthecage-arm5.bin /data/local/tmp/rageagainstthecage-arm5.bin

11. ./adb shell

[The command prompt should now start with a $.]

12. cd data/local/tmp

<('.'<) [Ignore Kirby]

[after typing in this next command, it won't really say anything, it'll just spit back out your command. This is normal.

ex.

$ cd data/local/tmp

cd data/local/tmp

It will be like this for the cd command and the chmod(next) command.]

13. chmod 0755 rageagainstthecage-arm5.bin

<('.'<) [Ignore Kirby]

14. ./rageagainstthecage-arm5.bin

[Type this exactly like it is.] <('.'<) [Ignore Kirby]

- let the process run until it 'kicks' you out (may take a minute or two)

[This actually took me awhile before the program kicked me out. Go do something productive for 5 minutes then come back. I actually washed dishes and cleaned up my room while I waited. You'll know when it is done when you it'll kick you back to the DOS command. It'll look something like this:

owner@ubuntu:~/android-sdk-linux/tools$

added: I've heard from many others that this can take a few minutes, 5 minutes, or 10 minutes, or a little longer. Use your best judgment.

doomedromance suggests that you do not do anything after pressing enter. If you touch anything, the process will take longer.

http://xdaforums.com/show...&postcount=262

If you think it is taking longer than it should, do this.

With the $ still showing while in the shell, exit out of the shell. Type exit and press enter. It'll throw you back to Linux command line.. Might even try exiting out of the terminal and reopening it. Whatever it make be, make sure you are back in the tools folder.

ex. owner@ubuntu:~/android-sdk-linux_x86/tools$

Go ahead and run shell and following 3 command again. Those are the ones marked with Kirby! <('.'<) ]

15. ./adb devices (to verify the connection)

16. ./adb shell (you should now have a # prompt, if not return to ./rage step above)

[All these next steps, make sure you type them as is here. The command line prompt is now # like stated in the step above. The commands will act like the “$” commands above where you enter it, and it'll spit you the command back out.]

17. mount -o rw,remount -t ext3 /dev/block/mmcblk1p21 /system

18. cp /sdcard/Superuser.apk /system/app/Superuser.apk

19. cp /sdcard/su /system/bin/su

20. cp /sdcard/busybox /system/bin/busybox

21. chmod 4755 /system/bin/su

22. chmod 4755 /system/bin/busybox

23. mount -o ro,remount -t ext3 /dev/block/mmcblk1p21 /system

24. exit [This one will exit you out of adb.]

25. exit [This one will exit you out of the terminal]

That's it, pretty easy!

Like my work/notes/other tutorials? Send me a few dollars. All donations are greatly appreciated regardless of amount! Paypal: darkonion@kimete.com