[Defy Android Development] makr8100:
I got it working on a troubled Atrix (same vnc error that seems common). I booted 1 line at a time and figured out some issues with bash, busybox, etc.

Atrix rooted with gingerbreak running gingerblur v4 rom

busybox WAS v1.10, and was missing both losetup and mount applets

Stericson's BusyBox Installer worked, but v1.18.4 wasn't being used and v1.10 still existed

using bash from http://xdaforums.com/showthread.php?t=537827

adb shell output with minimal comments:

sh-3.2$ su
sh-3.2# bash
bash: groups: command not found
bash: lesspipe: command not found
(weird errors?? bash works anyways)
root@localhost:/sdcard# cp /sdcard-ext/debian-img.zip /sdcard/debian/
(somehow during the initial setup process my phone got unrooted
running gingerbreak again wiped my internal sdcard
afterwards it won't mount on my computer, but external sd will
will have to fix later, but copy to ext, copy to int, done...)
root@localhost:/sdcard# cd debian
root@localhost:/sdcard/debian# ls
(ls instead of dir in the version of bash I'm using... grrr...)
share
debian-img.zip
root@localhost:/sdcard/debian# cd /
root@localhost:/# mount -o remount,rw -t yaffs2 /dev/block/mmcblk1p1 /system
(block device was slightly different name, but tab complete works on my bash :D)
root@localhost:/# export bin=/system/bin
root@localhost:/# export img=SDPATH/debian/debian.img
root@localhost:/# export mnt=/data/local/debian/
root@localhost:/# export PATH=$bin:/usr/bin:/usr/sbin:/bin:$PATH
root@localhost:/# export TERM=linux
root@localhost:/# export HOME=/root
root@localhost:/# busybox mknod /dev/block/loop5 b 7 0
mknod: /dev/block/loop5: File exists
(error wtf?!)
root@localhost:/# busybox losetup /dev/block/loop5 $img
losetup: applet not found
(:o not looking good)
root@localhost:/# busybox mount -t ext3 -o noatime,nodiratime /dev/block/loop5 $mnt
mount: applet not found
(zomg who left mount out of busybox?! o.O)
root@localhost:/# busybox
BusyBox v1.10.2 (2010-10-25 17:12:51 PDT) multi-call binary
(gingerblur uses bb v1.10.2?! you bastards!)

Usage: (...)

root@localhost:/# /system/xbin/busybox
BusyBox v1.18.4 (2011-03-20 15:16:04 CDT) multi-call binary.
(I have a 2nd busybox, but have to relocate it)
Copyright (C) 1998-2009 Erik Andersen, Rob Landley, Denys Vlasenko
and others. Licensed under GPLv2.
See source distribution for full notice.

root@localhost:/# rm /bin/busybox
root@localhost:/# ln -s /system/xbin/busybox /bin/busybox
root@localhost:/# busybox
BusyBox v1.18.4 (2011-03-20 15:16:04 CDT) multi-call binary.
(much better....)
Copyright (C) 1998-2009 Erik Andersen, Rob Landley, Denys Vlasenko
and others. Licensed under GPLv2.
See source distribution for full notice.

Usage: (...)

root@localhost:/# busybox mount -t ext3 -o loop,noatime,nodiratime $img $mnt
(found this suggestion, produced an error I can read :D)
mount: mounting SDPATH/debian/debian.img on /data/local/debian/ failed: No such file or directory
root@localhost:/# export img=/sdcard/debian/debian.img
root@localhost:/# busybox losetup /dev/block/loop5 $img
losetup: /dev/block/loop5
root@localhost:/# busybox mount -t ext3 -o noatime,nodiratime /dev/block/loop5 $mnt
mount: mounting /dev/block/loop5 on /data/local/debian/ failed: Invalid argument
root@localhost:/# busybox mount -t ext3 -o loop,noatime,nodiratime $img $mnt
(retry with new path settings and zomg something mounted)
root@localhost:/# busybox mount -t devpts devpts $mnt/dev/pts
root@localhost:/# busybox mount -t proc proc $mnt/proc
root@localhost:/# busybox mount -t sysfs sysfs $mnt/sys
root@localhost:/# busybox sysctl -w net.ipv4.ip_forward=1
net.ipv4.ip_forward = 1
root@localhost:/# echo "nameserver 8.8.8.8" > $mnt/etc/resolv.conf
root@localhost:/# echo "nameserver 8.8.4.4" >> $mnt/etc/resolv.conf
root@localhost:/# echo "127.0.0.1 localhost" > $mnt/etc/hosts
root@localhost:/# busybox mount --bind /sdcard $mnt/sdcard
root@localhost:/# busybox chroot $mnt /bin/bash
localhost:/# ps aux | grep vnc
Unknown HZ value! (68) Assume 100.
10125 19439 0.3 3.2 298352 27460 ? Sl 04:09 0:26 org.onaips.vnc <--not the right vnc
root 32550 0.0 0.0 1640 616 pts/4 S+ 06:34 0:00 grep vnc
localhost:/# export USER=root
localhost:/# rm -r /tmp
localhost:/# mkdir /tmp
localhost:/# vncserver -geometry 960x540 -depth 24
(atrix resolution :D)
xauth: creating new authority file /root/.Xauthority

New 'X' desktop is localhost:1

Starting applications specified in /root/.vnc/xstartup
Log file is /root/.vnc/localhost:1.log

After successfully running the CLI boot procedure above DebOnDroid apk "boot debian" button actually does something, but same vnc failure, and then instead of continually allowing me to "boot debian" it actually offers the ability to "quit debian", which seems to work, but still no way to actually get in. Seems like fixing busybox fixed 1/2 the problem.

Lastly, is there source to the .apk so I can poke at the scripts? Or are they located on the phone? Looks like we just need to clean it up a bit, but who knows how universal we can make it.... I'll probably break it for someone else D:

Addition: I think I used the wrong partition, didn't know much about partitioning to start and when I was done webtop wouldn't boot. I will not be attempting this again, but make sure to read up on partitioning before installing. I did get the separate Debian webtop hack installed so I'll be sticking with that. Replacing BusyBox may have actually been the culprit instead, because it's not inconceivable that stock BusyBox is required to boot webtop.