[Atrix 4G Android Development] itechnoguy:
[Project dormant unless someone else picks it up]

NOTE: This is a chroot for the Webtop, not the Android+VNC chroot method.

Hi everyone, this is my first guide (I'm not sure I can call it that yet, or if this is in the right section) so bear with me.

I tried the Debian chroot guide (http://xdaforums.com/showthread.php?t=1093790), and I really liked the idea, but I had too many apt-get issues and it often crashed my Webtop, so I tried building my own Ubuntu Lucid chroot using rootstock, but internet didn't work.

I later saw this: http://xdaforums.com/showthread.php?t=1184161, but the links were dead and the scripts it referenced were out of date. I'll sort of combine the two guides here since Backtrack actually works surprisingly well.

Just on a side note though, I haven't fully tested the Backtrack tools, but the only thing I haven't found to work are the wireless tools.

Let's start!

Required:

-Rooted Atrix (with Blur based ROM)

-LXTerminal installed on Webtop

-Enough free space (around 4 GB just for room)

-7-Zip

-Some Linux/Unix distro native or in a VM

1. Install the easy-signed.zip from the Debian chroot guide:

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

but the other files aren't needed.

Make a folder called WebTopMOD (case-sensitive) on either external or internal memory for later.

2. Look here for reference: http://xdaforums.com/showthread.php?t=1184161, but the links are dead. Active links are here:

Part 1: http://www.mediafire.com/?x9cgxzdx84vc6uj

Part 2: http://www.mediafire.com/?xaoidipkg1o7vgo

Part 3: http://www.mediafire.com/?po3nznbxgvdipur

Use 7-Zip to uncompress the three files (called bt.7z.001,002,003) and you'll get a bt.img.

Full bt.img in a zip:

DL from Mega or from Google Drive

3. The image isn't usable in this state yet, since the image is formatted with ext2, and we need ext3.

Copy the image over to your Linux VM or computer on a easy-to-find directory, and open up a Terminal window (usually CTRL+ALT+T).

In Terminal, type this in:

cd <directory where you put bt.img>
mkdir tmp tmpbt
sudo mount -o loop bt.img tmpbt
dd if=/dev/zero of=linuxdisk count=0 bs=1MB seek=4096 (This is the size of the chroot image you want, in MB)
mkfs.ext3 linuxdisk (just type y when it asks)
sudo mount -o loop linuxdisk tmp
sudo cp -rf tmpbt/* tmp
sudo umount tmp
sudo umount tmpbt

[Sorry, made a mistake twice] Copy the newly made linuxdisk file to a directory named WebTopMOD on your internal memory or sdcard-ext (folder and file names are case-sensitive).

4. Start Webtop, then open LXTerminal, then start the chroot by typing in:

/usr/sbin/linux

and after it loads for a bit, you'll get an xterm window with the shell for Backtrack!

If you want to quit the Gnome session, closing xterm doesn't work, since by issuing the commands to kill the webtop processes, it also kills the webtop window manager, and if you do close it there's some kind of weird glitch with a small popup window constantly disappearing and reappearing. (It'll be a WIP for now I guess, the only full solution is to reboot your Atrix). It seems to have to do with the way the linux command mounts the chroot disk under loop50, I'll try and make something to fix this later.

-----------------Extras moved below-----------------------

Pictures:

Chromium Running

BT Desktop (Gnome)

BT Desktop with AIW

THANKS TO:

k.taylor89 for the original Backtop Method

SystemR89 for the Debian chroot and scripts to make this work

The original developers of the Backtop chroot image

And any others I may have forgotten!