[MOD] Full Linux (Debian) inside WebTop! v0.2.7 [2012/01/18] [11.30 GMT+2:00]

Search This thread

SystemR89

Senior Member
Sep 4, 2006
149
171
<<Sydney>>
michele.porelli.eu
[size=+4]Take back WebTop![/size]​

Use anythings you can imagine! LibreOffice, Java, Firefox 4, ecc...


[size=+2]WHAT THIS MOD DOES:[/size]
Installing WebTopMOD your awm dock will be populated with 3 new icons: leafpad, lxterminal and a penguin.
Leafpad and lxterminal works inside WebTop but clicking on the penguin you get a Debian menu chrooted http://en.wikipedia.org/wiki/Chroot in a Debian enviroment. In xterm you can use synaptic and apt-get to install anything in this new enviroment.
For example I need gimp:
Code:
# apt-get update //refresh packages list from internet
# apt-get install gimp
# gimp //
Clicking another time on the penguin open another xterm IN THE SAME ENVIROMENT so I can start another program
Code:
# oo-writer //openoffice writer

NOTE: Debian disk contain a Debian stable (squeeze) release, some software could be "outdated", if you would live on the edge change stable to unstable in /etc/apt/sources.list IN CHROOT ENVIRONMENT. DO NOT TRY TO CHANGE REPOSITORY IN ORIGINAL WEBTOP ROOT
Look here (http://www.debian.org/releases/) to understand what differ between Debian branches
For example LibreOffice is not yet in stable branch, so you can install OpenOffice or switch repo to testing or unstable
Firefox is renamed Iceweasel and the latest version in unstable is 3.5 and from experimental 4.0.

REMEMBER THAT 0.x VERSION MEAN THAT THIS SOFTWARE CAN BE BUGGED AND I CONSIDER IT IN ALPHA TESTING

[size=+2]PREREQUISITES:[/size]
- A rooted Atrix
- At least 2GB free in internal memory (could be more or less with the customized installation)
- A little bit terminal knowledge and willpower
- Brain
- Liquorice mojito

[size=+2]INSTALLATION:[/size]
[size=+1][1st way - EASY METHOD][/size]
Prerequisite for this method is:
On your phone: CWM installed

0) Download Debian disk - http://droid.makrit.net/WebTopMOD/WebTopMOD-20110707.7z
1) Unpack in your internal or external storage (path should be /sdcard(-ext)/WebTopMOD/linuxdisk)
Please don't use "adb push" it corrupt big files
2) Download easy-signed.zip - http://www.multiupload.com/C5GEIHDEM0, MIRROR
3) Install using CWM, reboot and enter in WebTop!

Uninstaller for version >=0.2.7 http://www.multiupload.com/18H5OHND90, MIRROR
Uninstaller for version <= 0.2.2 http://www.multiupload.com/W37DT6HJ7X
Uninstaller for version 0.2.1 http://www.multiupload.com/TO6W9X7CBU
Uninstaller for version >= 0.2 http://www.multiupload.com/GLKUZA2KP9

[size=+1][2nd way - CUSTOM METHOD][/size]
Temporary deprecated
Code:
Prerequisite for this method is:
On your computer: have a Debian installation or a Debian live cd or download this file ([url]http://www.multiupload.com/403F0OQEDA[/url] -> 2GB disk in 66MB), unpack it and skip to step 8
On your phone: install a "complete" busybox thought any free market apps and be connected to internet with a wireless network.

[b][On your phone][/b]
0) Start WebTop and leave it opened

[b][On your computer][/b]
1) Create a file with the dimensions that fit your needs using dd (I used this command to create the 2GB file: dd bs=1024 count=1 seek=$((1024*1024*2-1)) if=/dev/zero of=debian)
2) Format the new "disk" using ext3 (mkfs.ext3 debian)
3) Create a folder to mount the disk (mkdir temp)
4) Mount the disk (sudo mount -t ext3 -o loop debian temp)
5) Debootstrap! (sudo debootstrap --foreign --arch armel stable temp [url]http://ftp.debian.org/debian[/url])
6) Wait...
7) Unmount disk (sudo umount temp) and remove temp directory (rmdir temp)
8) Copy debian in your internal storage inside a folder called "DEBIAN" (uppercase without quotes)

[b][On your computer if you are using adb (recommended) or on your phone using terminal emulator, connectbot, ecc)][/b]
9) Open a terminal and type:
Get superuser permissions
[code]
# su
edit sudoers
Code:
# vi /etc/sudoers
You should add "%admin ALL=NOPASSWD: ALL" after the line containing "%admin ALL=(ALL) ALL". You can try typing this:
Please note that if you are using a terminal emulator on your phone escape is bad interpreted by Android using a physical keyboard, you have to send the escape key in another way.
Code:
GkyyPjwwwld3wi
NOPASSWD: [with a space]
[Escape]
:wq!
Now we enter in a more complete and privileged bash
Code:
# /usr/bin/sudo -H -u adas bash
Enable AWM to launch anything
Search→Go To… line 1317
Take this line:
use_profile 3
and turn it into:
use_profile 2
Code:
sudo leafpad /etc/tomoyo/domain_policy.conf
Now you can add any launcher to your AWM, look in easy-signed.zip (/usr/share/applications and /home/michele/easy/home/adas/.gconf/apps/avant-window-navigator)
Mount debian disk:
Code:
# cd /sdcard/DEBIAN 
# mkdir root
# sudo mount -t ext3 -o loop=/dev/block/loop7 debian root
Debootstrap! (second stage)
Code:
# sudo chroot root /debootstrap/debootstrap --second-stage
Disable X ACL (in WebTop)
Code:
# export DISPLAY=:0
# xhost +
Enter in the new system
Code:
# sudo cp /etc/hosts /sdcard/DEBIAN/root/etc/hosts
# sudo cp /etc/fstab /sdcard/DEBIAN/root/etc/fstab
# sudo cp /etc/resolv.conf /sdcard/DEBIAN/root/etc/resolv.conf
# sudo mount -o bind /proc /sdcard/DEBIAN/root/proc
# sudo mount -o bind /dev /sdcard/DEBIAN/root/dev
# sudo mount -o bind /dev/pts /sdcard/DEBIAN/root/dev/pts
# sudo mount -o bind /dev/shm /sdcard/DEBIAN/root/dev/shm
# sudo mount -o bind /sys /sdcard/DEBIAN/root/sys
# sudo mount -o bind /var/run/dbus/ /sdcard/DEBIAN/root/var/run/dbus/
# sudo chroot /sdcard/DEBIAN/root /bin/bash
Export X display (in chroot)
Code:
# export DISPLAY=:0
Add Debian main repository
Code:
# echo "deb http://ftp.debian.org/debian/ stable main non-free contrib" > /etc/apt/sources.list
Finish debian installation
Code:
# apt-get update ; apt-get install dbus dialog locales
Configure your locale
Code:
# dpkg-reconfigure locales
Install xterm
Code:
# apt-get install xterm
Run xterm!
Code:
# xterm
Now you can install anything simply using "apt-get install PROGRAM_NAME" or installing synaptic
Before unplug HDMI cable you should exit form chroot environment and unmount the chroot:
Code:
# exit
# sudo umount /sdcard/DEBIAN/root/proc
# sudo umount /sdcard/DEBIAN/root/dev
# sudo umount /sdcard/DEBIAN/root/dev/pts
# sudo umount /sdcard/DEBIAN/root/dev/shm
# sudo umount /sdcard/DEBIAN/root/sys
# sudo umount /sdcard/DEBIAN/root/var/run/dbus
# sudo umount /sdcard/DEBIAN/root

[size=+2]USE:[/size] (ONLY FOR CUSTOM METHOD)
[On your computer if you are using adb or on your phone using terminal emulator, connectbot, ecc)]
9) Open a terminal and type:
Get superuser permissions
Code:
# su
Now we enter in a more complete and privileged bash
Code:
# /usr/bin/sudo -H -u adas bash
Mount debian disk:
Code:
# cd /sdcard/DEBIAN
# sudo mount -t ext3 -o loop=/dev/block/loop7 debian root
Disable X ACL (in WebTop)
Code:
# export DISPLAY=:0
# xhost +
Enter in the new system
Code:
# sudo cp /etc/hosts /sdcard/DEBIAN/root/etc/hosts
# sudo cp /etc/fstab /sdcard/DEBIAN/root/etc/fstab
# sudo cp /etc/resolv.conf /sdcard/DEBIAN/root/etc/resolv.conf
# sudo mount -o bind /proc /sdcard/DEBIAN/root/proc
# sudo mount -o bind /dev /sdcard/DEBIAN/root/dev
# sudo mount -o bind /dev/pts /sdcard/DEBIAN/root/dev/pts
# sudo mount -o bind /dev/shm /sdcard/DEBIAN/root/dev/shm
# sudo mount -o bind /sys /sdcard/DEBIAN/root/sys
# sudo chroot /sdcard/DEBIAN/root /bin/bash
Export X display (in chroot)
Code:
# export DISPLAY=:0
Run xterm!
Code:
# xterm
Before unplug HDMI cable you should exit form chroot environment and unmount the chroot:
Code:
# exit
# sudo umount /sdcard/DEBIAN/root/proc
# sudo umount /sdcard/DEBIAN/root/dev
# sudo umount /sdcard/DEBIAN/root/dev/pts
# sudo umount /sdcard/DEBIAN/root/dev/shm
# sudo umount /sdcard/DEBIAN/root/sys
# sudo umount /sdcard/DEBIAN/root
[/code]

[size=+2]THANKS TO:[/size]
Sogarth - for http://xdaforums.com/showthread.php?t=983208
kennethpenn - for motoblur remove tool! many many thanks!
Chainfire - for Gingerbreak
makr8100 - for http://droid.makrit.net/ mirror
and many other users that works actively to hack this phone!

[size=+2]NOTE:[/size]
- exporting library you can start a lot of programs without starting chroot (obviously mounting the loop device), for example you can use xterm inside WebTop launching
Code:
# LD_LIBRARY_PATH=.:/sdcard/DEBIAN/root/usr/lib /sdcard/DEBIAN/root/usr/bin/xterm
- you can use sd-card replacing /sdcard/DEBIAN to /sdcard-ext/DEBIAN

If you would like to support my work click the this droid :)


[size=+2]MANY THANKS FOR CONTRIBUTOR:[/size]
Francisco Bravo
Robert Johnson
 
Last edited:

SystemR89

Senior Member
Sep 4, 2006
149
171
<<Sydney>>
michele.porelli.eu
[size=+2]CHANGELOG:[/size]
v0.2.7 [2012/01/18] [11.30 GMT+2:00]
easy-signed: http://www.multiupload.com/C5GEIHDEM0
uninstaller: http://www.multiupload.com/18H5OHND90
EASY:
- Disabled Tomoyo (no more firefox issues between different webtop versions)
- New uninstaller

v0.2.6 [2011/07/07] [14.15 GMT+2:00]
Debian disk: http://droid.makrit.net/WebTopMOD/WebTopMOD-20110707.7z
easy-signed: http://droid.makrit.net/software/atrix/easy_v0.2.6.zip-signed.zip
EASY:
- binded in chroot tmp folders
- correct typo in missing disk message
- changed umount function (should works fine now!)
- added linuxdisk check (0 size, is a file)
- 2.3.4 compatibility
- cleaned mount function
LINUXDISK:
- added pdmenu and menu
- added device etc mountpoint in /mnt/DEVICE/etc
- dynamic change of resolv.conf (thanks to krkeegan)
- linuxdisk now is ~4gb (4095MB)
- added device etc mountpoint in /mnt/DEVICE/usr
- added plugins folder symlink to use flash player or other plugins between browser (inside and outside chroot) (FLASH DOESN'T WORK YET)

v0.2.5.1b [2011/07/07] [10.15 GMT+2:00]
Debian disk: unmodified
easy-signed: http://www.multiupload.com/ZAPZW2XX45
EASY:
- removed firmware check
- using a newer version of update-binary

v0.2.5 [2011/05/27] [9.30 GMT+2:00]
Debian disk: unmodified
easy-signed: http://www.multiupload.com/F68D73KF26
EASY:
- fixed unmount function
- removed motorola links
- fixed leafpad icon

v0.2.4 [2011/05/26] [20.30 GMT+2:00]
Debian disk: unmodified
easy-signed: http://www.multiupload.com/VI4JEFWLI6
EASY:
- corrected calls to loopdevice function (thanks Cryofix)
- check awm folders existence and fully reset permissions
- set different permissions to linux script, xmessage, lxterminal and WebTopMOD folder

v0.2.3 [2011/05/26] [15.45 GMT+2:00]
Debian disk: unmodified
easy-signed: http://www.multiupload.com/2JAO6F42Z4
EASY:
- corrected typo (remember..) in installation
- make new loop device (avoid conflict)
- renfoced unmount function
- fix permission for linux.desktop (awm launcher)

v0.2.2 [2011/05/25] [22.00 GMT+2:00]
Debian disk: http://www.multiupload.com/DVF6BJGJR3
easy-signed: http://www.multiupload.com/NKSFL81ODW
EASY:
- removed /mnt/androidroot (doesn't work)
- added /mnt/sdcard and /mnt/sdcard-ext
- code clean
- corrected lxterm policy
- replaced backup script
- corrected sudoers replace
- replaced debian with a more generic linux notation
- added check disk existence
- disk can be in sdcard or sdcard-ext

CUSTOM:
- Temporary deprecated (I've no time to update it today)

v0.2.1 [2011/05/25] [10.30]
DebianEnabler: http://www.multiupload.com/F8TMHY8VQA
Images: 2gb: http://www.multiupload.com/A1B6LG9YYF
easy-signed.zip: http://www.multiupload.com/HPA820KCKR
EASY:
- replaced xterm with native lxterminal
- introduced backup original files
- added uninstaller for version >= 0.2 http://www.multiupload.com/GLKUZA2KP9
- added uninstaller for version <= 0.2.1 http://www.multiupload.com/TO6W9X7CBU

v0.2 [2011/05/24] [17.30]
EASY:
DebianEnabler: http://www.multiupload.com/F8TMHY8VQA
Images: 2gb: http://www.multiupload.com/A1B6LG9YYF
easy-signed.zip: http://www.multiupload.com/NHJGJD7E3E
- easy method!
- symbolic link in /mnt/androidroot to real root
- added image already configured with dbus, locales and dialog
- added launcher for debian chroot and xterm in awm

CUSTOM:
- added instruction to make custom launcher in awm
- added instruction to configure locales, dbus and dialog
- corrected chroot adding /var/run/dbus

v0.1 [2011/05/24]
- initial release
 
Last edited:

omni_angel7

Senior Member
Mar 9, 2011
286
80
Orlando
Pro. This looks like the real deal (no compromises). I will be waiting for the noob version though :)

Sent from my MB860 using XDA Premium App
 
Last edited:

crnkoj

Senior Member
Feb 16, 2011
1,841
397
Can i use ubuntu as the debian system on the pc to do the image, secondly how do i make a 4 or even 6 gb image, thirdly is this similar to the chroot modes?
 

SystemR89

Senior Member
Sep 4, 2006
149
171
<<Sydney>>
michele.porelli.eu
Can i use ubuntu as the debian system on the pc to do the image, secondly how do i make a 4 or even 6 gb image, thirdly is this similar to the chroot modes?

6gb:
Code:
dd bs=1024 count=1 seek=$((1024*1024*6-1)) if=/dev/zero of=debian
5gb:
Code:
dd bs=1024 count=1 seek=$((1024*1024*5-1)) if=/dev/zero of=debian
4gb:
Code:
dd bs=1024 count=1 seek=$((1024*1024*4-1)) if=/dev/zero of=debian
3gb:
Code:
dd bs=1024 count=1 seek=$((1024*1024*3-1)) if=/dev/zero of=debian
1gb:
Code:
dd bs=1024 count=1 seek=$((1024*1024*1-1)) if=/dev/zero of=debian
debootstrap from ubuntu
Code:
sudo apt-get install debootstrap
sudo debootstrap --foreign --arch armel squeeze temp http://ftp.debian.org/debian
 
Last edited:
  • Like
Reactions: Jean-DrEaD

crnkoj

Senior Member
Feb 16, 2011
1,841
397
Thanks man, ill go and try it out within the next few hours. Btw i already have lxterminal working in the webtop, can i use that instead of adb/ terminal emulator to enter those commands?
 

crnkoj

Senior Member
Feb 16, 2011
1,841
397
6gb:
Code:
dd if=/dev/zero of=/data/6GB.swap bs=1024 count=6144000
4gb:
Code:
dd if=/dev/zero of=/data/6GB.swap bs=1024 count=4096000
debootstrap from ubuntu
Code:
sudo apt-get install debootstrap
sudo debootstrap --foreign --arch armel squeeze temp http://ftp.debian.org/debian

those commands returned the error:
dd: opening '/data/6GB/swap': No such file or directory
hmm in your first post the one for dding a 2gb file is different as these two.
 

starrwulfe

Senior Member
Feb 25, 2007
165
28
Yokohama
www.starrwulfe.info
AWESOME!!

You beat me to it!! I just ordered a Atrix and it's enroute to me over here in Japan... I was thinking I would try to build Gentoo on the webtop somehow.

I have experience there doing the whole bootstrapping thing, but then it hit me-- "How will I compile the programs?" since everything gets made from source and not from RPMs or DEBs in that distro.

Now I am totally chomping at the bit for my Atrix to get here; I am going to experiment using it as my ONLY computer at work, and out and about. I tend to use cloud-based apps even when creating content (I'm a teacher/photographer/web developer) and I feel uneasy about taking my loaded-to-the-gills Macbook on crowded Tokyo trains with me everyday.

Now with your find, I can still manage to do some light graphics work at times in GIMP too maybe?
 

crnkoj

Senior Member
Feb 16, 2011
1,841
397
I was thinking how great gentoo would be too. kholk said once he manages to get kexec and a custom kernel to work he will start work for on gentoo to replace the webtop, that ought to be awesome than :D
 

henrys01

Senior Member
Apr 4, 2011
106
9
Cannot wait to give this a shot! I just need to order a blue tooth mouse and keyboard. :)
 

zen kun

Senior Member
Jan 23, 2010
1,890
395
Berlin
xdaforums.com
Wow amazing I will try when I can, will be funny or nice if we can connect the display to a chinese tablet xD so we can get a portable display xD

.......................................................
Sent from my loved atrix ;D
 

Top Liked Posts

  • There are no posts matching your filters.
  • 52
    [size=+4]Take back WebTop![/size]​

    Use anythings you can imagine! LibreOffice, Java, Firefox 4, ecc...


    [size=+2]WHAT THIS MOD DOES:[/size]
    Installing WebTopMOD your awm dock will be populated with 3 new icons: leafpad, lxterminal and a penguin.
    Leafpad and lxterminal works inside WebTop but clicking on the penguin you get a Debian menu chrooted http://en.wikipedia.org/wiki/Chroot in a Debian enviroment. In xterm you can use synaptic and apt-get to install anything in this new enviroment.
    For example I need gimp:
    Code:
    # apt-get update //refresh packages list from internet
    # apt-get install gimp
    # gimp //
    Clicking another time on the penguin open another xterm IN THE SAME ENVIROMENT so I can start another program
    Code:
    # oo-writer //openoffice writer

    NOTE: Debian disk contain a Debian stable (squeeze) release, some software could be "outdated", if you would live on the edge change stable to unstable in /etc/apt/sources.list IN CHROOT ENVIRONMENT. DO NOT TRY TO CHANGE REPOSITORY IN ORIGINAL WEBTOP ROOT
    Look here (http://www.debian.org/releases/) to understand what differ between Debian branches
    For example LibreOffice is not yet in stable branch, so you can install OpenOffice or switch repo to testing or unstable
    Firefox is renamed Iceweasel and the latest version in unstable is 3.5 and from experimental 4.0.

    REMEMBER THAT 0.x VERSION MEAN THAT THIS SOFTWARE CAN BE BUGGED AND I CONSIDER IT IN ALPHA TESTING

    [size=+2]PREREQUISITES:[/size]
    - A rooted Atrix
    - At least 2GB free in internal memory (could be more or less with the customized installation)
    - A little bit terminal knowledge and willpower
    - Brain
    - Liquorice mojito

    [size=+2]INSTALLATION:[/size]
    [size=+1][1st way - EASY METHOD][/size]
    Prerequisite for this method is:
    On your phone: CWM installed

    0) Download Debian disk - http://droid.makrit.net/WebTopMOD/WebTopMOD-20110707.7z
    1) Unpack in your internal or external storage (path should be /sdcard(-ext)/WebTopMOD/linuxdisk)
    Please don't use "adb push" it corrupt big files
    2) Download easy-signed.zip - http://www.multiupload.com/C5GEIHDEM0, MIRROR
    3) Install using CWM, reboot and enter in WebTop!

    Uninstaller for version >=0.2.7 http://www.multiupload.com/18H5OHND90, MIRROR
    Uninstaller for version <= 0.2.2 http://www.multiupload.com/W37DT6HJ7X
    Uninstaller for version 0.2.1 http://www.multiupload.com/TO6W9X7CBU
    Uninstaller for version >= 0.2 http://www.multiupload.com/GLKUZA2KP9

    [size=+1][2nd way - CUSTOM METHOD][/size]
    Temporary deprecated
    Code:
    Prerequisite for this method is:
    On your computer: have a Debian installation or a Debian live cd or download this file ([url]http://www.multiupload.com/403F0OQEDA[/url] -> 2GB disk in 66MB), unpack it and skip to step 8
    On your phone: install a "complete" busybox thought any free market apps and be connected to internet with a wireless network.
    
    [b][On your phone][/b]
    0) Start WebTop and leave it opened
    
    [b][On your computer][/b]
    1) Create a file with the dimensions that fit your needs using dd (I used this command to create the 2GB file: dd bs=1024 count=1 seek=$((1024*1024*2-1)) if=/dev/zero of=debian)
    2) Format the new "disk" using ext3 (mkfs.ext3 debian)
    3) Create a folder to mount the disk (mkdir temp)
    4) Mount the disk (sudo mount -t ext3 -o loop debian temp)
    5) Debootstrap! (sudo debootstrap --foreign --arch armel stable temp [url]http://ftp.debian.org/debian[/url])
    6) Wait...
    7) Unmount disk (sudo umount temp) and remove temp directory (rmdir temp)
    8) Copy debian in your internal storage inside a folder called "DEBIAN" (uppercase without quotes)
    
    [b][On your computer if you are using adb (recommended) or on your phone using terminal emulator, connectbot, ecc)][/b]
    9) Open a terminal and type:
    Get superuser permissions
    [code]
    # su
    edit sudoers
    Code:
    # vi /etc/sudoers
    You should add "%admin ALL=NOPASSWD: ALL" after the line containing "%admin ALL=(ALL) ALL". You can try typing this:
    Please note that if you are using a terminal emulator on your phone escape is bad interpreted by Android using a physical keyboard, you have to send the escape key in another way.
    Code:
    GkyyPjwwwld3wi
    NOPASSWD: [with a space]
    [Escape]
    :wq!
    Now we enter in a more complete and privileged bash
    Code:
    # /usr/bin/sudo -H -u adas bash
    Enable AWM to launch anything
    Search→Go To… line 1317
    Take this line:
    use_profile 3
    and turn it into:
    use_profile 2
    Code:
    sudo leafpad /etc/tomoyo/domain_policy.conf
    Now you can add any launcher to your AWM, look in easy-signed.zip (/usr/share/applications and /home/michele/easy/home/adas/.gconf/apps/avant-window-navigator)
    Mount debian disk:
    Code:
    # cd /sdcard/DEBIAN 
    # mkdir root
    # sudo mount -t ext3 -o loop=/dev/block/loop7 debian root
    Debootstrap! (second stage)
    Code:
    # sudo chroot root /debootstrap/debootstrap --second-stage
    Disable X ACL (in WebTop)
    Code:
    # export DISPLAY=:0
    # xhost +
    Enter in the new system
    Code:
    # sudo cp /etc/hosts /sdcard/DEBIAN/root/etc/hosts
    # sudo cp /etc/fstab /sdcard/DEBIAN/root/etc/fstab
    # sudo cp /etc/resolv.conf /sdcard/DEBIAN/root/etc/resolv.conf
    # sudo mount -o bind /proc /sdcard/DEBIAN/root/proc
    # sudo mount -o bind /dev /sdcard/DEBIAN/root/dev
    # sudo mount -o bind /dev/pts /sdcard/DEBIAN/root/dev/pts
    # sudo mount -o bind /dev/shm /sdcard/DEBIAN/root/dev/shm
    # sudo mount -o bind /sys /sdcard/DEBIAN/root/sys
    # sudo mount -o bind /var/run/dbus/ /sdcard/DEBIAN/root/var/run/dbus/
    # sudo chroot /sdcard/DEBIAN/root /bin/bash
    Export X display (in chroot)
    Code:
    # export DISPLAY=:0
    Add Debian main repository
    Code:
    # echo "deb http://ftp.debian.org/debian/ stable main non-free contrib" > /etc/apt/sources.list
    Finish debian installation
    Code:
    # apt-get update ; apt-get install dbus dialog locales
    Configure your locale
    Code:
    # dpkg-reconfigure locales
    Install xterm
    Code:
    # apt-get install xterm
    Run xterm!
    Code:
    # xterm
    Now you can install anything simply using "apt-get install PROGRAM_NAME" or installing synaptic
    Before unplug HDMI cable you should exit form chroot environment and unmount the chroot:
    Code:
    # exit
    # sudo umount /sdcard/DEBIAN/root/proc
    # sudo umount /sdcard/DEBIAN/root/dev
    # sudo umount /sdcard/DEBIAN/root/dev/pts
    # sudo umount /sdcard/DEBIAN/root/dev/shm
    # sudo umount /sdcard/DEBIAN/root/sys
    # sudo umount /sdcard/DEBIAN/root/var/run/dbus
    # sudo umount /sdcard/DEBIAN/root

    [size=+2]USE:[/size] (ONLY FOR CUSTOM METHOD)
    [On your computer if you are using adb or on your phone using terminal emulator, connectbot, ecc)]
    9) Open a terminal and type:
    Get superuser permissions
    Code:
    # su
    Now we enter in a more complete and privileged bash
    Code:
    # /usr/bin/sudo -H -u adas bash
    Mount debian disk:
    Code:
    # cd /sdcard/DEBIAN
    # sudo mount -t ext3 -o loop=/dev/block/loop7 debian root
    Disable X ACL (in WebTop)
    Code:
    # export DISPLAY=:0
    # xhost +
    Enter in the new system
    Code:
    # sudo cp /etc/hosts /sdcard/DEBIAN/root/etc/hosts
    # sudo cp /etc/fstab /sdcard/DEBIAN/root/etc/fstab
    # sudo cp /etc/resolv.conf /sdcard/DEBIAN/root/etc/resolv.conf
    # sudo mount -o bind /proc /sdcard/DEBIAN/root/proc
    # sudo mount -o bind /dev /sdcard/DEBIAN/root/dev
    # sudo mount -o bind /dev/pts /sdcard/DEBIAN/root/dev/pts
    # sudo mount -o bind /dev/shm /sdcard/DEBIAN/root/dev/shm
    # sudo mount -o bind /sys /sdcard/DEBIAN/root/sys
    # sudo chroot /sdcard/DEBIAN/root /bin/bash
    Export X display (in chroot)
    Code:
    # export DISPLAY=:0
    Run xterm!
    Code:
    # xterm
    Before unplug HDMI cable you should exit form chroot environment and unmount the chroot:
    Code:
    # exit
    # sudo umount /sdcard/DEBIAN/root/proc
    # sudo umount /sdcard/DEBIAN/root/dev
    # sudo umount /sdcard/DEBIAN/root/dev/pts
    # sudo umount /sdcard/DEBIAN/root/dev/shm
    # sudo umount /sdcard/DEBIAN/root/sys
    # sudo umount /sdcard/DEBIAN/root
    [/code]

    [size=+2]THANKS TO:[/size]
    Sogarth - for http://xdaforums.com/showthread.php?t=983208
    kennethpenn - for motoblur remove tool! many many thanks!
    Chainfire - for Gingerbreak
    makr8100 - for http://droid.makrit.net/ mirror
    and many other users that works actively to hack this phone!

    [size=+2]NOTE:[/size]
    - exporting library you can start a lot of programs without starting chroot (obviously mounting the loop device), for example you can use xterm inside WebTop launching
    Code:
    # LD_LIBRARY_PATH=.:/sdcard/DEBIAN/root/usr/lib /sdcard/DEBIAN/root/usr/bin/xterm
    - you can use sd-card replacing /sdcard/DEBIAN to /sdcard-ext/DEBIAN

    If you would like to support my work click the this droid :)


    [size=+2]MANY THANKS FOR CONTRIBUTOR:[/size]
    Francisco Bravo
    Robert Johnson
    6
    [size=+2]CHANGELOG:[/size]
    v0.2.7 [2012/01/18] [11.30 GMT+2:00]
    easy-signed: http://www.multiupload.com/C5GEIHDEM0
    uninstaller: http://www.multiupload.com/18H5OHND90
    EASY:
    - Disabled Tomoyo (no more firefox issues between different webtop versions)
    - New uninstaller

    v0.2.6 [2011/07/07] [14.15 GMT+2:00]
    Debian disk: http://droid.makrit.net/WebTopMOD/WebTopMOD-20110707.7z
    easy-signed: http://droid.makrit.net/software/atrix/easy_v0.2.6.zip-signed.zip
    EASY:
    - binded in chroot tmp folders
    - correct typo in missing disk message
    - changed umount function (should works fine now!)
    - added linuxdisk check (0 size, is a file)
    - 2.3.4 compatibility
    - cleaned mount function
    LINUXDISK:
    - added pdmenu and menu
    - added device etc mountpoint in /mnt/DEVICE/etc
    - dynamic change of resolv.conf (thanks to krkeegan)
    - linuxdisk now is ~4gb (4095MB)
    - added device etc mountpoint in /mnt/DEVICE/usr
    - added plugins folder symlink to use flash player or other plugins between browser (inside and outside chroot) (FLASH DOESN'T WORK YET)

    v0.2.5.1b [2011/07/07] [10.15 GMT+2:00]
    Debian disk: unmodified
    easy-signed: http://www.multiupload.com/ZAPZW2XX45
    EASY:
    - removed firmware check
    - using a newer version of update-binary

    v0.2.5 [2011/05/27] [9.30 GMT+2:00]
    Debian disk: unmodified
    easy-signed: http://www.multiupload.com/F68D73KF26
    EASY:
    - fixed unmount function
    - removed motorola links
    - fixed leafpad icon

    v0.2.4 [2011/05/26] [20.30 GMT+2:00]
    Debian disk: unmodified
    easy-signed: http://www.multiupload.com/VI4JEFWLI6
    EASY:
    - corrected calls to loopdevice function (thanks Cryofix)
    - check awm folders existence and fully reset permissions
    - set different permissions to linux script, xmessage, lxterminal and WebTopMOD folder

    v0.2.3 [2011/05/26] [15.45 GMT+2:00]
    Debian disk: unmodified
    easy-signed: http://www.multiupload.com/2JAO6F42Z4
    EASY:
    - corrected typo (remember..) in installation
    - make new loop device (avoid conflict)
    - renfoced unmount function
    - fix permission for linux.desktop (awm launcher)

    v0.2.2 [2011/05/25] [22.00 GMT+2:00]
    Debian disk: http://www.multiupload.com/DVF6BJGJR3
    easy-signed: http://www.multiupload.com/NKSFL81ODW
    EASY:
    - removed /mnt/androidroot (doesn't work)
    - added /mnt/sdcard and /mnt/sdcard-ext
    - code clean
    - corrected lxterm policy
    - replaced backup script
    - corrected sudoers replace
    - replaced debian with a more generic linux notation
    - added check disk existence
    - disk can be in sdcard or sdcard-ext

    CUSTOM:
    - Temporary deprecated (I've no time to update it today)

    v0.2.1 [2011/05/25] [10.30]
    DebianEnabler: http://www.multiupload.com/F8TMHY8VQA
    Images: 2gb: http://www.multiupload.com/A1B6LG9YYF
    easy-signed.zip: http://www.multiupload.com/HPA820KCKR
    EASY:
    - replaced xterm with native lxterminal
    - introduced backup original files
    - added uninstaller for version >= 0.2 http://www.multiupload.com/GLKUZA2KP9
    - added uninstaller for version <= 0.2.1 http://www.multiupload.com/TO6W9X7CBU

    v0.2 [2011/05/24] [17.30]
    EASY:
    DebianEnabler: http://www.multiupload.com/F8TMHY8VQA
    Images: 2gb: http://www.multiupload.com/A1B6LG9YYF
    easy-signed.zip: http://www.multiupload.com/NHJGJD7E3E
    - easy method!
    - symbolic link in /mnt/androidroot to real root
    - added image already configured with dbus, locales and dialog
    - added launcher for debian chroot and xterm in awm

    CUSTOM:
    - added instruction to make custom launcher in awm
    - added instruction to configure locales, dbus and dialog
    - corrected chroot adding /var/run/dbus

    v0.1 [2011/05/24]
    - initial release
    4
    Booting webtop straign into a full debian

    Posting from a lapdock running a debian/lxde desktop without the webtop desktop running.

    Have a standard lxde up, iceweasel and the moto phone application is running fine (even the full screen mode which surprised me).

    This is a work-in-progress, but here are the details:

    Debian image:

    Started with the one that is the core of this thread.
    . installed lxde
    . made adas a real user (so I could run X properly as no root in the chroot)

    The key place to hack into the moto webboot crud is at /etc/X11/WebtopSession/10Webtop

    In this script if I see a mounted alt os we switch out to that startup (I use /etc/alt-osh to point at the mountpoint).

    Code:
    STARTUP=x-session-manager
    if [ -f /etc/alt-osh ] ; then
    	if [ -d `cat /etc/alt-osh`/bin ]; then
    		STARTUP=/usr/local/bin/alt-xsession
    	fi
    fi
    
    DBUSLAUNCH=/usr/bin/dbus-launch
    STARTDBUS=yes
    
    export DISPLAY=:0
    xhost +si:localuser:adas
    exec $STARTUP
    
    /usr/bin/numlockx on || /bin/true

    This invokes the non moto session startup /osh/usr/local/bin/alt_xsession:

    Code:
    #! /bin/sh
    
    PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
    export LD_LIBRARY_PATH=/usr/lib:/usr/local/lib
    
    . /lib/lsb/init-functions
    ALT_OS=`cat /etc/alt-osh`
    
    log_action_msg "Will now start ALT OSHWT 1 scripts"
    
    # Cache Firefox files to improve startup times 
    # This is just a script that reads a bunch of ff files to make the first click on ff faster
    # if we want this, copy to alt and run there
    
    # [ -x /usr/bin/firefox-readahead ] && /usr/bin/firefox-readahead &
    
    #update-font.sh   		# usesless for alt i think
    #sfalv -w "webdaemon -d -n" 	# this started OSHWT 2 scripts and god knows what else
    gnome-settings-daemon		# does this run from here or from alt osh?
    sfalv -i "aiw -d"		# this allows the android framebuf to be included in the phone app
    # sfalv -i "docking_manager"	# don't know yet
    #webtop-smartfolder-monitor	# don't have yet
    #webtop-refresh-bookmark	# don't have yet
    
    log_action_msg "Will now start ALT OSHWT 2 scripts"
    
    # let's run with these as is for now
    
    sfalv -i "evbridge"		# is this the phone, or inputs being tossed to 'droid
    sr-test avahi_start &		# sound
    
    # run it
    echo $ALT_OS is the new root
    exec sudo chroot $ALT_OS sudo -u adas x-session-manager

    Had some tomoyo issues and finaly just disabled the entire thing.

    At this point the lxde geometry did not match X. I made an ugly hack to get by this and changed the /osh/etc/X11/xorg.conf file to spcifiy a virtual size of 1366 x 768 (under the SCREEN HDMI section). I doubt this is right, but it worked.

    Then I could not get IP fully up as non root, turns out the 'droid kernel has some garbage and the answer is to add the user to group 3003:
    addgroup aid_inet 3003
    usermod -g 3003 adas

    I am presently bringing it up manually (/osh/etc/init.d/webotop-restart), but all I would need to do to automate that is mount the filesystem at real boot time (/osh/ubuntu.sh is fine). My mountscript is basically what this thread uses:

    Code:
    #!/bin/sh
    
    if [ ! -e /etc/alt-osh ] ; then 
    	exit
    fi
    ALT_OS=`cat /etc/alt-osh`
    
    #test for already mounted
    
    if [ -d $ALT_OS/bin ] ; then
    	exit
    fi
    
    if [ ! -d $ALT_OS ] ; then
    	mkdir $ALT_OS
    fi 
    
    mount /dev/mmcblk1p1 $ALT_OS 
    if [ ! -d $ALT_OS/bin ]; then
    	exit
    fi
    
    mount --bind /proc $ALT_OS/proc 
    mount --bind /dev $ALT_OS/dev
    mount --bind /dev/pts $ALT_OS/dev/pts
    mount --bind /dev/shm $ALT_OS/dev/shm
    mount --bind /sys $ALT_OS/sys
    mount --bind /tmp $ALT_OS/tmp
    mount --bind /var/tmp $ALT_OS/var/tmp
    mount --bind /var/run/dbus $ALT_OS/var/run/dbus
    mount --bind /sdcard $ALT_OS/sdcard
    
    if [ ! -d $ALT_OS/mnt/DEVICE ] ; then
    	mkdir $ALT_OS/mnt/DEVICE
    fi 
    if [ ! -d $ALT_OS/mnt/DEVICE/osh ] ; then
    	mkdir $ALT_OS/mnt/DEVICE/osh
    fi 
    mount --bind /osh $ALT_OS/mnt/DEVICE/osh
    
    if [ ! -d $ALT_OS/mnt/DEVICE/home ] ; then
    	mkdir $ALT_OS/mnt/DEVICE/home
    fi 
    mount --bind /home $ALT_OS/mnt/DEVICE/home
    
    cp /etc/hosts $ALT_OS/etc
    chmod 666 $ALT_OS/etc/hosts
    
    cp /etc/fstab $ALT_OS/etc
    chmod 666 $ALT_OS/etc/fstab
    
    cp /etc/resolv.conf $ALT_OS/etc
    chmod 666 $ALT_OS/etc/resolv.conf

    I see no reason why another desktop could not be used, but note that moto-web-crud does check for lxde at some places (I forget where at the moment).

    TODO:

    audio, that is the biggie

    start/stop clean up. Mostly just details, though it would be nice to have a desktop picker. Try and work a real one in, or maybe replace that stupid "clock" thingee?

    The remaining moto synch stuff (BTW, you can link the bookmarks to /home/adas... to make that peice work if you are on firefox/iceweasle)

    QUESTION:

    Does anybody know where the source for moto webtop speciific programs are? I can find the general debian mods but have not found the .c for all those programs in /osh/usr/local/bin (webstart-refresh for example).

    THANKS:

    to the guys who started this thread. Believe it or not it was what caused me to buy this toy!
    4
    firefox browser dont start! :(

    someone idea!?

    system ver. 4.5.91
    Android Ver. 2.3.4
    webtop ver. WT-1.2.0-110
    Kernel 2.6.32.9-00001
    Build N. 4.5.91

    There's a quick fix for that, open a LXTerminal from dock bar then:

    ##Backup the file if something goes wrong
    sudo cp /osh/etc/tomoyo/domain_policy.conf /osh/etc/tomoyo/domain_policy.conf.bkp

    ##Open the file with vi
    sudo vi /osh/etc/tomoyo/domain_policy.conf

    ##Then you gonna replace "firefox-3.6.16" with "firefox-4.0.1" within all the file
    :%s/firefox-3.6.16/firefox-4.0.1/g

    ##Now save and exit
    :wq!

    Restart your phone and you're done!

    Thanks to SystemR89 and his ppl for this great MOD. :D
    3
    v0.2.2 [2011/05/25] [22.00 GMT+2:00]
    Debian disk: http://www.multiupload.com/DVF6BJGJR3
    easy-signed: http://www.multiupload.com/NKSFL81ODW
    EASY:
    - removed /mnt/androidroot (doesn't work)
    - added /mnt/sdcard and /mnt/sdcard-ext
    - code clean
    - corrected lxterm policy
    - replaced backup script
    - corrected sudoers replace
    - replaced debian with a more generic linux notation
    - added check disk existence
    - disk can be in sdcard or sdcard-ext

    USE THE NEW DISK, PREVIOUS IS CURRUPTED

    You can upgrade from previous versions

    easy-signed WITHOUT firmware check: http://www.multiupload.com/3Q2RSDCID1