Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,814,032 Members 44,064 Now Online
XDA Developers Android and Mobile Development Forum

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

Tip us?
 
SystemR89
Old
(Last edited by SystemR89; 28th April 2012 at 12:03 PM.)
#1  
Senior Member - OP
Thanks Meter 117
Posts: 140
Join Date: Sep 2006
Location: <<Turin>>

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

Take back WebTop!

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


WHAT THIS MOD DOES:
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

PREREQUISITES:
- 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

INSTALLATION:
[1st way - EASY METHOD]
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

[2nd way - CUSTOM METHOD]
Temporary deprecated
Code:
Prerequisite for this method is:
On your computer: have a Debian installation or a Debian live cd or download this file (http://www.multiupload.com/403F0OQEDA -> 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.

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

[On your computer]
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 http://ftp.debian.org/debian)
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)

[On your computer if you are using adb (recommended) or on your phone using terminal emulator, connectbot, ecc)]
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
USE: (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
THANKS TO:
Sogarth - for http://forum.xda-developers.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!

NOTE:
- 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


MANY THANKS FOR CONTRIBUTOR:
Francisco Bravo
Robert Johnson
Active:
Sony Xperia S [IT - Unlocked]
NGM WeMove Explorer [IT - Unlocked]

Touchscreen broken/defective:
Motorola Atrix [USA - ATT Unlocked] + Lapdock 100
Samsung Galaxy mini [IT - Unlocked]
Palm Pre minus [UK - O2 Unlocked]
Qtek 9090 [FR - Orange Unlocked]

Stolen:
HTC Dream [USA - ATT Unlocked]

My XDA projects: WebTopMOD, 3g SIP for GB MIUI, Xperia S data partition resize
My site: http://michele.porelli.eu
Donation link: Paypal

Free is BETTER!!
Use GNU/Linux!!
The Following 52 Users Say Thank You to SystemR89 For This Useful Post: [ Click to Expand ]
 
SystemR89
Old
(Last edited by SystemR89; 18th January 2012 at 10:28 AM.)
#2  
Senior Member - OP
Thanks Meter 117
Posts: 140
Join Date: Sep 2006
Location: <<Turin>>

 
DONATE TO ME
CHANGELOG:
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/atr...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
Active:
Sony Xperia S [IT - Unlocked]
NGM WeMove Explorer [IT - Unlocked]

Touchscreen broken/defective:
Motorola Atrix [USA - ATT Unlocked] + Lapdock 100
Samsung Galaxy mini [IT - Unlocked]
Palm Pre minus [UK - O2 Unlocked]
Qtek 9090 [FR - Orange Unlocked]

Stolen:
HTC Dream [USA - ATT Unlocked]

My XDA projects: WebTopMOD, 3g SIP for GB MIUI, Xperia S data partition resize
My site: http://michele.porelli.eu
Donation link: Paypal

Free is BETTER!!
Use GNU/Linux!!
The Following 6 Users Say Thank You to SystemR89 For This Useful Post: [ Click to Expand ]
 
omni_angel7
Old
(Last edited by omni_angel7; 24th May 2011 at 09:11 AM.)
#3  
omni_angel7's Avatar
Senior Member
Thanks Meter 81
Posts: 287
Join Date: Mar 2011
Location: 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
---(2013-present) Google/LG Nexus 5---
---(2012-2013) Google/LG Nexus 4---
---(2012-present) Google/Asus Nexus 7---
---(2010-2012) Motorola Olympus/Atrix 4G---
 
XxKILLx3RxX
Old
#4  
Member
Thanks Meter 2
Posts: 51
Join Date: Apr 2008
What versions does this work with? 1.8.3, 1.5.7, 1.2.6 ?
 
SystemR89
Old
#5  
Senior Member - OP
Thanks Meter 117
Posts: 140
Join Date: Sep 2006
Location: <<Turin>>

 
DONATE TO ME
Quote:
Originally Posted by XxKILLx3RxX View Post
What versions does this work with? 1.8.3, 1.5.7, 1.2.6 ?
I used an ATT Atrix with 1.8.3 firmware.
However this guide should be applicable to any atrix (att, bell, ecc) with any firmware...
Active:
Sony Xperia S [IT - Unlocked]
NGM WeMove Explorer [IT - Unlocked]

Touchscreen broken/defective:
Motorola Atrix [USA - ATT Unlocked] + Lapdock 100
Samsung Galaxy mini [IT - Unlocked]
Palm Pre minus [UK - O2 Unlocked]
Qtek 9090 [FR - Orange Unlocked]

Stolen:
HTC Dream [USA - ATT Unlocked]

My XDA projects: WebTopMOD, 3g SIP for GB MIUI, Xperia S data partition resize
My site: http://michele.porelli.eu
Donation link: Paypal

Free is BETTER!!
Use GNU/Linux!!
 
crnkoj
Old
#6  
Senior Member
Thanks Meter 363
Posts: 1,557
Join Date: Feb 2011
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
Old
(Last edited by SystemR89; 24th May 2011 at 02:39 PM.)
#7  
Senior Member - OP
Thanks Meter 117
Posts: 140
Join Date: Sep 2006
Location: <<Turin>>

 
DONATE TO ME
Quote:
Originally Posted by crnkoj View Post
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
Active:
Sony Xperia S [IT - Unlocked]
NGM WeMove Explorer [IT - Unlocked]

Touchscreen broken/defective:
Motorola Atrix [USA - ATT Unlocked] + Lapdock 100
Samsung Galaxy mini [IT - Unlocked]
Palm Pre minus [UK - O2 Unlocked]
Qtek 9090 [FR - Orange Unlocked]

Stolen:
HTC Dream [USA - ATT Unlocked]

My XDA projects: WebTopMOD, 3g SIP for GB MIUI, Xperia S data partition resize
My site: http://michele.porelli.eu
Donation link: Paypal

Free is BETTER!!
Use GNU/Linux!!
The Following User Says Thank You to SystemR89 For This Useful Post: [ Click to Expand ]
 
crnkoj
Old
#8  
Senior Member
Thanks Meter 363
Posts: 1,557
Join Date: Feb 2011
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?
 
SystemR89
Old
#9  
Senior Member - OP
Thanks Meter 117
Posts: 140
Join Date: Sep 2006
Location: <<Turin>>

 
DONATE TO ME
Quote:
Originally Posted by crnkoj View Post
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?
Sure! I assumed that on 1.8.3 terminal is not available...
Active:
Sony Xperia S [IT - Unlocked]
NGM WeMove Explorer [IT - Unlocked]

Touchscreen broken/defective:
Motorola Atrix [USA - ATT Unlocked] + Lapdock 100
Samsung Galaxy mini [IT - Unlocked]
Palm Pre minus [UK - O2 Unlocked]
Qtek 9090 [FR - Orange Unlocked]

Stolen:
HTC Dream [USA - ATT Unlocked]

My XDA projects: WebTopMOD, 3g SIP for GB MIUI, Xperia S data partition resize
My site: http://michele.porelli.eu
Donation link: Paypal

Free is BETTER!!
Use GNU/Linux!!
 
crnkoj
Old
#10  
Senior Member
Thanks Meter 363
Posts: 1,557
Join Date: Feb 2011
Quote:
Originally Posted by SystemR89 View Post
Sure! I assumed that on 1.8.3 terminal is not available...
ye thats true, i copied it over from an old /osh dump and it seems to work fine, if you want/need it i can send it to you (only the lxterminal or the whole /osh dump) just started the procedures to get it on.

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes